You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/concepts/call-automation/azure-communication-services-azure-cognitive-services-integration.md
Copy file name to clipboardExpand all lines: articles/communication-services/how-tos/call-automation/includes/play-audio-with-ai-csharp.md
+43-21Lines changed: 43 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,27 +150,36 @@ Assert.AreEqual(202, playResponse.Status) // The request was accepted.
150
150
151
151
Your application receives action lifecycle event updates on the callback URL that was provided to Call Automation service at the time of answering the call. An example of a successful play event update.
To learn more about other supported events, visit the [Call Automation overview document](../../../concepts/call-automation/call-automation.md#call-automation-webhook-events).
@@ -184,3 +193,16 @@ var callMedia = callAutomationClient.GetCallConnection(<callConnectionId>).GetCa
Copy file name to clipboardExpand all lines: articles/communication-services/how-tos/call-automation/includes/play-audio-with-ai-java.md
+38-27Lines changed: 38 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,12 +71,7 @@ You can test creating your own audio file using our [Speech synthesis with Audio
71
71
72
72
## (Optional) Connect your Azure Cognitive Service to your Azure Communication Service
73
73
74
-
If you would like to use Text-To-Speech capabilities, then it's required for you to connect your Azure Cognitive Service to your Azure Communication Service.
75
-
76
-
```code
77
-
az communication bind-cognitive-service --name “{Azure Communication resource name}” --resource-group “{Azure Communication resource group}” --resource-id “{Cognitive service resource id}” --subscription{subscription Name of Cognitive service} –identity{Cognitive Services Identity}
78
-
79
-
```
74
+
If you would like to use Text-To-Speech capabilities, then it's required for you to connect your [Azure Cognitive Service to your Azure Communication Service](../../../concepts/call-automation/azure-communication-services-azure-cognitive-services-integration.md).
80
75
81
76
## Update App.java with code
82
77
@@ -171,27 +166,30 @@ assertEquals(202, playResponse.getStatusCode()); // The request was accepted
171
166
172
167
Your application receives action lifecycle event updates on the callback URL that was provided to Call Automation service at the time of answering the call. An example of a successful play event update.
//Play audio failed, Take some action on failed event.
190
+
// Hang up call
191
+
callConnection.hangUp(true);
192
+
}
195
193
```
196
194
197
195
To learn more about other supported events, visit the [Call Automation overview document](../../../concepts/call-automation/call-automation.md#call-automation-webhook-events).
@@ -205,3 +203,16 @@ var callConnection = callAutomationAsyncClient.getCallConnectionAsync(<callConne
205
203
var cancelResponse = callConnection.getCallMediaAsync().cancelAllMediaOperationsWithResponse().block();
206
204
assertEquals(202, cancelResponse.getStatusCode()); // The request was accepted
207
205
```
206
+
207
+
### Example of how you can deserialize the *PlayCanceled* event:
Copy file name to clipboardExpand all lines: articles/communication-services/how-tos/call-automation/includes/recognize-ai-action-how-to-csharp.md
+1-145Lines changed: 1 addition & 145 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The following parameters are available to customize the Recognize function:
30
30
| InterToneTimeout | TimeSpan | 2 seconds <br/><br/>**Min:** 1 second <br/>**Max:** 60 seconds | Limit in seconds that ACS will wait for the caller to press another digit (inter-digit timeout). | Optional |
31
31
| InitialSegmentationSilenceTimeoutInSeconds | Integer | 0.5 seconds | How long recognize action will wait for input before considering it a timeout. [Read more here](../../../../../articles/cognitive-services/Speech-Service/how-to-recognize-speech.md). | Optional |
32
32
| RecognizeInputsType | Enum | dtmf | Type of input that will be recognized. Options will be dtmf and choices. | Required |
33
-
| InitialSilenceTimeout | TimeSpan | 5 seconds<br/><br/>**Min:** 0 seconds <br/>**Max:** 300 seconds | Initial silence timeout adjusts how much non-speech audio is allowed before a phrase before the recognition attempt ends in a "no match" result. [Read more here](../../../../../articles/cognitive-services/Speech-Service/how-to-recognize-speech.md). | Optional |
33
+
| InitialSilenceTimeout | TimeSpan | 5 seconds<br/><br/>**Min:** 0 seconds <br/>**Max:** 300 seconds (DTMF) <br/>**Max:** 20 seconds (Choices)| Initial silence timeout adjusts how much non-speech audio is allowed before a phrase before the recognition attempt ends in a "no match" result. [Read more here](../../../../../articles/cognitive-services/Speech-Service/how-to-recognize-speech.md). | Optional |
34
34
| MaxTonesToCollect | Integer | No default<br/><br/>**Min:** 1|Number of digits a developer expects as input from the participant.| Required |
35
35
| StopTones |IEnumeration\<DtmfTone\>| Not set | The digit participants can press to escape out of a batch DTMF event. | Optional |
36
36
| InterruptPrompt | Bool | True | If the participant has the ability to interrupt the playMessage by pressing a digit. | Optional |
@@ -128,74 +128,6 @@ var targetParticipant = new PhoneNumberIdentifier("+1XXXXXXXXXXX");
128
128
129
129
Developers can subscribe to the *RecognizeCompleted* and *RecognizeFailed* events on the webhook callback they registered for the call to create business logic in their application for determining next steps when one of the previously mentioned events occurs.
0 commit comments