I adapted code by @Prince_Canuma into this CLI tool: https://t.co/XWgNcdBgKq
The example passes the text as a positional argument, uses -i for a voice description, and uses -o to choose the output file.
I demonstrated generating the output file pirate.wav from the text “I am a pirate, give me your gold!” with the voice description “gruff voice.”
uv run http''s://tools.simonwillison.net/python/q3_tts.py \
'I am a pirate, give me your gold!' \
-i 'gruff voice' -o pirate.wav
I described the Qwen text-to-speech model as Apache 2.0 licensed text-to-speech model with full voice cloning abilities; it's really effective; https://t.co/i5kcqbqsBj
I characterized an example prompt for Google's new Gemini Flash TTS text-to-speech model as “a lot,” and linked to it at https://t.co/pQR8GFBJds.
I ran the same Gemini Flash TTS prompt for London Estuary, Newcastle and Exeter, Devon.
I said all three audio files are now embedded in my blog post at https://t.co/pQR8GFBJds.
I described Gemini 3.8 TTS as super-cheap; can generate conversations between multiple voices.
I said voice options include 2,000+, or you can clone your own.
I built a little UI for it; then had Claude knock up a script where two pelicans debate moving to Pacifica Pier; https://t.co/7PFM1ASAOl
I estimated that Flash costs less than 1 cent per minute of generated audio for Flash; Flash-Lite is even cheaper than that.
I keep notes here on text-to-speech tools, voice samples, and voice-cloning models, including my experiments with OpenAI’s TTS and Qwen.
On 2023-12-13, I announced: “New release of my ospeak CLI tool” for speaking text piped through on the command line using OpenAI's TTS APIs.
cat hello.txt | ospeak -v nova -m tts-1-hd
I didn't grab a recording at the time. I ran that transcript through my "ospeak" CLI tool to re-generate the audio, to demonstrate what OpenAI's TTS does with Welsh.
ospeak "... text pasted here... " -v nova -o welsh.mp3
I shared the regenerated Welsh audio as an MP3: https://t.co/z5lHhPQaLZ.
In 2024, I noted a surprising detail about OpenAI's existing collection of TTS voices, which the article said had been built using professional voice actors.
According to the article, a 15 second sample from each professional voice actor was used to define each voice.
In 2026, I noted that Qwen released a new Apache 2.0 licensed text-to-speech model with full voice cloning abilities.
I described Qwen's text-to-speech model as “it's really effective” and shared my notes from trying it out: https://t.co/i5kcqbqsBj.
Related: ai audio generation tools, audio transcription tools, real time voice models