Skip to content

Commit d0ff0bd

Browse files
SDK regeneration (#699)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 7a66de0 commit d0ff0bd

File tree

87 files changed

+1437
-296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1437
-296
lines changed

.fern/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"cliVersion": "0.107.3",
2+
"cliVersion": "2.15.0",
33
"generatorName": "fernapi/fern-python-sdk",
4-
"generatorVersion": "4.41.3",
4+
"generatorVersion": "4.42.0",
55
"generatorConfig": {
66
"timeout_in_seconds": 240,
77
"default_bytes_stream_chunk_size": 1024,

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[project]
22
name = "elevenlabs"
3+
dynamic = ["version"]
34

45
[tool.poetry]
56
name = "elevenlabs"
6-
version = "v2.25.0"
7+
version = "v2.26.0"
78
description = ""
89
readme = "README.md"
910
authors = []

reference.md

Lines changed: 196 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ Defaults to None.
865865
<dl>
866866
<dd>
867867

868-
**apply_text_normalization:** `typing.Optional[BodyTextToSpeechFullApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
868+
**apply_text_normalization:** `typing.Optional[BodyTextToSpeechFullApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
869869

870870
</dd>
871871
</dl>
@@ -1076,7 +1076,7 @@ Defaults to None.
10761076
<dl>
10771077
<dd>
10781078

1079-
**apply_text_normalization:** `typing.Optional[BodyTextToSpeechFullWithTimestampsApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
1079+
**apply_text_normalization:** `typing.Optional[BodyTextToSpeechFullWithTimestampsApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
10801080

10811081
</dd>
10821082
</dl>
@@ -1286,7 +1286,7 @@ Defaults to None.
12861286
<dl>
12871287
<dd>
12881288

1289-
**apply_text_normalization:** `typing.Optional[BodyTextToSpeechStreamApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
1289+
**apply_text_normalization:** `typing.Optional[BodyTextToSpeechStreamApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
12901290

12911291
</dd>
12921292
</dl>
@@ -1498,7 +1498,7 @@ Defaults to None.
14981498
<dl>
14991499
<dd>
15001500

1501-
**apply_text_normalization:** `typing.Optional[BodyTextToSpeechStreamWithTimestampsApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
1501+
**apply_text_normalization:** `typing.Optional[BodyTextToSpeechStreamWithTimestampsApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
15021502

15031503
</dd>
15041504
</dl>
@@ -1644,7 +1644,7 @@ client.text_to_dialogue.convert(
16441644

16451645
**apply_text_normalization:** `typing.Optional[
16461646
BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization
1647-
]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
1647+
]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
16481648

16491649
</dd>
16501650
</dl>
@@ -1781,7 +1781,7 @@ client.text_to_dialogue.stream(
17811781

17821782
**apply_text_normalization:** `typing.Optional[
17831783
BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization
1784-
]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
1784+
]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
17851785

17861786
</dd>
17871787
</dl>
@@ -1919,7 +1919,7 @@ for chunk in response.data:
19191919
<dl>
19201920
<dd>
19211921

1922-
**apply_text_normalization:** `typing.Optional[BodyTextToDialogueStreamWithTimestampsApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
1922+
**apply_text_normalization:** `typing.Optional[BodyTextToDialogueStreamWithTimestampsApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
19231923

19241924
</dd>
19251925
</dl>
@@ -2055,7 +2055,7 @@ client.text_to_dialogue.convert_with_timestamps(
20552055
<dl>
20562056
<dd>
20572057

2058-
**apply_text_normalization:** `typing.Optional[BodyTextToDialogueFullWithTimestampsApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
2058+
**apply_text_normalization:** `typing.Optional[BodyTextToDialogueFullWithTimestampsApplyTextNormalization]` — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
20592059

20602060
</dd>
20612061
</dl>
@@ -3144,7 +3144,7 @@ client.voices.search(
31443144
<dl>
31453145
<dd>
31463146

3147-
**next_page_token:** `typing.Optional[str]` — The next page token to use for pagination. Returned from the previous request.
3147+
**next_page_token:** `typing.Optional[str]` — The next page token to use for pagination. Returned from the previous request. Use this in combination with the has_more flag for reliable pagination.
31483148

31493149
</dd>
31503150
</dl>
@@ -3216,7 +3216,7 @@ client.voices.search(
32163216
<dl>
32173217
<dd>
32183218

3219-
**include_total_count:** `typing.Optional[bool]` — Whether to include the total count of voices found in the response. Incurs a performance cost.
3219+
**include_total_count:** `typing.Optional[bool]` — Whether to include the total count of voices found in the response. NOTE: The total_count value is a live snapshot and may change between requests as users create, modify, or delete voices. For pagination, rely on the has_more flag instead. Only enable this when you actually need the total count (e.g., for display purposes), as it incurs a performance cost.
32203220

32213221
</dd>
32223222
</dl>
@@ -6799,6 +6799,14 @@ client.music.compose()
67996799
<dl>
68006800
<dd>
68016801

6802+
**sign_with_c_2_pa:** `typing.Optional[bool]` — Whether to sign the generated song with C2PA. Applicable only for mp3 files.
6803+
6804+
</dd>
6805+
</dl>
6806+
6807+
<dl>
6808+
<dd>
6809+
68026810
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response.
68036811

68046812
</dd>
@@ -6915,6 +6923,22 @@ client.music.compose_detailed()
69156923
<dl>
69166924
<dd>
69176925

6926+
**with_timestamps:** `typing.Optional[bool]` — Whether to return the timestamps of the words in the generated song.
6927+
6928+
</dd>
6929+
</dl>
6930+
6931+
<dl>
6932+
<dd>
6933+
6934+
**sign_with_c_2_pa:** `typing.Optional[bool]` — Whether to sign the generated song with C2PA. Applicable only for mp3 files.
6935+
6936+
</dd>
6937+
</dl>
6938+
6939+
<dl>
6940+
<dd>
6941+
69186942
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response.
69196943

69206944
</dd>
@@ -7646,6 +7670,112 @@ client.conversational_ai.twilio.outbound_call(
76467670
</dl>
76477671

76487672

7673+
</dd>
7674+
</dl>
7675+
</details>
7676+
7677+
<details><summary><code>client.conversational_ai.twilio.<a href="src/elevenlabs/conversational_ai/twilio/client.py">register_call</a>(...)</code></summary>
7678+
<dl>
7679+
<dd>
7680+
7681+
#### 📝 Description
7682+
7683+
<dl>
7684+
<dd>
7685+
7686+
<dl>
7687+
<dd>
7688+
7689+
Register a Twilio call and return TwiML to connect the call
7690+
</dd>
7691+
</dl>
7692+
</dd>
7693+
</dl>
7694+
7695+
#### 🔌 Usage
7696+
7697+
<dl>
7698+
<dd>
7699+
7700+
<dl>
7701+
<dd>
7702+
7703+
```python
7704+
from elevenlabs import ElevenLabs
7705+
7706+
client = ElevenLabs(
7707+
api_key="YOUR_API_KEY",
7708+
)
7709+
client.conversational_ai.twilio.register_call(
7710+
agent_id="agent_id",
7711+
from_number="from_number",
7712+
to_number="to_number",
7713+
)
7714+
7715+
```
7716+
</dd>
7717+
</dl>
7718+
</dd>
7719+
</dl>
7720+
7721+
#### ⚙️ Parameters
7722+
7723+
<dl>
7724+
<dd>
7725+
7726+
<dl>
7727+
<dd>
7728+
7729+
**agent_id:** `str`
7730+
7731+
</dd>
7732+
</dl>
7733+
7734+
<dl>
7735+
<dd>
7736+
7737+
**from_number:** `str`
7738+
7739+
</dd>
7740+
</dl>
7741+
7742+
<dl>
7743+
<dd>
7744+
7745+
**to_number:** `str`
7746+
7747+
</dd>
7748+
</dl>
7749+
7750+
<dl>
7751+
<dd>
7752+
7753+
**direction:** `typing.Optional[
7754+
BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection
7755+
]`
7756+
7757+
</dd>
7758+
</dl>
7759+
7760+
<dl>
7761+
<dd>
7762+
7763+
**conversation_initiation_client_data:** `typing.Optional[ConversationInitiationClientDataRequestInput]`
7764+
7765+
</dd>
7766+
</dl>
7767+
7768+
<dl>
7769+
<dd>
7770+
7771+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
7772+
7773+
</dd>
7774+
</dl>
7775+
</dd>
7776+
</dl>
7777+
7778+
76497779
</dd>
76507780
</dl>
76517781
</details>
@@ -14549,7 +14679,7 @@ client = ElevenLabs(
1454914679
)
1455014680
client.dubbing.resource.render(
1455114681
dubbing_id="dubbing_id",
14552-
language="language",
14682+
language="original",
1455314683
render_type="mp4",
1455414684
)
1455514685

@@ -15135,6 +15265,30 @@ client.dubbing.resource.speaker.update(
1513515265
<dl>
1513615266
<dd>
1513715267

15268+
**voice_stability:** `typing.Optional[float]` — For models that support it, the voice similarity value to use. This will default to 0.65, with a valid range of [0.0, 1.0].
15269+
15270+
</dd>
15271+
</dl>
15272+
15273+
<dl>
15274+
<dd>
15275+
15276+
**voice_similarity:** `typing.Optional[float]` — For models that support it, the voice similarity value to use. This will default to 1.0, with a valid range of [0.0, 1.0].
15277+
15278+
</dd>
15279+
</dl>
15280+
15281+
<dl>
15282+
<dd>
15283+
15284+
**voice_style:** `typing.Optional[float]` — For models that support it, the voice style value to use. This will default to 1.0, with a valid range of [0.0, 1.0].
15285+
15286+
</dd>
15287+
</dl>
15288+
15289+
<dl>
15290+
<dd>
15291+
1513815292
**languages:** `typing.Optional[typing.Sequence[str]]` — Languages to apply these changes to. If empty, will apply to all languages.
1513915293

1514015294
</dd>
@@ -15215,6 +15369,30 @@ client.dubbing.resource.speaker.create(
1521515369
<dl>
1521615370
<dd>
1521715371

15372+
**voice_stability:** `typing.Optional[float]` — For models that support it, the voice similarity value to use. This will default to 0.65, with a valid range of [0.0, 1.0].
15373+
15374+
</dd>
15375+
</dl>
15376+
15377+
<dl>
15378+
<dd>
15379+
15380+
**voice_similarity:** `typing.Optional[float]` — For models that support it, the voice similarity value to use. This will default to 1.0, with a valid range of [0.0, 1.0].
15381+
15382+
</dd>
15383+
</dl>
15384+
15385+
<dl>
15386+
<dd>
15387+
15388+
**voice_style:** `typing.Optional[float]` — For models that support it, the voice style value to use. This will default to 1.0, with a valid range of [0.0, 1.0].
15389+
15390+
</dd>
15391+
</dl>
15392+
15393+
<dl>
15394+
<dd>
15395+
1521815396
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1521915397

1522015398
</dd>
@@ -15792,7 +15970,6 @@ client = ElevenLabs(
1579215970
client.service_accounts.api_keys.create(
1579315971
service_account_user_id="service_account_user_id",
1579415972
name="name",
15795-
permissions=["text_to_speech"],
1579615973
)
1579715974

1579815975
```
@@ -15969,7 +16146,6 @@ client.service_accounts.api_keys.update(
1596916146
api_key_id="api_key_id",
1597016147
is_enabled=True,
1597116148
name="Sneaky Fox",
15972-
permissions=["text_to_speech"],
1597316149
)
1597416150

1597516151
```
@@ -16592,7 +16768,13 @@ ultra lossless - ultra quality output format, 705.6kbps with 44.1kHz sample rate
1659216768
<dl>
1659316769
<dd>
1659416770

16595-
**voice_settings:** `typing.Optional[typing.List[str]]` — Optional voice settings overrides for the project, encoded as a list of JSON strings.
16771+
**voice_settings:** `typing.Optional[typing.List[str]]`
16772+
16773+
Optional voice settings overrides for the project, encoded as a list of JSON strings.
16774+
16775+
Example:
16776+
["{\"voice_id\": \"21m00Tcm4TlvDq8ikWAM\", \"stability\": 0.7, \"similarity_boost\": 0.8, \"style\": 0.5, \"speed\": 1.0, \"use_speaker_boost\": true}"]
16777+
1659616778

1659716779
</dd>
1659816780
</dl>

0 commit comments

Comments
 (0)