Skip to main content
# 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")
```

Metadata

Release files for tts-watson 1.0.0

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

Built distribution (wheel)

Table of built distributions (wheels) for tts-watson 1.0.0
File Interpreter ABI Platform
tts_watson-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / tts_watson-1.0.0-py2.py3-none-any.whl

Download URL tts_watson-1.0.0-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d73a314776b4e3e9f326572e62865a43f9ceae065dd23d82246a1303e8ed5f68
BLAKE2b-256 checksum
How to use checksums
669450dee7f2bfff594162f1654989d7cf5eb355728e88240bce1c3ddef76453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

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