#Find me an api request in python for a v3 multilingual voice in serbian and french
1 messages · Page 1 of 1 (latest)
Here are minimal Python examples using the Eleven v3 TTS model with explicit language codes for Serbian and French:
from elevenlabs.client import ElevenLabs
client = ElevenLabs(api_key="YOUR_API_KEY")
Serbian (ISO 639-1: "sr")
client.text_to_speech.convert(
voice_id="JBFqnCBsd6RMkjVDRZzb", # example voice; replace with your own
text="Здраво свете!",
model_id="eleven_v3",
language_code="sr"
)
French (ISO 639-1: "fr")
client.text_to_speech.convert(
voice_id="JBFqnCBsd6RMkjVDRZzb", # example voice; replace with your own
text="Bonjour le monde !",
model_id="eleven_v3",
language_code="fr"
)
Notes:
- model_id "eleven_v3" is the v3 speech model. (elevenlabs.io)
- language_code is optional but lets you force normalization/pronunciation for a specific language; it accepts ISO 639-1 codes (e.g., "sr", "fr"). (elevenlabs.io)
- Eleven v3 supports both Serbian and French among its 70+ languages. (help.elevenlabs.io)
Docs used:
- Create speech (Text to Speech) API, parameters and Python usage. (elevenlabs.io)
- API reference introduction (Python client instantiation). (elevenlabs.io)
- Models overview (v3 model ID). (elevenlabs.io)
- Help Center: language selection via language_code and supported languages list (includes Serbian and French). (help.elevenlabs.io)
Sources:
Models | ElevenLabs Documentation
Create speech | ElevenLabs Documentation
What languages do you support? – ElevenLabs
Create speech | ElevenLabs Documentation
Introduction | ElevenLabs Documentation
Models | ElevenLabs Documentation
How do I select the language and accent? – ElevenLabs
On which URL do I have to post this v3 request ?
Post to the Text-to-Speech endpoint:
- Non-streamed: https://api.elevenlabs.io/v1/text-to-speech/{voice_id}. (elevenlabs.io)
- Streamed: https://api.elevenlabs.io/v1/text-to-speech/{voice_id}/stream. (elevenlabs.io)
For v3, include "model_id": "eleven_v3" in the JSON body; v3 works on the same Create/Stream speech endpoints. (help.elevenlabs.io)
Sources:
Create speech | ElevenLabs Documentation
Stream speech | ElevenLabs Documentation
What is Eleven v3 (Alpha)? – ElevenLabs
what are the voices settings that i can send in this post v3 ?