You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Excels in stability, language diversity, and accent accuracy
30
35
- Supports 29 languages
31
36
- Recommended for most use cases
32
37
33
-
2.**Eleven Flash v2.5** (`eleven_flash_v2_5`)
38
+
3.**Eleven Flash v2.5** (`eleven_flash_v2_5`)
34
39
35
40
- Ultra-low latency
36
41
- Supports 32 languages
37
42
- Faster model, 50% lower price per character
38
43
39
-
2.**Eleven Turbo v2.5** (`eleven_turbo_v2_5`)
44
+
4.**Eleven Turbo v2.5** (`eleven_turbo_v2_5`)
40
45
41
46
- Good balance of quality and latency
42
47
- Ideal for developer use cases where speed is crucial
@@ -51,12 +56,12 @@ from elevenlabs.play import play
51
56
52
57
load_dotenv()
53
58
54
-
client= ElevenLabs()
59
+
elevenlabs= ElevenLabs()
55
60
56
-
audio =client.text_to_speech.convert(
61
+
audio =elevenlabs.text_to_speech.convert(
57
62
text="The first move is what sets everything in motion.",
58
63
voice_id="JBFqnCBsd6RMkjVDRZzb",
59
-
model_id="eleven_multilingual_v2",
64
+
model_id="eleven_v3",
60
65
output_format="mp3_44100_128",
61
66
)
62
67
@@ -71,23 +76,23 @@ play(audio)
71
76
72
77
## Voices
73
78
74
-
List all your available voices with `voices()`.
79
+
List all your available voices with `search()`.
75
80
76
81
```py
77
82
from elevenlabs.client import ElevenLabs
78
83
79
-
client= ElevenLabs(
84
+
elevenlabs= ElevenLabs(
80
85
api_key="YOUR_API_KEY",
81
86
)
82
87
83
-
response =client.voices.search()
88
+
response =elevenlabs.voices.search()
84
89
print(response.voices)
85
90
```
86
91
87
92
For information about the structure of the voices output, please refer to the [official ElevenLabs API documentation for Get Voices](https://elevenlabs.io/docs/api-reference/get-voices).
88
93
89
94
Build a voice object with custom settings to personalize the voice style, or call
90
-
`client.voices.get_settings("your-voice-id")` to get the default settings for the voice.
95
+
`elevenlabs.voices.settings.get("your-voice-id")` to get the default settings for the voice.
91
96
92
97
</details>
93
98
@@ -99,11 +104,11 @@ Clone your voice in an instant. Note that voice cloning requires an API key, see
99
104
from elevenlabs.client import ElevenLabs
100
105
from elevenlabs.play import play
101
106
102
-
client= ElevenLabs(
107
+
elevenlabs= ElevenLabs(
103
108
api_key="YOUR_API_KEY",
104
109
)
105
110
106
-
voice =client.voices.ivc.create(
111
+
voice =elevenlabs.voices.ivc.create(
107
112
name="Alex",
108
113
description="An old American male voice with a slight hoarseness in his throat. Perfect for news", # Optional
0 commit comments