Skip to content

Commit 5a7d04d

Browse files
author
Lennart Hoffjann
committed
Merge branch 'fix/voice-connection-duration-docs' into 'main'
docs(voice): correct connection duration guidance See merge request deepl-org/deepl/clapi-track/api-docs-mirror!262
2 parents abbc38f + d96db38 commit 5a7d04d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/voice/understanding-voice-sessions.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Two security properties follow from the token design:
4848
* Each token and streaming URL is valid for one-time use. Using a token more than once to open a WebSocket connection terminates the session immediately.
4949
* Only the latest token can request a reconnection. Presenting an outdated token invalidates the session.
5050

51-
Requesting a reconnection token while a connection is still active disconnects that connection, so only reconnect after the existing connection has closed. Connections also have a maximum duration; when it's reached, reconnect the same way to continue the session. See [session limits](/docs/voice/voice-api-requirements#session-limits) for the exact values.
51+
Requesting a reconnection token while a connection is still active disconnects that connection, so only reconnect after the existing connection has closed. The API keeps connections open for as long as possible, but your client must handle disconnects and reconnect to continue the session. See [session limits](/docs/voice/voice-api-requirements#session-limits) for details.
5252

5353
## How audio and results flow
5454

‎docs/voice/voice-api-requirements.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For the detailed list of supported input audio formats, see [Source Media Conten
2626
* Recommended chunk duration: 50-250 milliseconds for low latency
2727
* Audio stream speed: maximum 2x real-time
2828
* Timeout: if no data is received for 30 seconds, the session is terminated
29-
* Maximum connection duration: after 1 hour, the connection is closed. Establish a new connection by [reconnecting](/api-reference/voice/reconnect-session) to the session
29+
* Connection duration: the API keeps connections open for as long as possible, but connections can close at any time. Your client must handle disconnects and [reconnect](/api-reference/voice/reconnect-session) to continue the session
3030
* Using any given token more than once to establish a WebSocket connection terminates the associated session immediately for security reasons
3131

3232
If you need more translation targets or translated speech targets than these limits allow, open multiple concurrent sessions over the same source audio.

0 commit comments

Comments
 (0)