From ac7037c97b442e6379f98ab5f3c7edf7b7ceaffc Mon Sep 17 00:00:00 2001 From: Georgios Hadjiharalambous Date: Fri, 25 Sep 2026 16:57:21 +0100 Subject: [PATCH] add oak 1, our new medical model --- sdk/batch/speechmatics/batch/_models.py | 2 ++ tests/batch/test_models.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/sdk/batch/speechmatics/batch/_models.py b/sdk/batch/speechmatics/batch/_models.py index 07b594c..478dac9 100644 --- a/sdk/batch/speechmatics/batch/_models.py +++ b/sdk/batch/speechmatics/batch/_models.py @@ -50,6 +50,7 @@ class OperatingPoint(str, Enum): ENHANCED = "enhanced" STANDARD = "standard" MELIA_1 = "melia-1" + OAK_1 = "oak-1" class Model(str, Enum): @@ -58,6 +59,7 @@ class Model(str, Enum): ENHANCED = "enhanced" STANDARD = "standard" MELIA_1 = "melia-1" + OAK_1 = "oak-1" class NotificationContents(str, Enum): diff --git a/tests/batch/test_models.py b/tests/batch/test_models.py index 48855c0..fafbe97 100644 --- a/tests/batch/test_models.py +++ b/tests/batch/test_models.py @@ -142,6 +142,12 @@ def test_model_gets_serialized(self): assert result["model"] == Model.MELIA_1 assert "operating_point" not in result + def test_oak_model_gets_serialized(self): + config = TranscriptionConfig(model=Model.OAK_1) + result = config.to_dict() + assert result["model"] == Model.OAK_1 + assert "operating_point" not in result + def test_operating_point_gets_serialized(self): config = TranscriptionConfig(operating_point=OperatingPoint.STANDARD) result = config.to_dict()