Description
pyttsx3 is an offline text-to-speech library for Python. It turns text into spoken audio without sending the text to a cloud service, which means it works without an internet connection. You install it with pip and use a short API to speak text immediately, or to choose among the voices installed on your system, change the speed of speech, adjust the volume and save the speech as an audio file. The library uses the speech engine built into each operating system. On Linux and Windows it can use eSpeak, on macOS it can use eSpeak or the AVSpeech engine, which the README marks as experimental, and on Windows it uses SAPI5. The README notes that NSSpeechSynthesizer is deprecated by Apple. On Linux, if the voice output does not work, the README says to install espeak-ng and libespeak1. If pip fails during installation, upgrading the wheel package first is suggested. Full documentation is hosted on Read the Docs, and the package is listed on PyPI. The project is open source and hosted on GitHub, and the author notes that other speech engines can be wrapped for use with the library.…
Highlights
- Offline text to speech in Python
- Choose installed voices
- Control speed and volume
- Save speech to an audio file
- Works with eSpeak and SAPI5 engines
Ratings & Reviews
No ratings yet
Be the first to rate Pyttsx3.
People also visit
Pyttsx3 FAQ
What is pyttsx3?
A Python library that converts text to speech offline, using the speech engines on your system.
Is it free?
Yes. It is open source and hosted on GitHub, and it is published on PyPI.
How do I install it?
Run pip install pyttsx3. If the install fails, upgrade wheel first with pip install --upgrade wheel.
Does it need the internet?
No. The README says it works offline.
Which operating systems work?
Linux, macOS and Windows, with different engines on each. The README has a table of supported engines.
Can I save the speech as a file?
Yes. The library can save the speech audio to a file.
What are the best Pyttsx3 alternatives?
Popular alternatives to Pyttsx3 include RealtimeTTS, Edge TTS and Sayit. See all Pyttsx3 alternatives


