@@ -155,7 +155,7 @@ def __getattribute__(self, item):
155155 ]
156156 if item in languages :
157157 warn (
158- "LanuageCode Enum is deprecated and will be removed in 1.0.0. Use a string instead." ,
158+ "LanguageCode Enum is deprecated and will be removed in 1.0.0. Use a string instead." ,
159159 DeprecationWarning ,
160160 stacklevel = 2 ,
161161 )
@@ -165,7 +165,7 @@ def __getattribute__(self, item):
165165
166166class LanguageCode (str , Enum , metaclass = DeprecatedLanguageCodeMeta ):
167167 """
168- DeprecationWarning: LanuageCode is deprecated and will be removed in 1.0.0. Use a string instead.
168+ DeprecationWarning: LanguageCode is deprecated and will be removed in 1.0.0. Use a string instead.
169169
170170 Supported languages for transcribing audio.
171171 """
@@ -937,6 +937,9 @@ class RawTranscriptionConfig(BaseModel):
937937 temperature : Optional [float ] = None
938938 "Change how deterministic the response is, with 0 being the most deterministic and 1 being the least deterministic."
939939
940+ remove_audio_tags : Optional [str ] = None
941+ "When set to 'all', removes all bracketed audio/speaker tags (e.g. [MUSIC], [Speaker: A]) from the transcript. Only supported for Universal-3 Pro."
942+
940943 keyterms_prompt : Optional [List [str ]] = None
941944 "The list of key terms used to generate the transcript with the Slam-1 speech model. Can't be used together with `prompt`."
942945
@@ -1007,6 +1010,7 @@ def __init__(
10071010 speech_models : Optional [List [str ]] = None ,
10081011 prompt : Optional [str ] = None ,
10091012 temperature : Optional [float ] = None ,
1013+ remove_audio_tags : Optional [str ] = None ,
10101014 keyterms_prompt : Optional [List [str ]] = None ,
10111015 keyterms_prompt_options : Optional [KeytermsPromptOptions ] = None ,
10121016 speech_understanding : Optional [SpeechUnderstandingRequest ] = None ,
@@ -1054,6 +1058,7 @@ def __init__(
10541058 raw_transcription_config: Create the config from a `RawTranscriptionConfig`
10551059 speech_understanding: Speech understanding configuration for LLM Gateway features (speaker identification, translation, custom formatting)
10561060 temperature: Change how deterministic the response is, with 0 being the most deterministic and 1 being the least deterministic.
1061+ remove_audio_tags: When set to 'all', removes all bracketed audio/speaker tags from the transcript. Only supported for Universal-3 Pro.
10571062 keyterms_prompt_options: Options for controlling keyterms boosting behavior when using `keyterms_prompt`.
10581063 """
10591064 self ._raw_transcription_config = (
@@ -1109,6 +1114,7 @@ def __init__(
11091114 self .speech_models = speech_models
11101115 self .prompt = prompt
11111116 self .temperature = temperature
1117+ self .remove_audio_tags = remove_audio_tags
11121118 self .keyterms_prompt = keyterms_prompt
11131119 self .keyterms_prompt_options = keyterms_prompt_options
11141120 self .speech_understanding = speech_understanding
@@ -1170,6 +1176,16 @@ def temperature(self, temperature: Optional[float]) -> None:
11701176 "Sets the temperature to use for the transcription."
11711177 self ._raw_transcription_config .temperature = temperature
11721178
1179+ @property
1180+ def remove_audio_tags (self ) -> Optional [str ]:
1181+ "When set to 'all', removes all bracketed audio/speaker tags from the transcript."
1182+ return self ._raw_transcription_config .remove_audio_tags
1183+
1184+ @remove_audio_tags .setter
1185+ def remove_audio_tags (self , remove_audio_tags : Optional [str ]) -> None :
1186+ "Sets remove_audio_tags for the transcription."
1187+ self ._raw_transcription_config .remove_audio_tags = remove_audio_tags
1188+
11731189 @property
11741190 def keyterms_prompt (self ) -> Optional [List [str ]]:
11751191 "The keyterms_prompt to use for the transcription."
@@ -1780,7 +1796,7 @@ def set_custom_spelling(
17801796 Args:
17811797 replacement: A dictionary that contains the replacement object (see below example).
17821798 For each key-value pair, the key is the 'to' field, and the value is the 'from' field.
1783- override: If `True` `replacement` gets overriden with the given `replacement` argument, otherwise merged.
1799+ override: If `True` `replacement` gets overridden with the given `replacement` argument, otherwise merged.
17841800
17851801 Example:
17861802 ```
@@ -2379,6 +2395,9 @@ class TranscriptResponse(BaseTranscript):
23792395 temperature : Optional [float ] = None
23802396 "Change how deterministic the response is, with 0 being the most deterministic and 1 being the least deterministic."
23812397
2398+ remove_audio_tags : Optional [str ] = None
2399+ "When set to 'all', removes all bracketed audio/speaker tags (e.g. [MUSIC], [Speaker: A]) from the transcript. Only supported for Universal-3 Pro."
2400+
23822401 keyterms_prompt : Optional [List [str ]] = None
23832402 "When Slam-1 is enabled, the list of key terms used to generate the transcript"
23842403
0 commit comments