Skip to content

Commit 3f3952a

Browse files
committed
SDK regeneration
1 parent 92c8e9e commit 3f3952a

20 files changed

Lines changed: 147 additions & 292 deletions

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "elevenlabs"
33

44
[tool.poetry]
55
name = "elevenlabs"
6-
version = "v2.12.1"
6+
version = "v2.13.0"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 16 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,14 @@ client.text_to_sound_effects.convert(
367367
<dl>
368368
<dd>
369369

370+
**loop:** `typing.Optional[bool]` — Whether to create a sound effect that loops smoothly.
371+
372+
</dd>
373+
</dl>
374+
375+
<dl>
376+
<dd>
377+
370378
**duration_seconds:** `typing.Optional[float]` — The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 30. If set to None we will guess the optimal duration using the prompt. Defaults to None.
371379

372380
</dd>
@@ -11968,6 +11976,14 @@ client.dubbing.resource.render(
1196811976
<dl>
1196911977
<dd>
1197011978

11979+
**should_normalize_volume:** `typing.Optional[bool]` — Whether to normalize the volume of the rendered audio.
11980+
11981+
</dd>
11982+
</dl>
11983+
11984+
<dl>
11985+
<dd>
11986+
1197111987
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1197211988

1197311989
</dd>
@@ -17008,76 +17024,6 @@ client.workspace.members.update(
1700817024
</dl>
1700917025

1701017026

17011-
</dd>
17012-
</dl>
17013-
</details>
17014-
17015-
<details><summary><code>client.workspace.members.<a href="src/elevenlabs/workspace/members/client.py">delete</a>(...)</code></summary>
17016-
<dl>
17017-
<dd>
17018-
17019-
#### 📝 Description
17020-
17021-
<dl>
17022-
<dd>
17023-
17024-
<dl>
17025-
<dd>
17026-
17027-
Deletes a workspace member. This endpoint may only be called by workspace administrators.
17028-
</dd>
17029-
</dl>
17030-
</dd>
17031-
</dl>
17032-
17033-
#### 🔌 Usage
17034-
17035-
<dl>
17036-
<dd>
17037-
17038-
<dl>
17039-
<dd>
17040-
17041-
```python
17042-
from elevenlabs import ElevenLabs
17043-
17044-
client = ElevenLabs(
17045-
api_key="YOUR_API_KEY",
17046-
)
17047-
client.workspace.members.delete(
17048-
email="email",
17049-
)
17050-
17051-
```
17052-
</dd>
17053-
</dl>
17054-
</dd>
17055-
</dl>
17056-
17057-
#### ⚙️ Parameters
17058-
17059-
<dl>
17060-
<dd>
17061-
17062-
<dl>
17063-
<dd>
17064-
17065-
**email:** `str` — Email of the target user.
17066-
17067-
</dd>
17068-
</dl>
17069-
17070-
<dl>
17071-
<dd>
17072-
17073-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
17074-
17075-
</dd>
17076-
</dl>
17077-
</dd>
17078-
</dl>
17079-
17080-
1708117027
</dd>
1708217028
</dl>
1708317029
</details>

src/elevenlabs/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@
231231
DeleteVoiceSampleResponseModel,
232232
DeleteWorkspaceGroupMemberResponseModel,
233233
DeleteWorkspaceInviteResponseModel,
234-
DeleteWorkspaceMemberResponseModel,
235234
DependentAvailableAgentIdentifier,
236235
DependentAvailableAgentIdentifierAccessLevel,
237236
DependentAvailableToolIdentifier,
@@ -378,6 +377,7 @@
378377
InitializeConnectionMulti,
379378
IntegrationType,
380379
InvoiceResponse,
380+
InvoiceResponseModelPaymentIntentStatus,
381381
KeepContextAlive,
382382
KnowledgeBaseDocumentChunkResponseModel,
383383
KnowledgeBaseDocumentMetadataResponseModel,
@@ -1115,7 +1115,6 @@
11151115
"DeleteVoiceSampleResponseModel",
11161116
"DeleteWorkspaceGroupMemberResponseModel",
11171117
"DeleteWorkspaceInviteResponseModel",
1118-
"DeleteWorkspaceMemberResponseModel",
11191118
"DependentAvailableAgentIdentifier",
11201119
"DependentAvailableAgentIdentifierAccessLevel",
11211120
"DependentAvailableToolIdentifier",
@@ -1268,6 +1267,7 @@
12681267
"InitializeConnectionMulti",
12691268
"IntegrationType",
12701269
"InvoiceResponse",
1270+
"InvoiceResponseModelPaymentIntentStatus",
12711271
"KeepContextAlive",
12721272
"KnowledgeBaseDocumentChunkResponseModel",
12731273
"KnowledgeBaseDocumentMetadataResponseModel",

src/elevenlabs/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ def __init__(self, *, api_key: typing.Optional[str] = None, base_url: str, timeo
1414

1515
def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
17-
"User-Agent": "elevenlabs/v2.12.1",
17+
"User-Agent": "elevenlabs/v2.13.0",
1818
"X-Fern-Language": "Python",
1919
"X-Fern-SDK-Name": "elevenlabs",
20-
"X-Fern-SDK-Version": "v2.12.1",
20+
"X-Fern-SDK-Version": "v2.13.0",
2121
}
2222
if self._api_key is not None:
2323
headers["xi-api-key"] = self._api_key

src/elevenlabs/dubbing/resource/client.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def render(
211211
language: str,
212212
*,
213213
render_type: RenderType,
214+
should_normalize_volume: typing.Optional[bool] = None,
214215
request_options: typing.Optional[RequestOptions] = None,
215216
) -> DubbingRenderResponseModel:
216217
"""
@@ -227,6 +228,9 @@ def render(
227228
render_type : RenderType
228229
The type of the render. One of ['mp4', 'aac', 'mp3', 'wav', 'aaf', 'tracks_zip', 'clips_zip']
229230
231+
should_normalize_volume : typing.Optional[bool]
232+
Whether to normalize the volume of the rendered audio.
233+
230234
request_options : typing.Optional[RequestOptions]
231235
Request-specific configuration.
232236
@@ -249,7 +253,11 @@ def render(
249253
)
250254
"""
251255
_response = self._raw_client.render(
252-
dubbing_id, language, render_type=render_type, request_options=request_options
256+
dubbing_id,
257+
language,
258+
render_type=render_type,
259+
should_normalize_volume=should_normalize_volume,
260+
request_options=request_options,
253261
)
254262
return _response.data
255263

@@ -478,6 +486,7 @@ async def render(
478486
language: str,
479487
*,
480488
render_type: RenderType,
489+
should_normalize_volume: typing.Optional[bool] = None,
481490
request_options: typing.Optional[RequestOptions] = None,
482491
) -> DubbingRenderResponseModel:
483492
"""
@@ -494,6 +503,9 @@ async def render(
494503
render_type : RenderType
495504
The type of the render. One of ['mp4', 'aac', 'mp3', 'wav', 'aaf', 'tracks_zip', 'clips_zip']
496505
506+
should_normalize_volume : typing.Optional[bool]
507+
Whether to normalize the volume of the rendered audio.
508+
497509
request_options : typing.Optional[RequestOptions]
498510
Request-specific configuration.
499511
@@ -524,6 +536,10 @@ async def main() -> None:
524536
asyncio.run(main())
525537
"""
526538
_response = await self._raw_client.render(
527-
dubbing_id, language, render_type=render_type, request_options=request_options
539+
dubbing_id,
540+
language,
541+
render_type=render_type,
542+
should_normalize_volume=should_normalize_volume,
543+
request_options=request_options,
528544
)
529545
return _response.data

src/elevenlabs/dubbing/resource/raw_client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def render(
284284
language: str,
285285
*,
286286
render_type: RenderType,
287+
should_normalize_volume: typing.Optional[bool] = None,
287288
request_options: typing.Optional[RequestOptions] = None,
288289
) -> HttpResponse[DubbingRenderResponseModel]:
289290
"""
@@ -300,6 +301,9 @@ def render(
300301
render_type : RenderType
301302
The type of the render. One of ['mp4', 'aac', 'mp3', 'wav', 'aaf', 'tracks_zip', 'clips_zip']
302303
304+
should_normalize_volume : typing.Optional[bool]
305+
Whether to normalize the volume of the rendered audio.
306+
303307
request_options : typing.Optional[RequestOptions]
304308
Request-specific configuration.
305309
@@ -311,6 +315,9 @@ def render(
311315
_response = self._client_wrapper.httpx_client.request(
312316
f"v1/dubbing/resource/{jsonable_encoder(dubbing_id)}/render/{jsonable_encoder(language)}",
313317
method="POST",
318+
params={
319+
"should_normalize_volume": should_normalize_volume,
320+
},
314321
json={
315322
"render_type": render_type,
316323
},
@@ -609,6 +616,7 @@ async def render(
609616
language: str,
610617
*,
611618
render_type: RenderType,
619+
should_normalize_volume: typing.Optional[bool] = None,
612620
request_options: typing.Optional[RequestOptions] = None,
613621
) -> AsyncHttpResponse[DubbingRenderResponseModel]:
614622
"""
@@ -625,6 +633,9 @@ async def render(
625633
render_type : RenderType
626634
The type of the render. One of ['mp4', 'aac', 'mp3', 'wav', 'aaf', 'tracks_zip', 'clips_zip']
627635
636+
should_normalize_volume : typing.Optional[bool]
637+
Whether to normalize the volume of the rendered audio.
638+
628639
request_options : typing.Optional[RequestOptions]
629640
Request-specific configuration.
630641
@@ -636,6 +647,9 @@ async def render(
636647
_response = await self._client_wrapper.httpx_client.request(
637648
f"v1/dubbing/resource/{jsonable_encoder(dubbing_id)}/render/{jsonable_encoder(language)}",
638649
method="POST",
650+
params={
651+
"should_normalize_volume": should_normalize_volume,
652+
},
639653
json={
640654
"render_type": render_type,
641655
},

src/elevenlabs/text_to_sound_effects/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def convert(
3131
*,
3232
text: str,
3333
output_format: typing.Optional[TextToSoundEffectsConvertRequestOutputFormat] = None,
34+
loop: typing.Optional[bool] = OMIT,
3435
duration_seconds: typing.Optional[float] = OMIT,
3536
prompt_influence: typing.Optional[float] = OMIT,
3637
request_options: typing.Optional[RequestOptions] = None,
@@ -46,6 +47,9 @@ def convert(
4647
output_format : typing.Optional[TextToSoundEffectsConvertRequestOutputFormat]
4748
Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
4849
50+
loop : typing.Optional[bool]
51+
Whether to create a sound effect that loops smoothly.
52+
4953
duration_seconds : typing.Optional[float]
5054
The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 30. If set to None we will guess the optimal duration using the prompt. Defaults to None.
5155
@@ -74,6 +78,7 @@ def convert(
7478
with self._raw_client.convert(
7579
text=text,
7680
output_format=output_format,
81+
loop=loop,
7782
duration_seconds=duration_seconds,
7883
prompt_influence=prompt_influence,
7984
request_options=request_options,
@@ -101,6 +106,7 @@ async def convert(
101106
*,
102107
text: str,
103108
output_format: typing.Optional[TextToSoundEffectsConvertRequestOutputFormat] = None,
109+
loop: typing.Optional[bool] = OMIT,
104110
duration_seconds: typing.Optional[float] = OMIT,
105111
prompt_influence: typing.Optional[float] = OMIT,
106112
request_options: typing.Optional[RequestOptions] = None,
@@ -116,6 +122,9 @@ async def convert(
116122
output_format : typing.Optional[TextToSoundEffectsConvertRequestOutputFormat]
117123
Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
118124
125+
loop : typing.Optional[bool]
126+
Whether to create a sound effect that loops smoothly.
127+
119128
duration_seconds : typing.Optional[float]
120129
The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 30. If set to None we will guess the optimal duration using the prompt. Defaults to None.
121130
@@ -152,6 +161,7 @@ async def main() -> None:
152161
async with self._raw_client.convert(
153162
text=text,
154163
output_format=output_format,
164+
loop=loop,
155165
duration_seconds=duration_seconds,
156166
prompt_influence=prompt_influence,
157167
request_options=request_options,

src/elevenlabs/text_to_sound_effects/raw_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def convert(
2727
*,
2828
text: str,
2929
output_format: typing.Optional[TextToSoundEffectsConvertRequestOutputFormat] = None,
30+
loop: typing.Optional[bool] = OMIT,
3031
duration_seconds: typing.Optional[float] = OMIT,
3132
prompt_influence: typing.Optional[float] = OMIT,
3233
request_options: typing.Optional[RequestOptions] = None,
@@ -42,6 +43,9 @@ def convert(
4243
output_format : typing.Optional[TextToSoundEffectsConvertRequestOutputFormat]
4344
Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
4445
46+
loop : typing.Optional[bool]
47+
Whether to create a sound effect that loops smoothly.
48+
4549
duration_seconds : typing.Optional[float]
4650
The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 30. If set to None we will guess the optimal duration using the prompt. Defaults to None.
4751
@@ -64,6 +68,7 @@ def convert(
6468
},
6569
json={
6670
"text": text,
71+
"loop": loop,
6772
"duration_seconds": duration_seconds,
6873
"prompt_influence": prompt_influence,
6974
},
@@ -113,6 +118,7 @@ async def convert(
113118
*,
114119
text: str,
115120
output_format: typing.Optional[TextToSoundEffectsConvertRequestOutputFormat] = None,
121+
loop: typing.Optional[bool] = OMIT,
116122
duration_seconds: typing.Optional[float] = OMIT,
117123
prompt_influence: typing.Optional[float] = OMIT,
118124
request_options: typing.Optional[RequestOptions] = None,
@@ -128,6 +134,9 @@ async def convert(
128134
output_format : typing.Optional[TextToSoundEffectsConvertRequestOutputFormat]
129135
Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
130136
137+
loop : typing.Optional[bool]
138+
Whether to create a sound effect that loops smoothly.
139+
131140
duration_seconds : typing.Optional[float]
132141
The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 30. If set to None we will guess the optimal duration using the prompt. Defaults to None.
133142
@@ -150,6 +159,7 @@ async def convert(
150159
},
151160
json={
152161
"text": text,
162+
"loop": loop,
153163
"duration_seconds": duration_seconds,
154164
"prompt_influence": prompt_influence,
155165
},

0 commit comments

Comments
 (0)