@@ -67,7 +67,6 @@ service:
67
67
audio : //PExAA0DDYRvkpNfhv3JI5JZ...etc.
68
68
snippets :
69
69
- - audio : //PExAA0DDYRvkpNfhv3JI5JZ...etc.
70
- audio_format : mp3
71
70
id : 37b1b1b1-1b1b-1b1b-1b1b-1b1b1b1b1b1b
72
71
text : >-
73
72
Beauty is no quality in things themselves: It exists
@@ -114,6 +113,88 @@ service:
114
113
format :
115
114
type : mp3
116
115
num_generations : 1
116
+ synthesize-file-streaming :
117
+ path : /v0/tts/stream/file
118
+ method : POST
119
+ auth : true
120
+ docs : >-
121
+ Streams synthesized speech using the specified voice. If no voice is
122
+ provided, a novel voice will be generated dynamically. Optionally,
123
+ additional context can be included to influence the speech's style and
124
+ prosody.
125
+ source :
126
+ openapi : tts-openapi.yml
127
+ display-name : Text-to-speech (Streamed File)
128
+ request :
129
+ body :
130
+ type : PostedTts
131
+ content-type : application/json
132
+ response :
133
+ docs : OK
134
+ type : file
135
+ status-code : 200
136
+ errors :
137
+ - UnprocessableEntityError
138
+ examples :
139
+ - request :
140
+ utterances :
141
+ - text : >-
142
+ Beauty is no quality in things themselves: It exists merely in
143
+ the mind which contemplates them.
144
+ description: >-
145
+ Middle-aged masculine voice with a clear, rhythmic Scots lilt,
146
+ rounded vowels, and a warm, steady tone with an articulate,
147
+ academic quality.
148
+ context :
149
+ generation_id : 09ad914d-8e7f-40f8-a279-e34f07f7dab2
150
+ format :
151
+ type : mp3
152
+ num_generations : 1
153
+ synthesize-json-streaming :
154
+ path : /v0/tts/stream/json
155
+ method : POST
156
+ auth : true
157
+ docs : >-
158
+ Streams synthesized speech using the specified voice. If no voice is
159
+ provided, a novel voice will be generated dynamically. Optionally,
160
+ additional context can be included to influence the speech's style and
161
+ prosody.
162
+
163
+
164
+ The response is a stream of JSON objects including audio encoded in
165
+ base64.
166
+ source :
167
+ openapi : tts-openapi.yml
168
+ display-name : Text-to-speech (Streamed JSON)
169
+ request :
170
+ body :
171
+ type : PostedTts
172
+ content-type : application/json
173
+ response-stream :
174
+ docs : Successful Response
175
+ type : Snippet
176
+ format : json
177
+ errors :
178
+ - UnprocessableEntityError
179
+ examples :
180
+ - request :
181
+ utterances :
182
+ - text : >-
183
+ Beauty is no quality in things themselves: It exists merely in
184
+ the mind which contemplates them.
185
+ description: >-
186
+ Middle-aged masculine voice with a clear, rhythmic Scots lilt,
187
+ rounded vowels, and a warm, steady tone with an articulate,
188
+ academic quality.
189
+ context :
190
+ utterances :
191
+ - text : How can people see beauty so differently?
192
+ description : >-
193
+ A curious student with a clear and respectful tone, seeking
194
+ clarification on Hume's ideas with a straightforward
195
+ question.
196
+ format :
197
+ type : mp3
117
198
source :
118
199
openapi : tts-openapi.yml
119
200
types :
@@ -290,9 +371,6 @@ types:
290
371
The segmented audio output in the requested format, encoded as a
291
372
base64 string.
292
373
access : read-only
293
- audio_format :
294
- type : string
295
- docs : The generated audio output format.
296
374
generation_id :
297
375
type : string
298
376
docs : The generation ID this snippet corresponds to.
0 commit comments