Skip to content

Commit 109269d

Browse files
Create call-transcription-windows.md
1 parent 70f0e94 commit 109269d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
author: jsaurezlee-msft
3+
ms.service: azure-communication-services
4+
ms.topic: article
5+
ms.date: 05/30/2023
6+
ms.author: jsaurezlee
7+
---
8+
9+
[!INCLUDE [Install SDK](../install-sdk/install-sdk-windows.md)]
10+
11+
Call transcription is an extended feature of the core `Call` object. You first need to obtain the transcription feature object:
12+
13+
```csharp
14+
TranscriptionCallFeature transcriptionFeature = call.Features.Transcription;
15+
```
16+
17+
Then, to check if the call is being transcribed, inspect the `IsTranscriptionActive` property of `transcriptionFeature`. It returns `boolean`.
18+
19+
```csharp
20+
boolean isTranscriptionActive = transcriptionFeature.isTranscriptionActive;
21+
```
22+
23+
You can also subscribe to changes in transcription:
24+
25+
```csharp
26+
private async void Call__OnIsTranscriptionActiveChanged(object sender, PropertyChangedEventArgs args)
27+
boolean isTranscriptionActive = transcriptionFeature.IsTranscriptionActive();
28+
}
29+
30+
transcriptionFeature.IsTranscriptionActiveChanged += Call__OnIsTranscriptionActiveChanged;
31+
```

0 commit comments

Comments
 (0)