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/voice-video-calling/media-streaming.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,10 @@ ms.custom: private_preview
15
15
> 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.
16
16
> Apply to become an early adopter by filling out the form for [preview access to Azure Communication Services](https://aka.ms/ACS-EarlyAdopter).
17
17
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
+
19
22
20
23
## Common use cases
21
24
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.
45
48
## Additional information
46
49
The table below describes information that will help developers convert the media packets into audible content that can be used by their applications.
47
50
- 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.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/voice-video-calling/includes/call-automation-media/media-streaming-quickstart-csharp.md
- A websocket server that can receive media streams.
21
21
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/).
25
25
26
26
## 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.
28
28
29
29
## 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.
@@ -43,7 +43,7 @@ var mediaStreamingOptions = new MediaStreamingOptions(
43
43
```
44
44
45
45
## 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.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/voice-video-calling/includes/call-automation-media/media-streaming-quickstart-java.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,15 @@ ms.author: kpunjabi
19
19
-[Java Development Kit](/java/azure/jdk/?preserve-view=true&view=azure-java-stable) version 8 or above.
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/).
25
25
26
26
## 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.
28
28
29
29
## 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.
31
31
32
32
```java
33
33
var mediaStreamingOptions =newMediaStreamingOptions(
@@ -42,7 +42,7 @@ var answerCallResponse = callAutomationAsyncClient.answerCallWithResponse(answer
42
42
```
43
43
44
44
## 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.
46
46
47
47
```java
48
48
var mediaStreamingOptions =newMediaStreamingOptions(
> 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.
19
19
> Apply to become an early adopter by filling out the form for [preview access to Azure Communication Services](https://aka.ms/ACS-EarlyAdopter).
20
20
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.
22
22
23
23
::: zone pivot="programming-language-csharp"
24
24
[!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
30
30
31
31
32
32
## 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.
34
34
35
35
```code
36
36
/**
@@ -86,4 +86,13 @@ Example of audio data being streamed
86
86
```
87
87
88
88
## 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