Skip to content

Commit 12f2d8b

Browse files
authored
Merge pull request #8 from valindrae/media-streaming-edits
Media streaming edits
2 parents 6c28dbc + 54fdf85 commit 12f2d8b

File tree

4 files changed

+32
-20
lines changed

4 files changed

+32
-20
lines changed

articles/communication-services/concepts/voice-video-calling/media-streaming.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ ms.custom: private_preview
1515
> Functionality described on this document is currently in private preview. Private preview includes access to SDKs and documentation for testing purposes that are not yet available publicly.
1616
> Apply to become an early adopter by filling out the form for [preview access to Azure Communication Services](https://aka.ms/ACS-EarlyAdopter).
1717
18-
Media Streaming API allows developers to get real-time access to media streams to capture, analyze and process audio content during active calls as we see in todays world consumption of live audio and video is very prevalent, this content could be in the forms of online meetings, online conferences, online schooling, customer support, etc. This consumption has only been exacerbated by the recent events of Covid-19, with many of the worlds work force working remotely from home. Developers can use audio from these media streams to enhance their applications and embed their own AI solutions into these calls in real-time for a more improved recommendations to their contact center agents.
18+
Azure Communication Services provides developers with Media Streaming API to get real-time access to media streams to capture, analyze and process audio content during active calls.
19+
20+
In today's world consumption of live audio and video is prevalent, this content could be in the forms of online meetings, online conferences, online schooling, customer support, etc. This consumption has only been exacerbated by the recent events of Covid-19, with many of the worlds work force working remotely from home. With media streaming access, developers can now build server applications to capture and analyze audio streams for each of the participants on the call in real-time. Developers can also combine media streaming with other call automation actions or use their own AI models to analyze audio streams for use cases such as NLP for conversation analysis or provide real-time insights and suggestions to their agents while they are in an active interaction with their end users.
21+
1922

2023
## Common use cases
2124
Audio streams can be used in many ways, below are some examples of how developers may wish to use the audio streams in their applications.
@@ -45,10 +48,10 @@ Contains audio per participant per channel, up to four channels.
4548
## Additional information
4649
The table below describes information that will help developers convert the media packets into audible content that can be used by their applications.
4750
- Framerate: 50 frames per second
48-
- Packet stream rate: 20ms rate
49-
- Data packet: 64Kbytes
50-
- Audio metric: 16-bit PCM mono at 16000hz
51-
- Public string data is a base64 string that should be converted into a byte array to create raw pcm file. You can then use the following configuration in Audacity to run the file.
51+
- Packet stream rate: 20 ms rate
52+
- Data packet: 64 Kbytes
53+
- Audio metric: 16-bit PCM mono at 16000 hz
54+
- Public string data is a base64 string that should be converted into a byte array to create raw PCM file. You can then use the following configuration in Audacity to run the file.
5255

5356

5457

articles/communication-services/quickstarts/voice-video-calling/includes/call-automation-media/media-streaming-quickstart-csharp.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ ms.author: kpunjabi
1919
- [Apache Maven](https://maven.apache.org/download.cgi).
2020
- A websocket server that can receive media streams.
2121

22-
## Setup a websocket server
23-
Azure Communication Services requires your server application to setup a WebSocket server to stream audio in real-time. WebSocket is a standardized protocol that provides a full-duplex communication channel over a single TCP connection.
24-
You can optionally leverage Azure services Azure WebApps that allows you to create an application to receive audio streams over a websocket connection. Follow this [quickstart](https://azure.microsoft.com/blog/introduction-to-websockets-on-windows-azure-web-sites/).
22+
## Set up a websocket server
23+
Azure Communication Services requires your server application to set up a WebSocket server to stream audio in real-time. WebSocket is a standardized protocol that provides a full-duplex communication channel over a single TCP connection.
24+
You can optionally use Azure services Azure WebApps that allows you to create an application to receive audio streams over a websocket connection. Follow this [quickstart](https://azure.microsoft.com/blog/introduction-to-websockets-on-windows-azure-web-sites/).
2525

2626
## Establish a call
27-
In this quickstart we assume that you are already familiar with starting calls, if you need to learn more about starting and establishing calls, you can follow our [quickstart](.../../Callflows-for-customer-interactions.md). For the purposes of this quickstart we will be going through the process of starting media streaming for both incoming calls and outbound calls.
27+
In this quickstart we assume that you're already familiar with starting calls. If you need to learn more about starting and establishing calls, you can follow our [quickstart](../../callflows-for-customer-interactions.md). For the purposes of this quickstart, we'll be going through the process of starting media streaming for both incoming calls and outbound calls.
2828

2929
## Start media streaming - Incoming call
30-
You application will start streaming media when it answers an incoming call. This can be done by providing ACS with your websocket information at the time of answering the call.
30+
Your application will start receiving media streams once you answer the call and provide ACS with the WebSocket information.
3131

3232
``` csharp
3333
var mediaStreamingOptions = new MediaStreamingOptions(
@@ -43,7 +43,7 @@ var mediaStreamingOptions = new MediaStreamingOptions(
4343
```
4444

4545
## Start media streaming - Outbound call
46-
Media streaming can also be initiated when your application creates an outbound call. This can be done by providing ACS the websocket information at the time of the call creation.
46+
Your application will start receiving media streams once you create the call and provide ACS with the WebSocket information.
4747

4848
``` csharp
4949
var mediaStreamingOptions = new MediaStreamingOptions(

articles/communication-services/quickstarts/voice-video-calling/includes/call-automation-media/media-streaming-quickstart-java.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ ms.author: kpunjabi
1919
- [Java Development Kit](/java/azure/jdk/?preserve-view=true&view=azure-java-stable) version 8 or above.
2020
- [Apache Maven](https://maven.apache.org/download.cgi).
2121

22-
## Setup a websocket server
23-
Azure Communication Services requires your server application to setup a WebSocket server to stream audio in real-time. WebSocket is a standardized protocol that provides a full-duplex communication channel over a single TCP connection.
24-
You can optionally leverage Azure services Azure WebApps that allows you to create an application to receive audio streams over a websocket connection. Follow this [quickstart](https://azure.microsoft.com/blog/introduction-to-websockets-on-windows-azure-web-sites/).
22+
## Set up a websocket server
23+
Azure Communication Services requires your server application to set up a WebSocket server to stream audio in real-time. WebSocket is a standardized protocol that provides a full-duplex communication channel over a single TCP connection.
24+
You can optionally use Azure services Azure WebApps that allows you to create an application to receive audio streams over a websocket connection. Follow this [quickstart](https://azure.microsoft.com/blog/introduction-to-websockets-on-windows-azure-web-sites/).
2525

2626
## Establish a call
27-
In this quickstart we assume that you are already familiar with starting calls, if you need to learn more about starting and establishing calls, you can follow our [quickstart](.../../Callflows-for-customer-interactions.md). For the purposes of this quickstart we will be going through the process of starting media streaming for both incoming calls and outbound calls.
27+
In this quickstart we assume that you're already familiar with starting calls. If you need to learn more about starting and establishing calls, you can follow our [quickstart](../../callflows-for-customer-interactions.md). For the purposes of this quickstart, we'll be going through the process of starting media streaming for both incoming calls and outbound calls.
2828

2929
## Start media streaming - Incoming call
30-
You application will start streaming media when it answers an incoming call. This can be done by providing ACS with your websocket information at the time of answering the call.
30+
Your application will start receiving media streams once you answer the call and provide ACS with the WebSocket information.
3131

3232
``` java
3333
var mediaStreamingOptions = new MediaStreamingOptions(
@@ -42,7 +42,7 @@ var answerCallResponse = callAutomationAsyncClient.answerCallWithResponse(answer
4242
```
4343

4444
## Start media streaming - Outbound call
45-
Media streaming can also be initiated when your application creates an outbound call. This can be done by providing ACS the websocket information at the time of the call creation.
45+
Your application will start receiving media streams once you create the call and provide ACS with the WebSocket information.
4646

4747
``` java
4848
var mediaStreamingOptions = new MediaStreamingOptions(

articles/communication-services/quickstarts/voice-video-calling/media-streaming.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ zone_pivot_groups: acs-csharp-java
1818
> Functionality described on this document is currently in private preview. Private preview includes access to SDKs and documentation for testing purposes that are not yet available publicly.
1919
> Apply to become an early adopter by filling out the form for [preview access to Azure Communication Services](https://aka.ms/ACS-EarlyAdopter).
2020
21-
Get started with using audio streams through Azure Communication Services Media Streaming API. This quickstart assumes you are already familiar with Call Automation APIs to build an automated call routing solution.
21+
Get started with using audio streams through Azure Communication Services Media Streaming API. This quickstart assumes you're already familiar with Call Automation APIs to build an automated call routing solution.
2222

2323
::: zone pivot="programming-language-csharp"
2424
[!INCLUDE [Media Streaming with .NET](./includes/call-automation-media/media-streaming-quickstart-csharp.md)]
@@ -30,7 +30,7 @@ Get started with using audio streams through Azure Communication Services Media
3030

3131

3232
## Message schema
33-
When ACS has received the URL for your WebSocket server, it will create a connection to it. Once ACS has successfully connected to your WebSocket server it will send through the first data packet which contains metadata regarding the incoming media packets.
33+
When ACS has received the URL for your WebSocket server, it will create a connection to it. Once ACS has successfully connected to your WebSocket server, it will send through the first data packet which contains metadata regarding the incoming media packets.
3434

3535
``` code
3636
/**
@@ -86,4 +86,13 @@ Example of audio data being streamed
8686
```
8787

8888
## Stop audio streaming
89-
Audio streaming will automatically stop when the call ends or is cancelled.
89+
Audio streaming will automatically stop when the call ends or is canceled.
90+
91+
## Clean up resources
92+
93+
If you want to clean up and remove a Communication Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it. Learn more about [cleaning up resources](../create-communication-resource.md#clean-up-resources).
94+
95+
## Next steps
96+
- Learn more about [Call Automation](../../concepts/voice-video-calling/call-automation.md) and its features.
97+
- Learn more about [Play action](../../concepts/voice-video-calling/play-action.md).
98+
- Learn more about [Recognize action](../../concepts/voice-video-calling/recognize-action.md).

0 commit comments

Comments
 (0)