-
Notifications
You must be signed in to change notification settings - Fork 250
/
Copy pathazure.communication.callautomation.aio.CallConnectionClient.yml
785 lines (741 loc) · 28.8 KB
/
azure.communication.callautomation.aio.CallConnectionClient.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
### YamlMime:PythonClass
uid: azure.communication.callautomation.aio.CallConnectionClient
name: CallConnectionClient
fullName: azure.communication.callautomation.aio.CallConnectionClient
module: azure.communication.callautomation.aio
summary: 'A client to interact with an ongoing call. This client can be used to do
mid-call actions,
such as Transfer and Play Media. Call must be established to perform these actions.'
constructor:
syntax: 'CallConnectionClient(endpoint: str, credential: AsyncTokenCredential |
AzureKeyCredential, call_connection_id: str, *, api_version: str | None = None,
**kwargs)'
parameters:
- name: endpoint
description: The endpoint of the Azure Communication resource.
isRequired: true
types:
- <xref:str>
- name: credential
description: The credentials with which to authenticate.
isRequired: true
types:
- <xref:azure.core.credentials_async.AsyncTokenCredential>
- <xref:azure.core.credentials.AzureKeyCredential>
- name: call_connection_id
description: Call Connection ID of ongoing call.
isRequired: true
types:
- <xref:str>
keywordOnlyParameters:
- name: api_version
description: Azure Communication Call Automation API version.
types:
- <xref:str>
methods:
- uid: azure.communication.callautomation.aio.CallConnectionClient.add_participant
name: add_participant
summary: Add a participant to this call.
signature: 'async add_participant(target_participant: CommunicationIdentifier, *,
invitation_timeout: int | None = None, operation_context: str | None = None, source_caller_id_number:
PhoneNumberIdentifier | None = None, source_display_name: str | None = None, operation_callback_url:
str | None = None, sip_headers: Dict[str, str] | None = None, voip_headers: Dict[str,
str] | None = None, **kwargs) -> AddParticipantResult'
parameters:
- name: target_participant
description: The participant being added.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: invitation_timeout
description: 'Timeout to wait for the invited participant to pickup.
The maximum value of this is 180 seconds.'
types:
- <xref:int>
- <xref:None>
- name: operation_context
description: Value that can be used to track this call and its associated events.
types:
- <xref:str>
- <xref:None>
- name: source_caller_id_number
description: 'The source caller Id, a phone number,
that''s shown to the PSTN participant being invited.
Required only when calling a PSTN callee.'
types:
- <xref:azure.communication.callautomation.PhoneNumberIdentifier>
- <xref:None>
- name: source_display_name
description: Display name of the caller.
types:
- <xref:str>
- <xref:None>
- name: operation_callback_url
description: 'Set a callback URL that overrides the default callback URL set
by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
- name: sip_headers
description: Sip Headers for PSTN Call
types:
- <xref:typing.Dict>[<xref:str>, <xref:str>]
- <xref:None>
- name: voip_headers
description: Voip Headers for Voip Call
types:
- <xref:typing.Dict>[<xref:str>, <xref:str>]
- <xref:None>
return:
description: AddParticipantResult
types:
- <xref:azure.communication.callautomation.AddParticipantResult>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.cancel_add_participant_operation
name: cancel_add_participant_operation
summary: Cancel add participant request sent out to a participant.
signature: 'async cancel_add_participant_operation(invitation_id: str, *, operation_context:
str | None = None, operation_callback_url: str | None = None, **kwargs) -> CancelAddParticipantOperationResult'
parameters:
- name: invitation_id
description: The invitation ID that was used to add the participant.
isRequired: true
types:
- <xref:str>
keywordOnlyParameters:
- name: operation_context
description: Value that can be used to track this call and its associated events.
types:
- <xref:str>
- name: operation_callback_url
description: 'Set a callback URL that overrides the default callback URL set
by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
return:
description: CancelAddParticipantOperationResult
types:
- <xref:azure.communication.callautomation.CancelAddParticipantOperationResult>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.cancel_all_media_operations
name: cancel_all_media_operations
summary: Cancels all the ongoing and queued media operations for this call.
signature: async cancel_all_media_operations(**kwargs) -> None
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.close
name: close
signature: async close() -> None
- uid: azure.communication.callautomation.aio.CallConnectionClient.from_connection_string
name: from_connection_string
summary: Create CallConnectionClient from a Connection String.
signature: 'from_connection_string(conn_str: str, call_connection_id: str, **kwargs)
-> CallConnectionClient'
parameters:
- name: conn_str
description: A connection string to an Azure Communication Service resource.
isRequired: true
types:
- <xref:str>
- name: call_connection_id
description: Call Connection Id of ongoing call.
isRequired: true
types:
- <xref:str>
return:
description: CallConnectionClient
types:
- <xref:azure.communication.callautomation.CallConnectionClient>
- uid: azure.communication.callautomation.aio.CallConnectionClient.get_call_properties
name: get_call_properties
summary: Get the latest properties of this call.
signature: async get_call_properties(**kwargs) -> CallConnectionProperties
return:
description: CallConnectionProperties
types:
- <xref:azure.communication.callautomation.CallConnectionProperties>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.get_participant
name: get_participant
summary: Get details of a participant in this call.
signature: 'async get_participant(target_participant: CommunicationIdentifier, **kwargs)
-> CallParticipant'
parameters:
- name: target_participant
description: The participant to retrieve.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
return:
description: CallParticipant
types:
- <xref:azure.communication.callautomation.CallParticipant>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.hang_up
name: hang_up
summary: Hangup this call.
signature: 'async hang_up(is_for_everyone: bool, **kwargs) -> None'
parameters:
- name: is_for_everyone
description: Determine if this call should be ended for all participants.
isRequired: true
types:
- <xref:bool>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.hold
name: hold
summary: Play media to specific participant(s) in this call.
signature: 'async hold(target_participant: CommunicationIdentifier, *, play_source:
FileSource | TextSource | SsmlSource | None = None, operation_context: str | None
= None, operation_callback_url: str | None = None, **kwargs) -> None'
parameters:
- name: target_participant
description: The participant being added.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: play_source
description: A PlaySource representing the source to play.
types:
- <xref:azure.communication.callautomation.FileSource>
- <xref:azure.communication.callautomation.TextSource>
- <xref:azure.communication.callautomation.SsmlSource>
- name: operation_context
description: Value that can be used to track this call and its associated events.
types:
- <xref:str>
- <xref:None>
- name: operation_callback_url
description: 'Set a callback URL that overrides the default callback URL set
by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.list_participants
name: list_participants
summary: List all participants in this call.
signature: list_participants(**kwargs) -> AsyncItemPaged[CallParticipant]
return:
description: Async iterable of CallParticipant
types:
- <xref:azure.core.async_paging.AsyncItemPaged>[<xref:azure.communication.callautomation.CallParticipant>]
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.mute_participant
name: mute_participant
summary: Mute participant from the call using identifier.
signature: 'async mute_participant(target_participant: CommunicationIdentifier,
*, operation_context: str | None = None, **kwargs) -> MuteParticipantResult'
parameters:
- name: target_participant
description: Participant to be muted from the call. Only ACS Users are supported.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: operation_context
description: 'Used by customers when calling mid-call actions to correlate the
request to the
response event.'
types:
- <xref:str>
return:
description: MuteParticipantResult
types:
- <xref:azure.communication.callautomation.MuteParticipantResult>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.play_media
name: play_media
signature: 'async play_media(play_source: ''FileSource'' | ''TextSource'' | ''SsmlSource''
| List[''FileSource'' | ''TextSource'' | ''SsmlSource''], play_to: List[''CommunicationIdentifier''],
*, loop: bool = False, operation_context: str | None = None, operation_callback_url:
str | None = None, **kwargs) -> None'
- uid: azure.communication.callautomation.aio.CallConnectionClient.play_media_to_all
name: play_media_to_all
summary: Play media to all participants in this call.
signature: 'async play_media_to_all(play_source: FileSource | TextSource | SsmlSource
| List[FileSource | TextSource | SsmlSource], *, loop: bool = False, operation_context:
str | None = None, operation_callback_url: str | None = None, interrupt_call_media_operation:
bool = False, **kwargs) -> None'
parameters:
- name: play_source
description: A PlaySource representing the source to play.
isRequired: true
types:
- <xref:azure.communication.callautomation.FileSource>
- <xref:azure.communication.callautomation.TextSource>
- <xref:azure.communication.callautomation.SsmlSource>
- <xref:list>[<xref:azure.communication.callautomation.FileSource>]
- <xref:list>[<xref:azure.communication.callautomation.TextSource>]
- <xref:list>[<xref:azure.communication.callautomation.SsmlSource>]
keywordOnlyParameters:
- name: loop
description: Whether the media should be repeated until cancelled.
types:
- <xref:bool>
- name: operation_context
description: Value that can be used to track this call and its associated events.
types:
- <xref:str>
- <xref:None>
- name: operation_callback_url
description: 'Set a callback URL that overrides the default callback URL set
by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
- name: interrupt_call_media_operation
description: 'If set play can barge into other existing
queued-up/currently-processing requests.'
types:
- <xref:bool>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.remove_participant
name: remove_participant
summary: Remove a participant from this call.
signature: 'async remove_participant(target_participant: CommunicationIdentifier,
*, operation_context: str | None = None, operation_callback_url: str | None =
None, **kwargs) -> RemoveParticipantResult'
parameters:
- name: target_participant
description: The participant being removed.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: operation_context
description: Value that can be used to track this call and its associated events.
types:
- <xref:str>
- name: operation_callback_url
description: 'Set a callback URL that overrides the default callback URL set
by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
return:
description: RemoveParticipantResult
types:
- <xref:azure.communication.callautomation.RemoveParticipantResult>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.send_dtmf_tones
name: send_dtmf_tones
summary: Send Dtmf tones to this call.
signature: 'async send_dtmf_tones(tones: List[str | DtmfTone], target_participant:
CommunicationIdentifier, *, operation_context: str | None = None, operation_callback_url:
str | None = None, **kwargs) -> SendDtmfTonesResult'
parameters:
- name: tones
description: List of tones to be sent to target participant.
isRequired: true
types:
- <xref:list>[<xref:str>
- <xref:azure.communication.callautomation.DtmfTone>]
- name: target_participant
description: Target participant.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: operation_context
description: The value to identify context of the operation.
types:
- <xref:str>
- name: operation_callback_url
description: 'Set a callback URL that overrides the default callback URL set
by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
return:
description: SendDtmfTonesResult
types:
- <xref:azure.communication.callautomation.SendDtmfTonesResult>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.start_continuous_dtmf_recognition
name: start_continuous_dtmf_recognition
summary: Start continuous Dtmf recognition by subscribing to tones.
signature: 'async start_continuous_dtmf_recognition(target_participant: CommunicationIdentifier,
*, operation_context: str | None = None, **kwargs) -> None'
parameters:
- name: target_participant
description: Target participant.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: operation_context
description: Value that can be used to track this call and its associated events.
types:
- <xref:str>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.start_media_streaming
name: start_media_streaming
summary: Starts media streaming in the call.
signature: 'async start_media_streaming(*, operation_callback_url: str | None =
None, operation_context: str | None = None, **kwargs) -> None'
keywordOnlyParameters:
- name: operation_callback_url
description: '(Optional) Set a callback URL that overrides the default
callback URL set by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
- name: operation_context
description: (Optional) Value that can be used to track this call and its associated
events.
types:
- <xref:str>
- <xref:None>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
description: If there's an HTTP response error.
- uid: azure.communication.callautomation.aio.CallConnectionClient.start_recognizing_media
name: start_recognizing_media
summary: Recognize inputs from specific participant in this call.
signature: 'async start_recognizing_media(input_type: str | RecognizeInputType,
target_participant: CommunicationIdentifier, *, initial_silence_timeout: int |
None = None, play_prompt: FileSource | TextSource | SsmlSource | List[FileSource
| TextSource | SsmlSource] | None = None, interrupt_call_media_operation: bool
= False, operation_context: str | None = None, interrupt_prompt: bool = False,
dtmf_inter_tone_timeout: int | None = None, dtmf_max_tones_to_collect: int | None
= None, dtmf_stop_tones: List[str | DtmfTone] | None = None, speech_language:
str | None = None, choices: List[RecognitionChoice] | None = None, end_silence_timeout:
int | None = None, speech_recognition_model_endpoint_id: str | None = None, operation_callback_url:
str | None = None, **kwargs) -> None'
parameters:
- name: input_type
description: Determines the type of the recognition.
isRequired: true
types:
- <xref:str>
- <xref:azure.communication.callautomation.RecognizeInputType>
- name: target_participant
description: Target participant of DTMF tone recognition.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: initial_silence_timeout
description: Time to wait for first input after prompt in seconds (if any).
types:
- <xref:int>
- name: play_prompt
description: The source of the audio to be played for recognition.
types:
- <xref:azure.communication.callautomation.FileSource>
- <xref:azure.communication.callautomation.TextSource>
- <xref:azure.communication.callautomation.SsmlSource>
- name: interrupt_call_media_operation
description: If set recognize can barge into other existing queued-up/currently-processing
requests.
types:
- <xref:bool>
- name: operation_context
description: Value that can be used to track this call and its associated events.
types:
- <xref:str>
- name: interrupt_prompt
description: Determines if we interrupt the prompt and start recognizing.
types:
- <xref:bool>
- name: dtmf_inter_tone_timeout
description: 'Time to wait between DTMF inputs to stop recognizing. Will be ignored
unless input_type is ''dtmf'' or ''speechOrDtmf''.'
types:
- <xref:int>
- name: dtmf_max_tones_to_collect
description: 'Maximum number of DTMF tones to be collected. Will be ignored
unless input_type is ''dtmf'' or ''speechOrDtmf''.'
types:
- <xref:int>
- name: dtmf_stop_tones
description: 'List of tones that will stop recognizing. Will be ignored
unless input_type is ''dtmf'' or ''speechOrDtmf''.'
types:
- <xref:list>[<xref:str>
- <xref:azure.communication.callautomation.DtmfTone>]
- name: speech_language
description: Speech language to be recognized, If not set default is en-US.
types:
- <xref:str>
- name: choices
description: Defines Ivr choices for recognize. Will be ignored unless input_type
is 'choices'.
types:
- <xref:list>[<xref:azure.communication.callautomation.RecognitionChoice>]
- name: end_silence_timeout
description: 'The length of end silence when user stops speaking and cogservice
send response. Will be ingored unless input_type is ''speech'' or ''speechOrDtmf''.'
types:
- <xref:int>
- name: speech_recognition_model_endpoint_id
description: Endpoint where the custom model was deployed.
types:
- <xref:str>
- name: operation_callback_url
description: 'Set a callback URL that overrides the default callback URL set
by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.start_transcription
name: start_transcription
summary: Starts transcription in the call.
signature: 'async start_transcription(*, locale: str | None = None, operation_context:
str | None = None, speech_recognition_model_endpoint_id: str | None = None, **kwargs)
-> None'
keywordOnlyParameters:
- name: locale
description: Defines Locale for the transcription e,g en-US.
types:
- <xref:str>
- name: operation_context
description: The value to identify context of the operation.
types:
- <xref:str>
- name: speech_recognition_model_endpoint_id
description: Endpoint where the custom model was deployed.
types:
- <xref:str>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.stop_continuous_dtmf_recognition
name: stop_continuous_dtmf_recognition
summary: Stop continuous Dtmf recognition by unsubscribing to tones.
signature: 'async stop_continuous_dtmf_recognition(target_participant: CommunicationIdentifier,
*, operation_context: str | None = None, operation_callback_url: str | None =
None, **kwargs) -> None'
parameters:
- name: target_participant
description: Target participant.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: operation_context
description: The value to identify context of the operation.
types:
- <xref:str>
- name: operation_callback_url
description: 'Set a callback URL that overrides the default callback URL set
by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.stop_media_streaming
name: stop_media_streaming
summary: Stops media streaming in the call.
signature: 'async stop_media_streaming(*, operation_callback_url: str | None = None,
operation_context: str | None = None, **kwargs) -> None'
keywordOnlyParameters:
- name: operation_callback_url
description: '(Optional) Set a callback URL that overrides the default
callback URL set by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
- name: operation_context
description: (Optional) Value that can be used to track this call and its associated
events.
types:
- <xref:str>
- <xref:None>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
description: If there's an HTTP response error.
- uid: azure.communication.callautomation.aio.CallConnectionClient.stop_transcription
name: stop_transcription
summary: Stops transcription in the call.
signature: 'async stop_transcription(*, operation_context: str | None = None, **kwargs)
-> None'
keywordOnlyParameters:
- name: operation_context
description: The value to identify context of the operation.
types:
- <xref:str>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.transfer_call_to_participant
name: transfer_call_to_participant
summary: Transfer this call to another participant.
signature: 'async transfer_call_to_participant(target_participant: CommunicationIdentifier,
*, operation_context: str | None = None, operation_callback_url: str | None =
None, transferee: CommunicationIdentifier | None = None, sip_headers: Dict[str,
str] | None = None, voip_headers: Dict[str, str] | None = None, source_caller_id_number:
PhoneNumberIdentifier | None = None, **kwargs) -> TransferCallResult'
parameters:
- name: target_participant
description: The transfer target.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: operation_context
description: Value that can be used to track this call and its associated events.
types:
- <xref:str>
- name: operation_callback_url
description: 'Set a callback URL that overrides the default callback URL set
by CreateCall/AnswerCall for this operation.
This setup is per-action. If this is not set, the default callback URL set by
CreateCall/AnswerCall will be used.'
types:
- <xref:str>
- <xref:None>
- name: transferee
description: Transferee is the participant who is transferred away.
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
- <xref:None>
- name: sip_headers
description: Custom context for PSTN
types:
- <xref:dict>[<xref:str>, <xref:str>]
- name: voip_headers
description: Custom context for VOIP
types:
- <xref:dict>[<xref:str>, <xref:str>]
- name: source_caller_id_number
description: 'The source caller Id, a phone number, that''s will be used as the
transferor''s(Contoso) caller id when transfering a call a pstn target.'
types:
- <xref:azure.communication.callautomation.PhoneNumberIdentifier>
- <xref:None>
return:
description: TransferCallResult
types:
- <xref:azure.communication.callautomation.TransferCallResult>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.unhold
name: unhold
summary: Play media to specific participant(s) in this call.
signature: 'async unhold(target_participant: CommunicationIdentifier, *, operation_context:
str | None = None, **kwargs) -> None'
parameters:
- name: target_participant
description: The participant being added.
isRequired: true
types:
- <xref:azure.communication.callautomation.CommunicationIdentifier>
keywordOnlyParameters:
- name: operation_context
description: Value that can be used to track this call and its associated events.
types:
- <xref:str>
- <xref:None>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.communication.callautomation.aio.CallConnectionClient.update_transcription
name: update_transcription
summary: API to change transcription language.
signature: 'async update_transcription(*, locale: str, operation_context: str |
None = None, speech_recognition_model_endpoint_id: str | None = None, **kwargs)
-> None'
keywordOnlyParameters:
- name: locale
description: Defines new locale for transcription.
types:
- <xref:str>
- name: operation_context
description: The value to identify context of the operation.
types:
- <xref:str>
- name: speech_recognition_model_endpoint_id
description: Endpoint where the custom model was deployed.
types:
- <xref:str>
return:
description: None
types:
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError