Get Streaming URL
Changed onCreate a real-time voice session and return the WebSocket URL and ephemeral token used to stream audio. Session options such as languages, message format, and media types are fixed at creation time. Invalid options are rejected with HTTP 400 before a session is created.
Request
- Base URLhttps://api.deepl.com
- URLhttps://api.deepl.com/v3/voice/realtime
- AuthAPI key in header Authorization
Headers
An optional custom reporting tag used to attribute this request's usage to a team, project, customer, or other category of your choosing. Values are limited to 100 characters. See How to use custom reporting tags for validation rules, naming guidance, and how to retrieve usage by tag.
Request body
Example request
{
"message_format": "json",
"source_media_content_type": "audio/ogg;codecs=opus",
"source_language": "en",
"source_language_mode": "fixed",
"target_languages": [
"de",
"fr",
"es"
],
"target_media_languages": [
"de"
],
"target_media_content_type": "audio/webm;codecs=opus",
"target_media_voice": "female",
"spoken_terms_id": "7c4f1080-cfe2-41d4-8269-0e6ec15a0354",
"glossary_id": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7",
"glossary_ids": [
"def3a26b-3e84-45b3-84ae-0c0aaf3525f7"
],
"formality": "formal"
}Response
Successfully obtained streaming URL and token.
Example response
{
"streaming_url": "wss://api.deepl.com/v3/voice/realtime/connect",
"token": "VGhpcyBpcyBhIGZha2UgdG9rZW4K",
"session_id": "4f911080-cfe2-41d4-8269-0e6ec15a0354"
}Changes
- info
added the new optional
headerrequest parameterX-DeepL-Reporting-Tag - info
added the new optional request property
- info
added the new
caenum value to the request property - info
added the new
caenum value to the request property/ - info
added the new
caenum value to the request property/ - info
added the new
es-419enum value to the request property/ - info
added the new
es-419enum value to the request property/ - info
added the new
fr-CAenum value to the request property/ - info
added the new
fr-CAenum value to the request property/ - info
added the new
fr-FRenum value to the request property/ - info
added the new
fr-FRenum value to the request property/ - info
added the new
glenum value to the request property - info
added the new
glenum value to the request property/ - info
added the new
glenum value to the request property/ - info
added the new
heenum value to the request property/ - info
added the new
hrenum value to the request property/ - info
added the new
matchenum value to the request property - info
added the new
slenum value to the request property/ - info
added the new
thenum value to the request property/ - info
added the new
tlenum value to the request property/ - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- info