Skip to content

Commit 23cb5ff

Browse files
SDK regeneration (#719)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 5c237da commit 23cb5ff

90 files changed

Lines changed: 1940 additions & 273 deletions

File tree

Some content is hidden

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "elevenlabs"
7-
version = "v2.30.0"
7+
version = "v2.31.0"
88
description = ""
99
readme = "README.md"
1010
authors = []

reference.md

Lines changed: 184 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ Defaults to None.
777777
<dl>
778778
<dd>
779779

780-
**output_format:** `typing.Optional[TextToSpeechConvertRequestOutputFormat]` — 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.
780+
**output_format:** `typing.Optional[TextToSpeechConvertRequestOutputFormat]` — 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 and WAV formats 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.
781781

782782
</dd>
783783
</dl>
@@ -929,7 +929,7 @@ client.text_to_speech.convert_with_timestamps(
929929
voice_id="21m00Tcm4TlvDq8ikWAM",
930930
enable_logging=True,
931931
optimize_streaming_latency=1,
932-
output_format="mp3_22050_32",
932+
output_format="alaw_8000",
933933
text="This is a test for the API of ElevenLabs.",
934934
)
935935

@@ -988,7 +988,7 @@ Defaults to None.
988988
<dl>
989989
<dd>
990990

991-
**output_format:** `typing.Optional[TextToSpeechConvertWithTimestampsRequestOutputFormat]` — 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.
991+
**output_format:** `typing.Optional[TextToSpeechConvertWithTimestampsRequestOutputFormat]` — 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 and WAV formats 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.
992992

993993
</dd>
994994
</dl>
@@ -3502,7 +3502,7 @@ typing.Optional[typing.List[core.File]]` — See core.File for more documentatio
35023502
<dl>
35033503
<dd>
35043504

3505-
**labels:** `typing.Optional[str]`Serialized labels dictionary for the voice.
3505+
**labels:** `typing.Optional[VoicesUpdateRequestLabels]`Labels for the voice. Keys can be language, accent, gender, or age.
35063506

35073507
</dd>
35083508
</dl>
@@ -4020,10 +4020,10 @@ client.studio.create_podcast(
40204020
**quality_preset:** `typing.Optional[BodyCreatePodcastV1StudioPodcastsPostQualityPreset]`
40214021

40224022
Output quality of the generated audio. Must be one of:
4023-
standard - standard output format, 128kbps with 44.1kHz sample rate.
4024-
high - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
4025-
ultra - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
4026-
ultra lossless - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
4023+
'standard' - standard output format, 128kbps with 44.1kHz sample rate.
4024+
'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
4025+
'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
4026+
'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
40274027

40284028
</dd>
40294029
</dl>
@@ -6132,7 +6132,7 @@ client = ElevenLabs(
61326132
)
61336133
client.speech_to_text.convert(
61346134
enable_logging=True,
6135-
model_id="model_id",
6135+
model_id="scribe_v1",
61366136
)
61376137

61386138
```
@@ -6149,7 +6149,7 @@ client.speech_to_text.convert(
61496149
<dl>
61506150
<dd>
61516151

6152-
**model_id:** `str` — The ID of the model to use for transcription, currently only 'scribe_v1' and 'scribe_v1_experimental' are available.
6152+
**model_id:** `SpeechToTextConvertRequestModelId` — The ID of the model to use for transcription.
61536153

61546154
</dd>
61556155
</dl>
@@ -7135,6 +7135,7 @@ client = ElevenLabs(
71357135
client.conversational_ai.conversations.get_signed_url(
71367136
agent_id="21m00Tcm4TlvDq8ikWAM",
71377137
include_conversation_id=True,
7138+
branch_id="branch_id",
71387139
)
71397140

71407141
```
@@ -7167,6 +7168,14 @@ client.conversational_ai.conversations.get_signed_url(
71677168
<dl>
71687169
<dd>
71697170

7171+
**branch_id:** `typing.Optional[str]` — The ID of the branch to use
7172+
7173+
</dd>
7174+
</dl>
7175+
7176+
<dl>
7177+
<dd>
7178+
71707179
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
71717180

71727181
</dd>
@@ -7214,6 +7223,7 @@ client = ElevenLabs(
72147223
client.conversational_ai.conversations.get_webrtc_token(
72157224
agent_id="21m00Tcm4TlvDq8ikWAM",
72167225
participant_name="participant_name",
7226+
branch_id="branch_id",
72177227
)
72187228

72197229
```
@@ -7246,6 +7256,14 @@ client.conversational_ai.conversations.get_webrtc_token(
72467256
<dl>
72477257
<dd>
72487258

7259+
**branch_id:** `typing.Optional[str]` — The ID of the branch to use
7260+
7261+
</dd>
7262+
</dl>
7263+
7264+
<dl>
7265+
<dd>
7266+
72497267
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
72507268

72517269
</dd>
@@ -7306,6 +7324,7 @@ client.conversational_ai.conversations.list(
73067324
summary_mode="exclude",
73077325
search="search",
73087326
conversation_initiation_source="unknown",
7327+
branch_id="branch_id",
73097328
)
73107329

73117330
```
@@ -7474,6 +7493,14 @@ client.conversational_ai.conversations.list(
74747493
<dl>
74757494
<dd>
74767495

7496+
**branch_id:** `typing.Optional[str]` — Filter conversations by branch ID.
7497+
7498+
</dd>
7499+
</dl>
7500+
7501+
<dl>
7502+
<dd>
7503+
74777504
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
74787505

74797506
</dd>
@@ -11336,6 +11363,76 @@ client.conversational_ai.batch_calls.get(
1133611363
</dl>
1133711364

1133811365

11366+
</dd>
11367+
</dl>
11368+
</details>
11369+
11370+
<details><summary><code>client.conversational_ai.batch_calls.<a href="src/elevenlabs/conversational_ai/batch_calls/client.py">delete</a>(...)</code></summary>
11371+
<dl>
11372+
<dd>
11373+
11374+
#### 📝 Description
11375+
11376+
<dl>
11377+
<dd>
11378+
11379+
<dl>
11380+
<dd>
11381+
11382+
Permanently delete a batch call and all recipient records. Conversations remain in history.
11383+
</dd>
11384+
</dl>
11385+
</dd>
11386+
</dl>
11387+
11388+
#### 🔌 Usage
11389+
11390+
<dl>
11391+
<dd>
11392+
11393+
<dl>
11394+
<dd>
11395+
11396+
```python
11397+
from elevenlabs import ElevenLabs
11398+
11399+
client = ElevenLabs(
11400+
api_key="YOUR_API_KEY",
11401+
)
11402+
client.conversational_ai.batch_calls.delete(
11403+
batch_id="batch_id",
11404+
)
11405+
11406+
```
11407+
</dd>
11408+
</dl>
11409+
</dd>
11410+
</dl>
11411+
11412+
#### ⚙️ Parameters
11413+
11414+
<dl>
11415+
<dd>
11416+
11417+
<dl>
11418+
<dd>
11419+
11420+
**batch_id:** `str`
11421+
11422+
</dd>
11423+
</dl>
11424+
11425+
<dl>
11426+
<dd>
11427+
11428+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
11429+
11430+
</dd>
11431+
</dl>
11432+
</dd>
11433+
</dl>
11434+
11435+
1133911436
</dd>
1134011437
</dl>
1134111438
</details>
@@ -12353,6 +12450,75 @@ client.conversational_ai.whatsapp_accounts.update(
1235312450
</dl>
1235412451

1235512452

12453+
</dd>
12454+
</dl>
12455+
</details>
12456+
12457+
## ConversationalAi Agents Summaries
12458+
<details><summary><code>client.conversational_ai.agents.summaries.<a href="src/elevenlabs/conversational_ai/agents/summaries/client.py">get</a>(...)</code></summary>
12459+
<dl>
12460+
<dd>
12461+
12462+
#### 📝 Description
12463+
12464+
<dl>
12465+
<dd>
12466+
12467+
<dl>
12468+
<dd>
12469+
12470+
Returns summaries for the specified agents.
12471+
</dd>
12472+
</dl>
12473+
</dd>
12474+
</dl>
12475+
12476+
#### 🔌 Usage
12477+
12478+
<dl>
12479+
<dd>
12480+
12481+
<dl>
12482+
<dd>
12483+
12484+
```python
12485+
from elevenlabs import ElevenLabs
12486+
12487+
client = ElevenLabs(
12488+
api_key="YOUR_API_KEY",
12489+
)
12490+
client.conversational_ai.agents.summaries.get()
12491+
12492+
```
12493+
</dd>
12494+
</dl>
12495+
</dd>
12496+
</dl>
12497+
12498+
#### ⚙️ Parameters
12499+
12500+
<dl>
12501+
<dd>
12502+
12503+
<dl>
12504+
<dd>
12505+
12506+
**agent_ids:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — List of agent IDs to fetch summaries for
12507+
12508+
</dd>
12509+
</dl>
12510+
12511+
<dl>
12512+
<dd>
12513+
12514+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
12515+
12516+
</dd>
12517+
</dl>
12518+
</dd>
12519+
</dl>
12520+
12521+
1235612522
</dd>
1235712523
</dl>
1235812524
</details>
@@ -17474,13 +17640,13 @@ typing.Optional[core.File]` — See core.File for more documentation
1747417640
<dl>
1747517641
<dd>
1747617642

17477-
**quality_preset:** `typing.Optional[str]`
17643+
**quality_preset:** `typing.Optional[ProjectsCreateRequestQualityPreset]`
1747817644

1747917645
Output quality of the generated audio. Must be one of:
17480-
standard - standard output format, 128kbps with 44.1kHz sample rate.
17481-
high - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
17482-
ultra - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
17483-
ultra lossless - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
17646+
'standard' - standard output format, 128kbps with 44.1kHz sample rate.
17647+
'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side.
17648+
'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side.
17649+
'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format.
1748417650

1748517651
</dd>
1748617652
</dl>
@@ -19855,7 +20021,7 @@ typing.List[core.File]` — See core.File for more documentation
1985520021
<dl>
1985620022
<dd>
1985720023

19858-
**labels:** `typing.Optional[str]`Serialized labels dictionary for the voice.
20024+
**labels:** `typing.Optional[IvcCreateRequestLabels]`Labels for the voice. Keys can be language, accent, gender, or age.
1985920025

1986020026
</dd>
1986120027
</dl>
@@ -19951,7 +20117,7 @@ client.voices.pvc.create(
1995120117
<dl>
1995220118
<dd>
1995320119

19954-
**labels:** `typing.Optional[typing.Dict[str, typing.Optional[str]]]`Serialized labels dictionary for the voice.
20120+
**labels:** `typing.Optional[typing.Dict[str, typing.Optional[str]]]`Labels for the voice. Keys can be language, accent, gender, or age.
1995520121

1995620122
</dd>
1995720123
</dl>
@@ -20053,7 +20219,7 @@ client.voices.pvc.update(
2005320219
<dl>
2005420220
<dd>
2005520221

20056-
**labels:** `typing.Optional[typing.Dict[str, typing.Optional[str]]]`Serialized labels dictionary for the voice.
20222+
**labels:** `typing.Optional[typing.Dict[str, typing.Optional[str]]]`Labels for the voice. Keys can be language, accent, gender, or age.
2005720223

2005820224
</dd>
2005920225
</dl>

0 commit comments

Comments
 (0)