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/how-tos/calling-sdk/includes/closed-captions/closed-captions-teams-interop-web.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,29 @@ const language = spokenLanguages[0];
83
83
teamsCaptionsApi.setSpokenLanguage(language);
84
84
```
85
85
86
+
## Get supported caption languages
87
+
88
+
If your organization has Teams premium license you can allow your users to leverage translated captions provided by Teams captions. The property returns an array of two-letter langauge codes in `ISO 639-1` standard.
89
+
90
+
Access the `supportedCaptionLanguages` property on the `Features.TeamsCaptions` API.
If your organization has Teams premium license you can allow your users to leverage translated captions provided by Teams captions. Contoso can generate a list of supported caption languages by calling `teamsCaptions.supportedCaptionLanguages` that returns an array of two-letter langauge codes in `ISO 639-1` standard.
98
+
99
+
Pass a value in from the supported caption languages array to ensure that the requested language is supported.
100
+
101
+
```typescript
102
+
// ISO 639-1 formatted language code
103
+
const language ='en-us';
104
+
105
+
// Altneratively, pass a value fromt he supported spoken languages array
106
+
const language =captionLanguages[0]; teamsCaptionsApi.setCaptionLanguage(language);
0 commit comments