Skip to content

Commit 5f4e2da

Browse files
authored
Merge pull request elevenlabs#267 from elevenlabs/fern-bot/04-18-2024-1039AM
🌿 Fern Regeneration -- April 18, 2024
2 parents 694a305 + a48f814 commit 5f4e2da

File tree

3 files changed

+18
-26
lines changed

3 files changed

+18
-26
lines changed

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 = "elevenlabs"
3-
version = "v1.1.1"
3+
version = "v1.1.2"
44
description = ""
55
readme = "README.md"
66
authors = []

src/elevenlabs/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1717
headers: typing.Dict[str, str] = {
1818
"X-Fern-Language": "Python",
1919
"X-Fern-SDK-Name": "elevenlabs",
20-
"X-Fern-SDK-Version": "v1.1.1",
20+
"X-Fern-SDK-Version": "v1.1.2",
2121
}
2222
if self._api_key is not None:
2323
headers["xi-api-key"] = self._api_key

src/elevenlabs/text_to_speech/client.py

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def convert(
2626
self,
2727
voice_id: str,
2828
*,
29-
optimize_streaming_latency: OptimizeStreamingLatency,
30-
output_format: OutputFormat,
29+
optimize_streaming_latency: typing.Optional[OptimizeStreamingLatency] = None,
30+
output_format: typing.Optional[OutputFormat] = None,
3131
text: str,
3232
model_id: typing.Optional[str] = OMIT,
3333
voice_settings: typing.Optional[VoiceSettings] = OMIT,
@@ -42,9 +42,9 @@ def convert(
4242
Parameters:
4343
- voice_id: str. Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
4444
45-
- optimize_streaming_latency: OptimizeStreamingLatency. You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model.
45+
- optimize_streaming_latency: typing.Optional[OptimizeStreamingLatency]. You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model.
4646
47-
- output_format: OutputFormat. The output format of the generated audio.
47+
- output_format: typing.Optional[OutputFormat]. The output format of the generated audio.
4848
4949
- text: str. The text that will get converted into speech.
5050
@@ -63,8 +63,6 @@ def convert(
6363
)
6464
client.text_to_speech.convert(
6565
voice_id="voice_id",
66-
optimize_streaming_latency="0",
67-
output_format="mp3_22050_32",
6866
text="text",
6967
)
7068
"""
@@ -128,8 +126,8 @@ def convert_as_stream(
128126
self,
129127
voice_id: str,
130128
*,
131-
optimize_streaming_latency: OptimizeStreamingLatency,
132-
output_format: OutputFormat,
129+
optimize_streaming_latency: typing.Optional[OptimizeStreamingLatency] = None,
130+
output_format: typing.Optional[OutputFormat] = None,
133131
text: str,
134132
model_id: typing.Optional[str] = OMIT,
135133
voice_settings: typing.Optional[VoiceSettings] = OMIT,
@@ -144,9 +142,9 @@ def convert_as_stream(
144142
Parameters:
145143
- voice_id: str. Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
146144
147-
- optimize_streaming_latency: OptimizeStreamingLatency. You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model.
145+
- optimize_streaming_latency: typing.Optional[OptimizeStreamingLatency]. You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model.
148146
149-
- output_format: OutputFormat. The output format of the generated audio.
147+
- output_format: typing.Optional[OutputFormat]. The output format of the generated audio.
150148
151149
- text: str. The text that will get converted into speech.
152150
@@ -165,8 +163,6 @@ def convert_as_stream(
165163
)
166164
client.text_to_speech.convert_as_stream(
167165
voice_id="voice_id",
168-
optimize_streaming_latency="0",
169-
output_format="mp3_22050_32",
170166
text="text",
171167
)
172168
"""
@@ -235,8 +231,8 @@ async def convert(
235231
self,
236232
voice_id: str,
237233
*,
238-
optimize_streaming_latency: OptimizeStreamingLatency,
239-
output_format: OutputFormat,
234+
optimize_streaming_latency: typing.Optional[OptimizeStreamingLatency] = None,
235+
output_format: typing.Optional[OutputFormat] = None,
240236
text: str,
241237
model_id: typing.Optional[str] = OMIT,
242238
voice_settings: typing.Optional[VoiceSettings] = OMIT,
@@ -251,9 +247,9 @@ async def convert(
251247
Parameters:
252248
- voice_id: str. Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
253249
254-
- optimize_streaming_latency: OptimizeStreamingLatency. You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model.
250+
- optimize_streaming_latency: typing.Optional[OptimizeStreamingLatency]. You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model.
255251
256-
- output_format: OutputFormat. The output format of the generated audio.
252+
- output_format: typing.Optional[OutputFormat]. The output format of the generated audio.
257253
258254
- text: str. The text that will get converted into speech.
259255
@@ -272,8 +268,6 @@ async def convert(
272268
)
273269
await client.text_to_speech.convert(
274270
voice_id="voice_id",
275-
optimize_streaming_latency="0",
276-
output_format="mp3_22050_32",
277271
text="text",
278272
)
279273
"""
@@ -337,8 +331,8 @@ async def convert_as_stream(
337331
self,
338332
voice_id: str,
339333
*,
340-
optimize_streaming_latency: OptimizeStreamingLatency,
341-
output_format: OutputFormat,
334+
optimize_streaming_latency: typing.Optional[OptimizeStreamingLatency] = None,
335+
output_format: typing.Optional[OutputFormat] = None,
342336
text: str,
343337
model_id: typing.Optional[str] = OMIT,
344338
voice_settings: typing.Optional[VoiceSettings] = OMIT,
@@ -353,9 +347,9 @@ async def convert_as_stream(
353347
Parameters:
354348
- voice_id: str. Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
355349
356-
- optimize_streaming_latency: OptimizeStreamingLatency. You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model.
350+
- optimize_streaming_latency: typing.Optional[OptimizeStreamingLatency]. You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model.
357351
358-
- output_format: OutputFormat. The output format of the generated audio.
352+
- output_format: typing.Optional[OutputFormat]. The output format of the generated audio.
359353
360354
- text: str. The text that will get converted into speech.
361355
@@ -374,8 +368,6 @@ async def convert_as_stream(
374368
)
375369
await client.text_to_speech.convert_as_stream(
376370
voice_id="voice_id",
377-
optimize_streaming_latency="0",
378-
output_format="mp3_22050_32",
379371
text="text",
380372
)
381373
"""

0 commit comments

Comments
 (0)