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’]
Links
<https://packages.debian.org/jessie/libttspico0> [Debian Package]
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.
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.
Source Distribution
Built Distribution
File details
Details for the file py-picotts-0.1.2.tar.gz
.
File metadata
- Download URL: py-picotts-0.1.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51063d837eec7442854bd52e1dd123d5123fabd319b612ce8aabb8d4faa4802e |
|
MD5 | f53548a32460cc07d868ce225da02b0d |
|
BLAKE2b-256 | 1ac208e5e705f80f4519da8e61e555eca29a1b83c28214f317600964bbd79667 |
File details
Details for the file py_picotts-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: py_picotts-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 392ebf97b7a3ed0886579fa975b0ab8e5f306e5b8e9db039f8ac3d2645a37f07 |
|
MD5 | d41f7cf9ec10be7f462708a6dafadbbb |
|
BLAKE2b-256 | 20dabd36fcad365674fef098f2567f3eec3920d121104b611f52377aa217ebeb |