espeakng-1.0.2
توضیحات
An eSpeak NG TTS binding for Python3
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | espeakng-1.0.2 |
| نام | espeakng |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sayak B |
| ایمیل نویسنده | me@sayakb.com |
| آدرس صفحه اصلی | https://sayak-brm.github.io/espeakng-python/ |
| آدرس اینترنتی | https://pypi.org/project/espeakng/ |
| مجوز | - |
# eSpeak NG TTS Bindings for Python3
Copyright 2016-2020 [Sayak B](https://sayakb.com/). Licenced under
[GNU GPLv3](https://opensource.org/licenses/GPL-3.0).
[](https://www.python.org/download/releases/3.0/)


[](https://app.fossa.com/projects/git%2Bgithub.com%2Fsayak-brm%2Fespeakng-python?ref=badge_shield)
## 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](https://github.com/espeak-ng/espeak-ng/releases/latest).
The installed executable may need to be added to the system path.
([See here](https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/))
### Ubuntu & Debian
```bash
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](https://github.com/espeak-ng/espeak-ng/blob/master/docs/building.md)
for more information.
## Installation
## PyPi
This library is available on [PyPi](https://pypi.org/project/espeakng/).
```
pip install espeakng
```
### GitHub Releases
You can download the latest release for this library [here](https://github.com/sayak-brm/espeakng-python/releases/latest).
## Usage
First, we have to initialize a `Speaker`.
```python
import espeakng
mySpeaker = espeakng.Speaker()
```
And then use the `Speaker.say()` method to speak:
```python
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:
```python
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:
```python
mySpeaker.pitch = 120
```
#### Words per Minute (WPM)
By default WPM is set at 120.
Change it by:
```python
mySpeaker.wpm = 140
```
#### Voice
By default the voice is set to 'en'. The complete list of supported voices can
be found
[here](https://github.com/espeak-ng/espeak-ng/blob/master/docs/languages.md).
Change it by:
```python
mySpeaker.voice = 'es'
```
## License
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fsayak-brm%2Fespeakng-python?ref=badge_large)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl espeakng-1.0.2:
pip install espeakng-1.0.2.whl
نصب پکیج tar.gz espeakng-1.0.2:
pip install espeakng-1.0.2.tar.gz