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/quickstarts/voice-video-calling/includes/call-recording-samples/call-recording-csharp.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,9 +48,9 @@ CallAutomationClient callAutomationClient = new CallAutomationClient("<ACSConnec
48
48
## 2. Start recording session with StartRecordingOptions using 'StartAsync' API
49
49
50
50
Use the `serverCallId` received during initiation of the call.
51
-
- Use `RecordingContent` to pass the recording content type. Use `audio`.
52
-
- Use `RecordingChannel` to pass the recording channel type. Use `mixed` or `unmixed`.
53
-
- Use `RecordingFormat` to pass the format of the recording. Use `wav`.
51
+
- Use `RecordingContent` to pass the recording content type. Use `AUDIO`.
52
+
- Use `RecordingChannel` to pass the recording channel type. Use `MIXED` or `UNMIXED`.
53
+
- Use `RecordingFormat` to pass the format of the recording. Use `WAV`.
### 2.3. Only for Unmixed - Specify a user on channel 0
103
+
100
104
To produce unmixed audio recording files, you can use the `AudioChannelParticipantOrdering` functionality to specify which user you want to record on channel 0. The rest of the participants are assigned to a channel as they speak. If you use `RecordingChannel.Unmixed` but don't use `AudioChannelParticipantOrdering`, Call Recording assigns channel 0 to the first participant speaking.
101
105
102
106
```csharp
@@ -131,29 +135,29 @@ The `StartAsync` API response contains the `recordingId` of the recording sessio
131
135
132
136
## 3. Stop recording session using `StopAsync` API
133
137
134
-
Use the `recordingId` received in response of`StartAsync`.
138
+
Use the `recordingId` received in response to`StartAsync`.
## 6.Download recording File using `DownloadToAsync` API
160
+
## 6.Download recording File using `DownloadToAsync` API
157
161
158
162
Use an [Azure Event Grid](../../../../../event-grid/event-schema-communication-services.md) web hook or other triggered action to notify your services when the recorded media is ready for download.
159
163
@@ -197,11 +201,11 @@ var recordingDownloadUri = new Uri(contentLocation);
Fetch the `downloadLocation` for the recording from the `contentLocation` attribute of the `recordingChunk`. `DownloadToAsync` method downloads the content into provided filename.
204
+
Fetch the `downloadLocation` for the recording from the `contentLocation` attribute of the `recordingChunk`. Use the `DownloadToAsync` method to download the content into a provided filename.
201
205
202
206
## 7. Delete recording content using `DeleteAsync` API
203
207
204
-
Use `DeleteAsync` API to delete the recording content (such as recorded media and metadata)
208
+
Use `DeleteAsync` API to delete the recording content (such as recorded media and metadata).
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/voice-video-calling/includes/call-recording-samples/call-recording-java.md
@@ -203,14 +203,13 @@ The following code is an example of the event schema.
203
203
}
204
204
```
205
205
206
-
Use `downloadToWithResponse` method of `CallRecording` class for downloading the recorded media. Following are the supported parameters for `downloadToWithResponse` method:
206
+
Use `downloadToWithResponse` method of `CallRecording` class to download the recorded media. Following are the supported parameters for `downloadToWithResponse` method:
207
207
-`contentLocation`: Azure Communication Services URL where the content is located.
208
208
-`destinationPath` : File location.
209
209
-`parallelDownloadOptions`: An optional `ParallelDownloadOptions` object to modify how the parallel download works.
210
210
-`overwrite`: True to overwrite the file if it exists.
211
211
-`context`: A Context representing the request context.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/voice-video-calling/includes/call-recording-samples/call-recording-javascript.md
+21-20Lines changed: 21 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,24 +21,24 @@ You can download the sample app from [GitHub](https://github.com/Azure-Samples/c
21
21
Call Recording APIs use exclusively the `serverCallId`to initiate recording. There are a couple of methods you can use to fetch the `serverCallId` depending on your scenario:
22
22
23
23
### Call Automation scenarios
24
+
24
25
- When using [Call Automation](../../../call-automation/callflows-for-customer-interactions.md), you have two options to get the `serverCallId`:
25
-
1) Once a call is created, a `serverCallId` is returned as a property of the `CallConnected` event after a call has been established. Learn how to [Get CallConnected event](../../../call-automation/callflows-for-customer-interactions.md?pivots=programming-language-javascript#update-programcs) from Call Automation SDK.
26
-
2) Once you answer the call or a call is createdthe `serverCallId` is returned as a property of the `AnswerCallResult` or `CreateCallResult` API responses respectively.
26
+
1) Once a call is created, a `serverCallId` is returned as a property of the `CallConnected` event after a call is established. Learn how to [Get a CallConnected event](../../../call-automation/callflows-for-customer-interactions.md?pivots=programming-language-javascript#update-programcs) from the Call Automation SDK.
27
+
2) Once you answer the call or a call is created, it returns the `serverCallId` as a property of the `AnswerCallResult` or `CreateCallResult` API responses respectively.
27
28
28
29
### Calling SDK scenarios
29
-
- When using [Calling Client SDK](../../get-started-with-video-calling.md), you can retrieve the `serverCallId` by using the `getServerCallId` method on the call.
30
-
Use this example to learn how to [Get serverCallId](../../get-server-call-id.md) from the Calling Client SDK.
31
30
31
+
When using [Calling Client SDK](../../get-started-with-video-calling.md), you can retrieve the `serverCallId` by using the `getServerCallId` method on the call.
32
32
33
+
Use this example to learn how to [Get a serverCallId](../../get-server-call-id.md) from the Calling Client SDK.
33
34
34
35
Let's get started with a few simple steps!
35
36
36
-
37
-
38
37
## 1. Create a Call Automation client
39
38
40
39
Call Recording APIs are part of the Azure Communication Services [Call Automation](../../../../concepts/call-automation/call-automation.md) libraries. Thus, it's necessary to create a Call Automation client.
41
-
To create a call automation client, you'll use your Communication Services connection string and pass it to `CallAutomationClient` object.
40
+
41
+
To create a call automation client, use your Communication Services connection string and pass it to `CallAutomationClient` object.
@@ -104,7 +105,7 @@ var response = await callAutomationClient.getCallRecording().start(options);
104
105
```
105
106
106
107
### 2.3. Only for Unmixed - Specify a user on channel 0
107
-
To produce unmixed audio recording files, you can use the `AudioChannelParticipantOrdering` functionality to specify which user you want to record on channel 0. The rest of the participants will be assigned to a channel as they speak. If you use `RecordingChannel.Unmixed` but don't use `AudioChannelParticipantOrdering`, Call Recording will assign channel 0 to the first participant speaking.
108
+
To produce unmixed audio recording files, you can use the `AudioChannelParticipantOrdering` functionality to specify which user you want to record on channel 0. The rest of the participants are assigned to a channel as they speak. If you use `RecordingChannel.Unmixed` but don't use `AudioChannelParticipantOrdering`, Call Recording assigns channel 0 to the first participant speaking.
108
109
109
110
```javascript
110
111
var locator: CallLocator = { id:"<ServerCallId>", kind:"serverCallLocator" };
@@ -145,23 +146,23 @@ The `StartAsync` API response contains the `recordingId` of the recording sessio
145
146
146
147
## 3. Stop recording session using 'stop' API
147
148
148
-
Use the `recordingId` received in response of`start`.
149
+
Use the `recordingId` received in response to`start`.
149
150
150
151
```javascript
151
152
var stopRecording =awaitcallAutomationClient.getCallRecording().stop(recordingId);
152
153
```
153
154
154
155
## 4. Pause recording session using 'pause' API
155
156
156
-
Use the `recordingId` received in response of`start`.
157
+
Use the `recordingId` received in response to`start`.
157
158
158
159
```javascript
159
160
var pauseRecording =awaitcallAutomationClient.getCallRecording().pause(recordingId);
160
161
```
161
162
162
163
## 5. Resume recording session using 'ResumeAsync' API
163
164
164
-
Use the `recordingId` received in response of`start`.
165
+
Use the `recordingId` received in response to`start`.
165
166
166
167
```javascript
167
168
var resumeRecording =awaitcallAutomationClient.getCallRecording().resume(recordingId);
@@ -171,9 +172,9 @@ var resumeRecording = await callAutomationClient.getCallRecording().resume(recor
171
172
172
173
Use an [Azure Event Grid](../../../../../event-grid/event-schema-communication-services.md) web hook or other triggered action should be used to notify your services when the recorded media is ready for download.
173
174
174
-
An Event Grid notification `Microsoft.Communication.RecordingFileStatusUpdated` is published when a recording is ready for retrieval, typically a few minutes after the recording process has completed (for example, meeting ended, recording stopped). Recording event notifications include `contentLocation` and `metadataLocation`, which are used to retrieve both recorded media and a recording metadata file.
175
+
An Event Grid notification `Microsoft.Communication.RecordingFileStatusUpdated` is published when a recording is ready for retrieval, typically a few minutes after the recording process completes (such as the meeting ended or the recording stopped). Recording event notifications include `contentLocation` and `metadataLocation`, which are used to retrieve both recorded media and a recording metadata file.
175
176
176
-
Below is an example of the event schema.
177
+
The following code is an example of the event schema.
177
178
178
179
```
179
180
{
@@ -204,12 +205,12 @@ Below is an example of the event schema.
204
205
}
205
206
```
206
207
207
-
Use `downloadToPath` API for downloading the recorded media.
208
+
Use `downloadToPath` API to download the recorded media.
208
209
209
210
```javascript
210
211
var response =awaitcallAutomationClient.getCallRecording().downloadToPath(contentLocation, fileName);
211
212
```
212
-
The `downloadLocation` for the recording can be fetched from the `contentLocation` attribute of the `recordingChunk`. `DownloadToAsync` method download the content into provided filename.
213
+
The `downloadLocation` for the recording can be fetched from the `contentLocation` attribute of the `recordingChunk`. Use the `DownloadToAsync` method to download the content into a provided filename.
213
214
214
215
## 7. Delete recording content using 'DeleteAsync' API
0 commit comments