Skip to main content

An OFFLINE Python Text to Speech library (TTS) which works for both python3 and python2.This library very usefull especially if you don't want any delay in the speech produced and don't want to depend only on the internet for TTS conversion. It also supports multiple TTS engines like Sapi5 , nsss , espeak .

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyttsx3-2.7.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

pyttsx3-2.7-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file pyttsx3-2.7.tar.gz.

File metadata

  • Download URL: pyttsx3-2.7.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyttsx3-2.7.tar.gz
Algorithm Hash digest
SHA256 c3d67b54f10252b4254869c85280f48d7b914304fb726d0b41b170f2da3bf0f6
MD5 edc3a70db52a902bdfd72f875a6a7237
BLAKE2b-256 244e580726c73272344d3e74b7aaffae55ff6b6450061fbecb8cc6e112531c02

See more details on using hashes here.

File details

Details for the file pyttsx3-2.7-py3-none-any.whl.

File metadata

File hashes

Hashes for pyttsx3-2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 03fd07429b21e99ba2d738d25d12328483fae9cb86de7ea9ac5a2617031d7261
MD5 f4ffbd67bd1b204c48fcb577e9136a54
BLAKE2b-256 12b475d792acf44c01200690030f185e246244ebdfc12db84690e5c1c4df2864

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page