Available Realtime Languages
Before opening a WebSocket session, call this endpoint to retrieve the language codes available to your organization. Using an unavailable language code closes the socket immediately with error 4400.
Endpoint
GET /api/v3/speech_to_text/realtime/languages
Authentication
Pass your API token via the x-zoom-s2t-key header:
| Header | Value |
|---|---|
x-zoom-s2t-key | YOUR_TOKEN |
Response
{
"result": {
"languages": ["da", "de", "en", "es", "fi", "fr", "it", "nl", "ru", "sv", "uk"]
}
}
| Field | Type | Description |
|---|---|---|
languages | string[] | Language codes valid for the ?language= query parameter |
Examples
cURL
curl -H "x-zoom-s2t-key: YOUR_TOKEN" \
https://api.scriptix.io/api/v3/speech_to_text/realtime/languages
Python
import requests
response = requests.get(
"https://api.scriptix.io/api/v3/speech_to_text/realtime/languages",
headers={"x-zoom-s2t-key": "YOUR_TOKEN"},
)
data = response.json()
languages = data["result"]["languages"]
print(f"Available languages: {', '.join(languages)}")
JavaScript
const response = await fetch(
"https://api.scriptix.io/api/v3/speech_to_text/realtime/languages",
{
headers: { "x-zoom-s2t-key": "YOUR_TOKEN" },
}
);
const { result } = await response.json();
console.log("Languages:", result.languages.join(", "));
Why this matters
Available language codes can vary by organization. Always use the codes returned by this endpoint.
Next Steps
- WebSocket Connection — open the socket with the language code from this response