Skip to content

Commit a21efac

Browse files
committed
adding the dtmf
1 parent 6e082ec commit a21efac

File tree

1 file changed

+6
-1
lines changed
  • sdk/communication/azure-communication-callautomation/azure/communication/callautomation

1 file changed

+6
-1
lines changed

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

422427
class TranscriptionOptions:

0 commit comments

Comments
 (0)