OpenAI TTS API Playground

Test OpenAI text-to-speech voices in the browser with your API key

Ad placeholder (leaderboard)

OpenAI TTS API playground

This tool calls the OpenAI audio speech endpoint directly from your browser with your own key, so you can audition voices and models on real text without writing code. Pick a voice, choose tts-1 or tts-1-hd, set the speed, and watch the character count and cost estimate update as you type — then generate and play the MP3 inline.

How it works

On generate, the playground POSTs to https://api.openai.com/v1/audio/speech with your Authorization header, the chosen model, voice, input text, and speed. The API returns the audio as MP3 bytes; the browser wraps them in an object URL and feeds an inline <audio> player plus a download link. No server sits in between and nothing is stored.

Tips and notes

  • Iterate on tts-1, finalize on tts-1-hd. The standard model is cheaper for quick voice comparisons; switch to HD for the take you ship.
  • Speed is a multiplier. Values from 0.25 to 4.0 are accepted; small nudges (0.9–1.1) sound more natural than extremes.
  • Punctuation shapes pacing. Commas and periods drive pauses — edit the text, not just the speed, to fix rhythm.
  • Cost scales with characters. The estimate is character-based, so trimming filler text directly reduces spend.
Ad placeholder (rectangle)