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
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,10 @@ Call Recording APIs use exclusively the `serverCallId`to initiate recording. The
23
23
### Call Automation scenarios
24
24
25
25
When using [Call Automation](../../../call-automation/callflows-for-customer-interactions.md), you have two options to get the `serverCallId`:
26
-
1) Once a call is created, it returns a `serverCallId` as a property of the `CallConnected` event after a call is established. Learn how to [Get CallConnected event](../../../call-automation/callflows-for-customer-interactions.md?pivots=programming-language-csharp#update-programcs) from 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.
26
+
27
+
1. When you establish a call, it returns a `serverCallId` as a property of the `CallConnected` event after a call is established. Learn how to [Get CallConnected event](../../../call-automation/callflows-for-customer-interactions.md?pivots=programming-language-csharp#update-programcs) from Call Automation SDK.
28
+
29
+
2. When you answer the call or a call is created, it returns the `serverCallId` as a property of the `AnswerCallResult` or `CreateCallResult` API responses respectively.
28
30
29
31
### Calling SDK scenarios
30
32
@@ -46,9 +48,9 @@ CallAutomationClient callAutomationClient = new CallAutomationClient("<ACSConnec
46
48
## 2. Start recording session with StartRecordingOptions using 'StartAsync' API
47
49
48
50
Use the `serverCallId` received during initiation of the call.
49
-
- RecordingContent is used to pass the recording content type. Use audio
50
-
- RecordingChannel is used to pass the recording channel type. Use mixed or unmixed.
51
-
- RecordingFormat is used 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`.
## 6. Download recording File using 'DownloadToAsync' API
156
+
## 6. Download recording File using `DownloadToAsync` API
153
157
154
-
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.
158
+
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.
155
159
156
160
An Event Grid notification `Microsoft.Communication.RecordingFileStatusUpdated` is published when a recording is ready for retrieval, typically a few minutes after the recording finishes processing (such as when meeting ends or a recording stops). Recording event notifications include `contentLocation` and `metadataLocation`, which you can use to retrieve both recorded media and a recording metadata file.
157
161
@@ -186,17 +190,18 @@ Example of the event schema:
186
190
}
187
191
```
188
192
189
-
Use `DownloadToAsync` API for downloading the recorded media.
193
+
Use `DownloadToAsync` API to download the recorded media.
The `downloadLocation` for the recording can be fetched from the `contentLocation` attribute of the `recordingChunk`. `DownloadToAsync` method downloads the content into provided filename.
196
199
197
-
## 7. Delete recording content using 'DeleteAsync' API
200
+
Fetch the `downloadLocation` for the recording from the `contentLocation` attribute of the `recordingChunk`. `DownloadToAsync` method downloads the content into provided filename.
201
+
202
+
## 7. Delete recording content using `DeleteAsync` API
198
203
199
-
Use `DeleteAsync` API for deleting the recording content (for example, recorded media, metadata)
204
+
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
+36-25Lines changed: 36 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,10 @@ Call Recording APIs exclusively use the `serverCallId` to initiate recording. Th
24
24
### Call Automation scenarios
25
25
26
26
When using [Call Automation](../../../call-automation/callflows-for-customer-interactions.md), you have two options to get the `serverCallId`:
27
-
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-java#update-programcs) from Call Automation SDK.
28
-
2) Once you answer the call or a call is created the `serverCallId` is returned as a property of the `AnswerCallResult` or `CreateCallResult` API responses respectively.
27
+
28
+
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 CallConnected event](../../../call-automation/callflows-for-customer-interactions.md?pivots=programming-language-java#update-programcs) from Call Automation SDK.
29
+
30
+
2. Once you answer the call or a call is created the `serverCallId` is returned as a property of the `AnswerCallResult` or `CreateCallResult` API responses respectively.
29
31
30
32
### Calling SDK scenarios
31
33
@@ -37,21 +39,22 @@ Let's get started with a few simple steps.
37
39
38
40
## 1. Create a Call Automation client
39
41
40
-
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.
42
+
Call Recording APIs are part of the Azure Communication Services [Call Automation](../../../../concepts/call-automation/call-automation.md) libraries. So you need to create a Call Automation client.
43
+
44
+
To create a call automation client, use your Communication Services connection string and pass it to `CallAutomationClient` object.
### 2.3. Only for Unmixed - Specify a user on channel 0
101
-
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.
107
+
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.
## 6.Download recording File using 'downloadToWithResponse' API
169
+
## 6.Download recording File using `downloadToWithResponse` API
161
170
162
171
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.
163
172
164
-
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.
173
+
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 meeting ends or recording stops). Recording event notifications include `contentLocation` and `metadataLocation`, which you can use to retrieve both recorded media and a recording metadata file.
165
174
166
-
Below is an example of the event schema.
175
+
The following code is an example of the event schema.
167
176
168
177
```
169
178
{
@@ -197,7 +206,7 @@ Below is an example of the event schema.
197
206
Use `downloadToWithResponse` method of `CallRecording` class for downloading the recorded media. Following are the supported parameters for `downloadToWithResponse` method:
198
207
-`contentLocation`: Azure Communication Services URL where the content is located.
199
208
-`destinationPath` : File location.
200
-
-`parallelDownloadOptions`: An optional ParallelDownloadOptions object to modify how the - parallel download will work.
209
+
-`parallelDownloadOptions`: An optional `ParallelDownloadOptions` object to modify how the parallel download works.
201
210
-`overwrite`: True to overwrite the file if it exists.
202
211
-`context`: A Context representing the request context.
The content location and document IDs for the recording files can be fetched from the `contentLocation` and `documentId` fields respectively, for each `recordingChunk`.
216
226
217
-
## 7. Delete recording content using ‘deleteWithResponse’ API.
227
+
## 7. Delete recording content using `deleteWithResponse` API
218
228
219
-
Use `deleteWithResponse` method of `CallRecording` class for deleting the recorded media. Following are the supported parameters for `deleteWithResponse` method:
229
+
Use `deleteWithResponse` method of `CallRecording` class to delete the recorded media. Supported parameters for `deleteWithResponse` method:
220
230
-`deleteLocation`: Azure Communication Services URL where the content to delete is located.
221
231
-`context`: A Context representing the request context.
0 commit comments