@@ -668,6 +668,9 @@ class RawTranscriptionConfig(BaseModel):
668668 keyterms_prompt : Optional [List [str ]] = None
669669 "The list of key terms used to generate the transcript with the Slam-1 speech model. Can't be used together with `prompt`."
670670
671+ language_codes : Optional [List [Union [str , LanguageCode ]]] = None
672+ "List of language codes detected in the audio file when language detection is enabled"
673+
671674 model_config = ConfigDict (extra = "allow" )
672675
673676
@@ -1237,6 +1240,12 @@ def speech_threshold(self, threshold: Optional[float]) -> None:
12371240
12381241 self ._raw_transcription_config .speech_threshold = threshold
12391242
1243+ @property
1244+ def language_codes (self ) -> Optional [List [Union [str , LanguageCode ]]]:
1245+ "Returns the list of language codes detected in the audio file when language detection is enabled."
1246+
1247+ return self ._raw_transcription_config .language_codes
1248+
12401249 # endregion
12411250
12421251 # region: Convenience (helper) methods
@@ -1913,6 +1922,9 @@ class BaseTranscript(BaseModel):
19131922 language_confidence : Optional [float ] = None
19141923 "The confidence score for the detected language, between 0.0 (low confidence) and 1.0 (high confidence)."
19151924
1925+ language_codes : Optional [List [Union [str , LanguageCode ]]] = None
1926+ "List of language codes detected in the audio file when language detection is enabled"
1927+
19161928 speech_threshold : Optional [float ] = None
19171929 "Reject audio files that contain less than this fraction of speech. Valid values are in the range [0,1] inclusive"
19181930
0 commit comments