Skip to content

Commit d38e125

Browse files
authored
Merge pull request #167 from DeepLcom/acl/acl-2168-voice-v3
[ACL-2168] change voice v1 to v3
2 parents 7559ef1 + 05ff9c7 commit d38e125

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

api-reference/openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,7 @@ paths:
19321932
$ref: '#/components/responses/ServiceUnavailable'
19331933
security:
19341934
- auth_header: []
1935-
/v1/voice/realtime:
1935+
/v3/voice/realtime:
19361936
post:
19371937
tags:
19381938
- VoiceAPI
@@ -1984,7 +1984,7 @@ paths:
19841984
schema:
19851985
$ref: '#/components/schemas/VoiceStreamingResponse'
19861986
example:
1987-
streaming_url: 'wss://api.deepl.com/v1/voice/realtime/connect'
1987+
streaming_url: 'wss://api.deepl.com/v3/voice/realtime/connect'
19881988
token: 'VGhpcyBpcyBhIGZha2UgdG9rZW4K'
19891989
session_id: '4f911080-cfe2-41d4-8269-0e6ec15a0354'
19901990
400:
@@ -4298,7 +4298,7 @@ components:
42984298
description: >
42994299
The WebSocket URL to use for establishing
43004300
[the stream connection](/api-reference/voice/websocket-streaming).
4301-
example: wss://api.deepl.com/v1/voice/realtime/connect
4301+
example: wss://api.deepl.com/v3/voice/realtime/connect
43024302
token:
43034303
type: string
43044304
description: >

api-reference/voice.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ The Voice API uses a two-step flow to initiate streaming.
124124

125125
<Steps>
126126
<Step title="Request Stream">
127-
Make a POST request `v1/voice/realtime` to obtain an ephemeral streaming URL and authentication token. The response will look like this:
127+
Make a POST request `v3/voice/realtime` to obtain an ephemeral streaming URL and authentication token. The response will look like this:
128128

129129
```json
130130
{
131-
"streaming_url": "wss://api.deepl.com/v1/voice/realtime/connect",
131+
"streaming_url": "wss://api.deepl.com/v3/voice/realtime/connect",
132132
"token": <secure access token>,
133133
}
134134
```
@@ -144,7 +144,7 @@ The Voice API uses a two-step flow to initiate streaming.
144144
See the [Request Stream](/api-reference/voice/request-stream) documentation for details.
145145
</Step>
146146
<Step title="Streaming Audio and Text (WebSocket)">
147-
Use the received URL to establish a WebSocket connection to `wss://api.deepl.com/v1/voice/realtime/connect?token=<secure access token>`.
147+
Use the received URL to establish a WebSocket connection to `wss://api.deepl.com/v3/voice/realtime/connect?token=<secure access token>`.
148148
This step handles exchanging JSON messages on the WebSocket connection:
149149
* Sending audio data
150150
* Receiving transcriptions and translations in real-time
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
openapi: post /v1/voice/realtime
2+
openapi: post /v3/voice/realtime
33
title: "Request Stream"
44
---

api-reference/voice/voice.asyncapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ info:
1313
servers:
1414
production:
1515
host: api.deepl.com
16-
pathname: /v1/voice/realtime/connect
16+
pathname: /v3/voice/realtime/connect
1717
protocol: wss
1818
description: DeepL Voice API WebSocket endpoint.
1919
variables:
@@ -24,7 +24,7 @@ servers:
2424

2525
channels:
2626
voiceStream:
27-
address: /v1/voice/realtime/connect?token={token}
27+
address: /v3/voice/realtime/connect?token={token}
2828
description: >
2929
WebSocket channel for streaming audio and receiving transcriptions and translations.
3030
Messages are exchanged in JSON format and WebSocket frames must be of type TEXT.

0 commit comments

Comments
 (0)