1. Learn
  2. /
  3. Courses
  4. /
  5. Multi-Modal Systems with the OpenAI API

Connected

Exercise

OpenAI's text-to-speech (TTS)

OpenAI now provide models for creating human-like speech from a text input, so-called text-to-speech or TTS. OpenAI provide several voices to choose from, and they provide the ability to stream the response to local files or downstream applications.

Instructions

100 XP
  • Create the text-to-speech request for "Hi! How's your day going?", using the "ballad" voice.
  • Stream the response to an .mp3 file.