Text to Voice API - Calling different languages

Hello!

Does anyone know how to invoke a different language for text to voice?

My current call for reference:

response = await async_openai_client.audio.speech.create(
model=“tts-1-hd-1106”,
voice=“nova”,
input=text,
response_format=‘opus’
)

Thank you!

1 Like

I found my answer, “You can generate spoken audio in these languages by providing the input text in the language of your choice.”

That’s easy :slight_smile: