Skip to content

Commit c1cf1a8

Browse files
🌿 Fern Regeneration -- March 26, 2025 (#251)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: twitchard <[email protected]>
1 parent 32bee13 commit c1cf1a8

File tree

8 files changed

+1774
-993
lines changed

8 files changed

+1774
-993
lines changed

.mock/definition/tts/__package__.yml

Lines changed: 82 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ service:
6767
audio: //PExAA0DDYRvkpNfhv3JI5JZ...etc.
6868
snippets:
6969
- - audio: //PExAA0DDYRvkpNfhv3JI5JZ...etc.
70-
audio_format: mp3
7170
id: 37b1b1b1-1b1b-1b1b-1b1b-1b1b1b1b1b1b
7271
text: >-
7372
Beauty is no quality in things themselves: It exists
@@ -114,6 +113,88 @@ service:
114113
format:
115114
type: mp3
116115
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
117198
source:
118199
openapi: tts-openapi.yml
119200
types:
@@ -290,9 +371,6 @@ types:
290371
The segmented audio output in the requested format, encoded as a
291372
base64 string.
292373
access: read-only
293-
audio_format:
294-
type: string
295-
docs: The generated audio output format.
296374
generation_id:
297375
type: string
298376
docs: The generation ID this snippet corresponds to.

poetry.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hume"
3-
version = "0.7.10"
3+
version = "0.7.11"
44
description = "A Python SDK for Hume AI"
55
readme = "README.md"
66
authors = []

0 commit comments

Comments
 (0)