Using elevenlabs.io to improve the say
command on MacOS.
python 3.12+
ffmpeg
Run make
in the project folder. This will setup a virtual environment in the project
directory under .venv
and install a say
command in /usr/local/bin
.
make
To uninstall:
make uninstall
Speak text with the default voice (works with or without quotes):
say Potatoes are good for me.
say 'Potatoes are good for me.'
Get a help message with a list of available voices:
say -h
Speak with a specific voice:
say -v Charlotte 'I like apples.'
Pick a random male or female voice:
say -v Female 'Are you fast?'
say -v Male 'Last weekend I outran a black pepper snake.'
Pick any random voice:
say -v Any 'I like bacon.'
Speak with all available voices (to compare):
say -v All "Hey it's me."
If you use this tool without an API key, you have limited usage.
You can fill in your Elevenlabs API key in the .env
file for more voices and models.
make env