From 1fd4b5791578139fbc7947490010c442033efdd1 Mon Sep 17 00:00:00 2001 From: Stefan Jacobi Date: Fri, 14 Nov 2025 10:21:27 +0100 Subject: [PATCH] feat(voice): [ACL-2127] Rework display of some doc elements --- api-reference/voice.mdx | 60 ++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/api-reference/voice.mdx b/api-reference/voice.mdx index bf5ca017..e98eaa6c 100644 --- a/api-reference/voice.mdx +++ b/api-reference/voice.mdx @@ -25,10 +25,8 @@ The API uses a two-step flow: ## Supported Languages -### Source Languages - The following source languages are supported for voice input: - + * Chinese (Mandarin) * Dutch * English @@ -46,11 +44,11 @@ The following source languages are supported for voice input: * Swedish * Turkish * Ukrainian - -### Target Languages + All source languages can be translated into the following target languages: + * Arabic * Bulgarian * Chinese (Simplified) @@ -86,35 +84,13 @@ All source languages can be translated into the following target languages: * Turkish * Ukrainian * Vietnamese + ## Two-Step API Flow -The Voice API uses a two-step flow to initiate streaming: - -### Step 1: Request Session and Stream URL (REST) - -Make a POST request to obtain an ephemeral streaming URL and authentication token: - -```http -POST https://api.deepl.com/v1/voice/realtime -``` - -This step handles: -* Authentication and authorization -* Main configuration options (audio format, languages, glossaries, etc.) - -See the [Get Streaming URL](/api-reference/voice/get-streaming-url) documentation for details. - -### Step 2: Streaming Audio and Text (WebSocket) - -Use the received URL to establish a WebSocket connection for: -* Sending audio data -* Receiving transcriptions and translations in real-time - -See the [WebSocket Streaming](/api-reference/voice/websocket-streaming) documentation for details. - -### Message Flow +The Voice API uses a two-step flow to initiate streaming. + ```mermaid sequenceDiagram participant Client @@ -155,6 +131,30 @@ sequenceDiagram Note over Client,Voice API: Connection Closed ``` + + + + + Make a POST request to obtain an ephemeral streaming URL and authentication token: + + ```http + POST https://api.deepl.com/v1/voice/realtime + ``` + + This step handles: + * Authentication and authorization + * Main configuration options (audio format, languages, glossaries, etc.) + + See the [Get Streaming URL](/api-reference/voice/get-streaming-url) documentation for details. + + + Use the received URL to establish a WebSocket connection for: + * Sending audio data + * Receiving transcriptions and translations in real-time + + See the [WebSocket Streaming](/api-reference/voice/websocket-streaming) documentation for details. + + ## Limitations and Constraints