#Hi, has anyone encountered an issue with ElevenLabs ignoring the language that the text is written
1 messages · Page 1 of 1 (latest)
AI-generated Answer for daddyjasiu
It seems like the issue might be related to the model ID you're using. Ensure that the model_id is set correctly to support multilingual capabilities. The correct model ID for multilingual support is eleven_multilingual_v2.
Here's a revised version of your function:
async function fetchVoiceover(voiceId: string, script: string) {
return (await elevenLabsClient.textToSpeech.convertWithTimestamps(voiceId, {
text: script,
model_id: 'eleven_multilingual_v2'
})) as ElevenLabsConvertWithTimestampResponse;
}
Make sure to update the model_id to eleven_multilingual_v2 to ensure the text is processed in the correct language. If the issue persists, double-check your API request settings and ensure that the text is correctly formatted in the desired language.
In documentation there is also flash model