🎓 All Courses | 📚 OpenAI API University Syllabus
Stickipedia University
📋 Study this course on TaskLoco

The TTS (Text-to-Speech) API generates natural, expressive audio from text — dramatically better than older TTS systems.

TTS API

response = client.audio.speech.create(
    model="tts-1",
    voice="alloy",  # alloy, echo, fable, onyx, nova, shimmer
    input="Hello, this is your AI voice assistant."
)
response.stream_to_file("output.mp3")

Available Voices

  • alloy: Neutral, balanced
  • nova: Warm, friendly
  • onyx: Deep, authoritative
  • shimmer: Expressive, clear

Models

  • tts-1: Optimized for speed
  • tts-1-hd: Higher quality audio

YouTube • Top 10
OpenAI API University: Text to Speech — Generate Natural AI Voice
Tap to Watch ›
📸
Google Images • Top 10
OpenAI API University: Text to Speech — Generate Natural AI Voice
Tap to View ›

Reference:

TTS API documentation

image for linkhttps://en.wikipedia.org/wiki/Special:Search?search=Text%20to%20Speech

📚 OpenAI API University — Full Course Syllabus
📋 Study this course on TaskLoco

TaskLoco™ — The Sticky Note GOAT