pyttsx3 is an offline text-to-speech library for Python that wraps native speech engines instead of calling cloud APIs. It is designed to work entirely without an internet connection, making it suitable for local automation, kiosks, accessibility tools, and embedded applications. On Windows it uses SAPI5, on Linux it typically uses eSpeak or eSpeak-NG, and on macOS it can use NSSpeechSynthesizer or AVSpeechSynthesizer, giving it broad cross-platform compatibility. The library exposes a simple but flexible API for controlling voice selection, speaking rate, volume, and other synthesis parameters from Python code. It supports both a high-level speak convenience function and a lower-level engine object with event hooks, queuing, and saving output to audio files. The repository includes examples and documentation that show how to adjust properties dynamically, persist synthesized output, and integrate pyttsx3 into GUIs or background services.

Features

  • Fully offline TTS using native engines like SAPI5, NSSpeechSynthesizer, AVSpeech, and eSpeak
  • Simple Python API with both one-line speak calls and configurable engine objects
  • Control over voice selection, speaking rate, and volume at runtime
  • Ability to save synthesized speech directly to audio files (for example MP3)
  • Cross-platform support for Windows, macOS, and Linux with engine-specific drivers
  • Actively maintained open-source project under MPL-2.0 with docs and examples

Project Samples

Project Activity

See All Activity >

Categories

Text to Speech

License

Mozilla Public License 1.0 (MPL)

Follow pyttsx3

pyttsx3 Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pyttsx3!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Text to Speech Software

Registered

18 hours ago