File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
articles/communication-services/how-tos/calling-sdk/includes/call-transcription Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,26 +16,26 @@ ms.author: tchladek
16
16
` Transcription ` is an extended feature of the class ` Call ` . You first need to obtain the transcription feature API object
17
17
18
18
``` js
19
- const callTranscriptionApi = call .api (Features .Transcription );
19
+ const callTranscriptionFeature = call .feature (Features .Transcription );
20
20
```
21
21
22
22
You can check state of the transcription in the property ` isTranscriptionActive ` . If value is set to ` true ` , then transcription is active.
23
23
24
24
``` js
25
- const isTranscriptionActive = callTranscriptionApi .isTranscriptionActive ;
25
+ const isTranscriptionActive = callTranscriptionFeature .isTranscriptionActive ;
26
26
```
27
27
28
28
You can subscribe to event, that is triggered when state of transcription changes:
29
29
30
30
``` js
31
31
const isTranscriptionActiveChangedHandler = () => {
32
- console .log (callTranscriptionApi .isTranscriptionActive );
32
+ console .log (callTranscriptionFeature .isTranscriptionActive );
33
33
};
34
- callRecordingApi .on (' isTranscriptionActiveChanged' , isTranscriptionActiveChangedHandler);
34
+ callTranscriptionFeature .on (' isTranscriptionActiveChanged' , isTranscriptionActiveChangedHandler);
35
35
```
36
36
37
37
You can unsubscribe from the event with the following code:
38
38
39
39
``` js
40
- callRecordingApi .off (' isTranscriptionActiveChanged' , isTranscriptionActiveChangedHandler);
40
+ callTranscriptionFeature .off (' isTranscriptionActiveChanged' , isTranscriptionActiveChangedHandler);
41
41
```
You can’t perform that action at this time.
0 commit comments