@@ -388,6 +388,8 @@ class MediaStreamingOptions:
388
388
"""A value indicating whether bidirectional streaming is enabled"""
389
389
audio_format : Optional [Union [str , 'AudioFormat' ]] = None
390
390
"""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."""
391
393
392
394
def __init__ (
393
395
self ,
@@ -399,6 +401,7 @@ def __init__(
399
401
start_media_streaming : Optional [bool ] = None ,
400
402
enable_bidirectional : Optional [bool ] = None ,
401
403
audio_format : Optional [Union [str , 'AudioFormat' ]] = None ,
404
+ enable_dtmf_tones : Optional [bool ] = None ,
402
405
):
403
406
self .transport_url = transport_url
404
407
self .transport_type = transport_type
@@ -407,6 +410,7 @@ def __init__(
407
410
self .start_media_streaming = start_media_streaming
408
411
self .enable_bidirectional = enable_bidirectional
409
412
self .audio_format = audio_format
413
+ self .enable_dtmf_tones = enable_dtmf_tones
410
414
411
415
def _to_generated (self ):
412
416
return WebSocketMediaStreamingOptionsRest (
@@ -416,7 +420,8 @@ def _to_generated(self):
416
420
audio_channel_type = self .audio_channel_type ,
417
421
start_media_streaming = self .start_media_streaming ,
418
422
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 ,
420
425
)
421
426
422
427
class TranscriptionOptions :
0 commit comments