BaşlayınÜcretsiz Başlayın

TTS in other languages!

Let's have a go at some non-English text. Try sending the following text input to the model:

Dnes je krásný slunečný den.

The text is in the Czech language, which is spoken primarily in the Czech Republic.

Bu egzersiz

Multi-Modal Systems with the OpenAI API

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Send the Czech text provided to the gpt-4o-mini-tts model using the "coral" voice.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

client = OpenAI(api_key="")

# Pass the non-English text to the model
response = client.audio.speech.create(
    model="gpt-4o-mini-tts",
    voice="____",
    ____="Dnes je krásný slunečný den."
)

response.stream_to_file("output.mp3")
Kodu Düzenle ve Çalıştır