Skip to content

Commit 0a704fa

Browse files
authored
Update audio-streaming-quickstart-csharp.md
reviewer feedback addressed
1 parent dd4f5d0 commit 0a704fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/communication-services/how-tos/call-automation/includes/audio-streaming-quickstart-csharp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Azure Communication Services requires your server application to set up a WebSoc
2323

2424
You can review documentation [here](https://azure.microsoft.com/blog/introduction-to-websockets-on-windows-azure-web-sites/) to learn more about WebSockets and how to use them.
2525

26-
## Receiving and Sending audio streaming data
26+
## Receiving and sending audio streaming data
2727
There are multiple ways to start receiving audio stream, which can be configured using the `startMediaStreaming` flag in the `mediaStreamingOptions` setup. You can also specify the desired sample rate used for receiving or sending audio data using the `audioFormat` parameter. Currently supported formats are PCM 24K mono and PCM 16K mono, with the default being PCM 16K mono.
2828

2929
To enable bidirectional audio streaming, where you're sending audio data into the call, you can enable the `EnableBidirectional` flag. For more details, refer to the [API specifications](https://learn.microsoft.com/rest/api/communication/callautomation/answer-call/answer-call?view=rest-communication-callautomation-2024-06-15-preview&tabs=HTTP#mediastreamingoptions).
@@ -81,8 +81,8 @@ await callMedia.StartMediaStreamingAsync();
8181

8282
## Stop audio streaming
8383
To stop receiving audio streams during a call, you can use the **Stop streaming API**. This allows you to stop the audio streaming at any point in the call. There are two ways that audio streaming can be stopped;
84-
1. **Triggering the Stop streaming API:** Use the API to stop receiving audio streaming data while the call is still active.
85-
2. **Automatic stop on call disconnect:** Audio streaming automatically stops when the call is disconnected.
84+
- **Triggering the Stop streaming API:** Use the API to stop receiving audio streaming data while the call is still active.
85+
- **Automatic stop on call disconnect:** Audio streaming automatically stops when the call is disconnected.
8686

8787
``` C#
8888
StopMediaStreamingOptions options = new StopMediaStreamingOptions() {
@@ -146,7 +146,7 @@ After sending the metadata packet, Azure Communication Services (ACS) will begin
146146
## Sending audio streaming data to Azure Communication Services
147147
If bidirectional streaming is enabled using the `EnableBidirectional` flag in the `MediaStreamingOptions`, you can stream audio data back to Azure Communication Services, which plays the audio into the call.
148148

149-
Once Azure Communication Services begins streaming audio to your WebSocket server, you can relay the audio to your AI services. After your AI service processes the audio content, you can stream the audio back to the on-going call in Azure Communication Services.
149+
Once Azure Communication Services begins streaming audio to your WebSocket server, you can relay the audio to your AI services. After your AI service processes the audio content, you can stream the audio back to the ongoing call in Azure Communication Services.
150150

151151
The example demonstrates how another service, such as Azure OpenAI or other voice-based Large Language Models, processes and transmits the audio data back into the call.
152152

0 commit comments

Comments
 (0)