Text to speech using watson
Project description
# tts-watson
Text to speech using watson
**Note:** To gain in performance response from watson are streamed and directly send to pyaudio to hear it.
## Requirements
- **Python 2.7**
- **Pip**
- **portaudio**, can be installed with `brew install portaudio` (mac) or `apt-get install portaudio19-dev`(linux)
## Installation
Install with pip: `pip install tts-watson`
## Run the playground
Simply run in command line: `tts-watson text to sound i want` (you will hear: `text to sound i want`)
**At the first launch it will create a config file located to `~/.config-tts-watson.yml` and ask you your watson credentials**
## Usage for developers
Bootstrap example:
```python
from tts_watson.TtsWatson import TtsWatson
ttsWatson = TtsWatson('watson_user', 'watson_password', 'en-US_AllisonVoice') # en-US_AllisonVoice is a voice from watson you can found more to: https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/text-to-speech/using.shtml#voices
ttsWatson.play("The text which i want to be a sound")
```
Text to speech using watson
**Note:** To gain in performance response from watson are streamed and directly send to pyaudio to hear it.
## Requirements
- **Python 2.7**
- **Pip**
- **portaudio**, can be installed with `brew install portaudio` (mac) or `apt-get install portaudio19-dev`(linux)
## Installation
Install with pip: `pip install tts-watson`
## Run the playground
Simply run in command line: `tts-watson text to sound i want` (you will hear: `text to sound i want`)
**At the first launch it will create a config file located to `~/.config-tts-watson.yml` and ask you your watson credentials**
## Usage for developers
Bootstrap example:
```python
from tts_watson.TtsWatson import TtsWatson
ttsWatson = TtsWatson('watson_user', 'watson_password', 'en-US_AllisonVoice') # en-US_AllisonVoice is a voice from watson you can found more to: https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/text-to-speech/using.shtml#voices
ttsWatson.play("The text which i want to be a sound")
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size tts_watson-1.0.0-py2.py3-none-any.whl (5.3 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Close
Hashes for tts_watson-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d73a314776b4e3e9f326572e62865a43f9ceae065dd23d82246a1303e8ed5f68 |
|
MD5 | 08f15dd5015660416cc8068ea5d5bbca |
|
BLAKE2-256 | 669450dee7f2bfff594162f1654989d7cf5eb355728e88240bce1c3ddef76453 |