Set the language
The language_code parameter tells Bulbul which language your text is in. It is required on every request and is used for text normalization (numbers, abbreviations and symbols) before the speech is synthesized.
Supported languages
Example
On WebSocket, set the language in the configure message (target_language_code in the Python SDK). See the WebSocket API.
Tips
- Match the code to the text.
language_codedrives normalization, and normalization rules are language-specific. - Write Indic words in native script. Romanised Indic text (for example, “namaste”) degrades quality. Code-mixed text works, such as Hindi with English words:
मेरा order कल deliver होगा। - The voice does not limit the language. On
bulbul:v4-flash, the language tag in a persona ID (kavya_hi_conversational) is not a restriction: any supportedlanguage_codeworks with any persona. v4 has dedicated personas for nine of the languages. Malayalam and Odia work with any persona. - Choose a speaker per language. See recommended speakers by language.