@@ -657,6 +657,11 @@ class RawTranscriptionConfig(BaseModel):
657657 The speech model to use for the transcription.
658658 """
659659
660+ speech_models : Optional [List [str ]] = None
661+ """
662+ The list of speech models to use for the transcription in priority order.
663+ """
664+
660665 prompt : Optional [str ] = None
661666 "The prompt used to generate the transcript with the Slam-1 speech model. Can't be used together with `keyterms_prompt`."
662667
@@ -708,6 +713,7 @@ def __init__(
708713 speech_threshold : Optional [float ] = None ,
709714 raw_transcription_config : Optional [RawTranscriptionConfig ] = None ,
710715 speech_model : Optional [SpeechModel ] = None ,
716+ speech_models : Optional [List [str ]] = None ,
711717 prompt : Optional [str ] = None ,
712718 keyterms_prompt : Optional [List [str ]] = None ,
713719 ) -> None :
@@ -801,6 +807,7 @@ def __init__(
801807 self .language_detection_options = language_detection_options
802808 self .speech_threshold = speech_threshold
803809 self .speech_model = speech_model
810+ self .speech_models = speech_models
804811 self .prompt = prompt
805812 self .keyterms_prompt = keyterms_prompt
806813
@@ -831,6 +838,16 @@ def speech_model(self, speech_model: Optional[SpeechModel]) -> None:
831838 "Sets the speech model to use for the transcription."
832839 self ._raw_transcription_config .speech_model = speech_model
833840
841+ @property
842+ def speech_models (self ) -> Optional [List [str ]]:
843+ "The list of speech models to use for the transcription in priority order."
844+ return self ._raw_transcription_config .speech_models
845+
846+ @speech_models .setter
847+ def speech_models (self , speech_models : Optional [List [str ]]) -> None :
848+ "Sets the list of speech models to use for the transcription in priority order."
849+ self ._raw_transcription_config .speech_models = speech_models
850+
834851 @property
835852 def prompt (self ) -> Optional [str ]:
836853 "The prompt to use for the transcription."
@@ -1902,6 +1919,9 @@ class BaseTranscript(BaseModel):
19021919 speech_model : Optional [SpeechModel ] = None
19031920 "The speech model to use for the transcription."
19041921
1922+ speech_models : Optional [List [str ]] = None
1923+ "The list of speech models to use for the transcription in priority order."
1924+
19051925 prompt : Optional [str ] = None
19061926 "The prompt used to generate the transcript with the Slam-1 speech model. Can't be used together with `keyterms_prompt`."
19071927
@@ -1973,6 +1993,9 @@ class TranscriptResponse(BaseTranscript):
19731993 speech_model : Optional [SpeechModel ] = None
19741994 "The speech model used for the transcription"
19751995
1996+ speech_model_used : Optional [str ] = None
1997+ "The actual speech model that was used for the transcription"
1998+
19761999 prompt : Optional [str ] = None
19772000 "When Slam-1 is enabled, the prompt used to generate the transcript"
19782001
0 commit comments