Skip to main content

Python interface for SVOX Pico TTS pico2wave

Project description

Some simple wrappers around SVOX Pico TTS intended to make using this TTS for wave file generation as convenient as possible.

Target audience are developers who would like to use SVOX Pico TTS as-is for speech synthesis in their Python application on GNU/Linux operating systems.

Constructive comments, patches and pull-requests are very welcome.

Examples

First, imports:

import wave import StringIO from picotts import PicoTTS

english (default) synthesis:

picotts = PicoTTS() wavs = picotts.synth_wav(‘Hello World!’) wav = wave.open(StringIO.StringIO(wavs)) print wav.getnchannels(), wav.getframerate(), wav.getnframes()

result:

1 16000 22720

try a different language:

picotts.voice = ‘de-DE’ wavs = picotts.synth_wav(‘Hallo Welt!’) wav = wave.open(StringIO.StringIO(wavs)) print wav.getnchannels(), wav.getframerate(), wav.getnframes()

result:

1 16000 22464

### List Available Voices

l = picotts.voices

result:

[‘de-DE’, ‘en-GB’, ‘en-US’, ‘es-ES’, ‘fr-FR’, ‘it-IT’]

Requirements

  • Python 2.7
  • pico2wave binary installed and in PATH

License

My own code is Apache-2.0 licensed unless otherwise noted in the script’s copyright headers.

Author

Guenter Bartsch <<guenter@zamia.org>>

Project details


Download files

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

Files for py-picotts, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size py_picotts-0.1.2-py2.py3-none-any.whl (4.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size py-picotts-0.1.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page