@@ -252,47 +252,53 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
252252class AudioInputTranscriptionSettings (_Model ):
253253 """Configuration for input audio transcription.
254254
255- :ivar model: The model used for transcription. E.g., 'whisper-1', 'azure-fast-transcription',
256- 's2s-ingraph'. Required. Is one of the following types: Literal["whisper-1"] ,
257- Literal[ "azure-fast-transcription"], Literal["s2s-ingraph"]
255+ :ivar model: The transcription model to use. Supported values:
256+ "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe" ,
257+ "azure-fast-transcription", "azure-speech". Required.
258258 :vartype model: str
259- :ivar language: The language code to use for transcription, if specified .
260- :vartype language: str
261- :ivar enabled: Whether transcription is enabled. Required .
262- :vartype enabled: bool
263- :ivar custom_model: Whether a custom model is being used. Required .
264- :vartype custom_model: bool
259+ :ivar language: Optional BCP-47 language code (e.g., "en-US") .
260+ :vartype language: str | None
261+ :ivar custom_speech: Optional configuration for custom speech models .
262+ :vartype custom_speech: dict[str, str] | None
263+ :ivar phrase_list: Optional list of phrase hints to bias recognition .
264+ :vartype phrase_list: list[str] | None
265265 """
266266
267- model : Literal ["whisper-1" , "azure-fast-transcription" , "s2s-ingraph" ] = rest_field (
268- visibility = ["read" , "create" , "update" , "delete" , "query" ]
269- )
270- """The model used for transcription. E.g., 'whisper-1', 'azure-fast-transcription', 's2s-ingraph'.
271- Required. Is one of the following types: Literal[\" whisper-1\" ],
272- Literal[\" azure-fast-transcription\" ], Literal[\" s2s-ingraph\" ]"""
267+ model : Literal [
268+ "whisper-1" ,
269+ "gpt-4o-transcribe" ,
270+ "gpt-4o-mini-transcribe" ,
271+ "azure-fast-transcription" ,
272+ "azure-speech" ,
273+ ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
274+ """Required transcription model."""
275+
273276 language : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
274- """The language code to use for transcription, if specified."""
275- enabled : bool = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
276- """Whether transcription is enabled. Required."""
277- custom_model : bool = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
278- """Whether a custom model is being used. Required."""
277+ """Optional language code (e.g., 'en-US')."""
278+
279+ custom_speech : Optional [Dict [str , str ]] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
280+ """Optional custom speech configuration."""
281+
282+ phrase_list : Optional [List [str ]] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
283+ """Optional phrase hints."""
279284
280285 @overload
281286 def __init__ (
282287 self ,
283288 * ,
284- model : Literal ["whisper-1" , "azure-fast-transcription" , "s2s-ingraph" ],
285- enabled : bool ,
286- custom_model : bool ,
287- language : Optional [str ] = None ,
289+ model : Literal [
290+ "whisper-1" ,
291+ "gpt-4o-transcribe" ,
292+ "gpt-4o-mini-transcribe" ,
293+ "azure-fast-transcription" ,
294+ "azure-speech" ,
295+ ],
296+ language : Optional [str ] = ...,
297+ custom_speech : Optional [Dict [str , str ]] = ...,
298+ phrase_list : Optional [List [str ]] = ...,
288299 ) -> None : ...
289-
290300 @overload
291- def __init__ (self , mapping : Mapping [str , Any ]) -> None :
292- """
293- :param mapping: raw JSON to initialize the model.
294- :type mapping: Mapping[str, Any]
295- """
301+ def __init__ (self , mapping : Mapping [str , Any ]) -> None : ...
296302
297303 def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
298304 super ().__init__ (* args , ** kwargs )
@@ -3317,7 +3323,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
33173323 super ().__init__ (* args , ** kwargs )
33183324
33193325 @classmethod
3320- def deserialize (cls , payload : dict [str , Any ]) -> "ServerEvent" :
3326+ def deserialize (cls , payload : Dict [str , Any ]) -> "ServerEvent" :
33213327 # public, linter-friendly entrypoint
33223328 # pylint: disable-next=protected-access
33233329 return cls ._deserialize (payload , [])
0 commit comments