Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pyttsx3

> 编程语言
Open source

Offline Text To Speech synthesis for python

2.5K stars0 likes0 views
WebsiteGitHub

About

Offline Text To Speech synthesis for python

Offline Text To Speech (TTS) converter for Python

[](https://github.com/nateshmbhat/pyttsx3) [](https://github.com/nateshmbhat/pyttsx3) [](https://pypi.org/project/pyttsx3/) [](https://github.com/nateshmbhat/pyttsx3) [](https://github.com/nateshmbhat)

pyttsx3 is a text-to-speech conversion library in Python. Unlike alternative libraries, it works offline.

Buy me a coffee

Installation :

bash
pip install pyttsx3

If you get installation errors , make sure you first upgrade your wheel version using : pip install --upgrade wheel

Features :

  • ✨Fully OFFLINE text to speech conversion
  • Choose among different voices installed in your system
  • Control speed/rate of speech
  • Tweak Volume
  • Save the speech audio as a file
  • ❤️ Simple, powerful, & intuitive API

Linux installation requirements :

  • If you are on a Linux system and if the voice output is not working, then :

    Install espeak-ng and libespeak1 as shown below:

    bash
    sudo apt update && sudo apt install espeak-ng libespeak1

Usage :

python3
import pyttsx3
engine = pyttsx3.init()

# For Mac, If you face error related to "pyobjc" when running the `init()` method :
# Install 9.0.1 version of pyobjc : "pip install pyobjc>=9.0.1"

engine.say("I will speak this text")
engine.runAndWait()

Single line usage with speak function with default options

python3
import pyttsx3
pyttsx3.speak("I will speak this text")

Changing Voice , Rate and Volume :

…

Full documentation of the Library

https://pyttsx3.readthedocs.io

Included Text-To-Speech Engines by Operating System

Linux macOS Windows
AVSpeech ✅︎
eSpeak ✅︎ ✅︎ ✅︎
NSSpeechSynthesizer ✅︎
SAPI5 ✅︎

[!NOTE]

  • AVSpeechSynthesizer support is still experimental.
  • NSSpeechSynthesizer is deprecated by Apple.

Feel free to wrap another text-to-speech engine for use with pyttsx3.

Project Links :

  • PyPI (https://pypi.org/project/pyttsx3)
  • GitHub (https://github.com/nateshmbhat/pyttsx3)
  • Full Documentation (https://pyttsx3.readthedocs.org)

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonpythonpython3pyttsxpyttsx3

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言