eSpeak NG TTS Bindings for Python3
Copyright 2016-2020 Sayak B. Licenced under GNU GPLv3.
Requirements
You need to have eSpeak NG installed in your system and added to the path.
Windows
The latest installers for eSpeak NG can be found here.
The installed executable may need to be added to the system path. (See here)
Ubuntu & Debian
sudo apt-get update
sudo apt-get install espeak-ng
Others
If eSpeak NG is not available in your package manager, you may need to compile the binaries for your system. Refer to this page for more information.
Installation
PyPi
This library is available on PyPi.
pip install espeakng
GitHub Releases
You can download the latest release for this library here.
Usage
First, we have to initialize a Speaker.
import espeakng
mySpeaker = espeakng.Speaker()
And then use the Speaker.say() method to speak:
mySpeaker.say('Hello, World!')
Calling Speaker.say() will interrupt any ongoing output from the same object
immediately.
Use the following code if you wish to wait for any ongoing speech to complete:
mySpeaker.say('I am a demo of the say() method.', wait4prev=True)
Changing speech properties
Pitch
By default the pitch is set at 80.
Change it by:
mySpeaker.pitch = 120
Words per Minute (WPM)
By default WPM is set at 120.
Change it by:
mySpeaker.wpm = 140
Voice
By default the voice is set to 'en'. The complete list of supported voices can be found here.
Change it by:
mySpeaker.voice = 'es'
Export to .WAV file
By default, your text will just be spoken aloud, but if you want it to be written to a .WAV file, you can specify an export_path when calling the say function, as seen below:
mySpeaker.say("Export this to a file", export_path="test.wav")
Special thanks
- MickeyDelp for wordgap and amplitude controls, and other helper methods.
- FlorianEagox for the export to WAV file feature.
Metadata
Release files for espeakng 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| espeakng-1.0.5.tar.gz | 16.5 kB | Without provenance | Details for espeakng-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| espeakng-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for espeakng-1.0.5-py3-none-any.whl |
Total release size: 33.4 kB
Release files / espeakng-1.0.5.tar.gz
| Download URL | espeakng-1.0.5.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7b34cee6cdcb0bcb4e54ab3800d1384ac4ea81b6d5b0f4d2daa52c28856f091
|
|
BLAKE2b-256 checksum How to use checksums |
d7097ea4c13cdd901216d9e25b6db65c405f252410b312237f39b36a9d248943
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / espeakng-1.0.5-py3-none-any.whl
| Download URL | espeakng-1.0.5-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d7d5f3b186fa0edeb7af498f085db0076eafd87fa7113c8f7f354eb76e89877
|
|
BLAKE2b-256 checksum How to use checksums |
12e9d2b4b4d417d752cabb860bee5dc3dd11fdd76ae157a9d0353d5a9d348569
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for espeakng 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.