Skip to main content

Pyttsx for python3 [ Offline text to speech for python3]

Pyttsx is a good text to speech conversion library in python but it was written only in python2 untill now ! Even some fair amount of googling didn’t help much to get a tts library compatible with Python3.

There is however , one library gTTS which works perfectly in python3 but it needs internet connection to work since it relies on google to get the audio data.But Pyttsx is completely offline and works seemlesly and has multiple tts-engine support.The codes in this repos are slightly modified version of the pyttsx module of python 2.x and is a clone from westonpace’s repo. The purpose of creating this repo is to help those who want to have an offline tts lib for Python3 and don’t want to port it from python2 to python3 themselves.

This project has been dead for over some years now and pip install pyttsx doesn’t download the fixed python3 version of the library. So i decided to go ahead with my own repository and spread the fixed version.

Note : pyttsx3 library now works for both python2 and python3 and is also cross-platform

How to install :

pip install pyttsx3

Fixes for possible errors :

  • No module named win32com.client

  • No module named win32

  • No module named win32api

pip install pypiwin32

Usage :

import pyttsx3;
engine = pyttsx3.init();
engine.say("I will speak this text");
engine.runAndWait() ;

Full documentation of the Library is available at

https://pyttsx3.readthedocs.io/en/latest/

Included TTS engines :

  • sapi5

  • nsss

  • espeak

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

Release files for pyttsx3 2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyttsx3 2.5
File Size Uploaded
pyttsx3-2.5.zip 31.0 kB Details

Release files / pyttsx3-2.5.zip

Download URL pyttsx3-2.5.zip
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
86f29c08a3e9871925f39d3ce46aaf3359abaadd3d87a2690d87936f1b93d4db
BLAKE2b-256 checksum
How to use checksums
300df38ea058f66a7f1ee0cb2488dc72b1ea5524c60afbd2db0a57c64c648a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.99

2 release files

2.98

2 release files

2.97

2 release files

2.95

2 release files

2.92

2 release files

2.91

2 release files

2.90

1 release file

2.88

1 release file

2.87

1 release file

2.86

1 release file

2.84

1 release file

2.83

1 release file

2.81

1 release file

2.80

1 release file

2.71

1 release file

2.9

1 release file

2.8

1 release file

2.7

2 release files

2.6

1 release file

This release

2.5 This release

1 release file

1.15

1 release file

1.14

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page