@@ -388,6 +388,8 @@ class MediaStreamingOptions:
388388 """A value indicating whether bidirectional streaming is enabled"""
389389 audio_format : Optional [Union [str , 'AudioFormat' ]] = None
390390 """Specifies the audio format used for encoding."""
391+ enable_dtmf_tones : Optional [bool ] = None
392+ """A value that indicates whether to stream the DTMF tones."""
391393
392394 def __init__ (
393395 self ,
@@ -399,6 +401,7 @@ def __init__(
399401 start_media_streaming : Optional [bool ] = None ,
400402 enable_bidirectional : Optional [bool ] = None ,
401403 audio_format : Optional [Union [str , 'AudioFormat' ]] = None ,
404+ enable_dtmf_tones : Optional [bool ] = None ,
402405 ):
403406 self .transport_url = transport_url
404407 self .transport_type = transport_type
@@ -407,6 +410,7 @@ def __init__(
407410 self .start_media_streaming = start_media_streaming
408411 self .enable_bidirectional = enable_bidirectional
409412 self .audio_format = audio_format
413+ self .enable_dtmf_tones = enable_dtmf_tones
410414
411415 def _to_generated (self ):
412416 return WebSocketMediaStreamingOptionsRest (
@@ -416,7 +420,8 @@ def _to_generated(self):
416420 audio_channel_type = self .audio_channel_type ,
417421 start_media_streaming = self .start_media_streaming ,
418422 enable_bidirectional = self .enable_bidirectional ,
419- audio_format = self .audio_format
423+ audio_format = self .audio_format ,
424+ enable_dtmf_tones = self .enable_dtmf_tones ,
420425 )
421426
422427class TranscriptionOptions :
0 commit comments