Skip to main content

py-picotts

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>>

Metadata

Release files for py-picotts 0.1.2

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

Source distribution (sdist)

Source distribution for py-picotts 0.1.2
File Size Uploaded
py-picotts-0.1.2.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-picotts 0.1.2
File Interpreter ABI Platform
py_picotts-0.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 7.5 kB

Release files / py-picotts-0.1.2.tar.gz

Download URL py-picotts-0.1.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
51063d837eec7442854bd52e1dd123d5123fabd319b612ce8aabb8d4faa4802e
BLAKE2b-256 checksum
How to use checksums
1ac208e5e705f80f4519da8e61e555eca29a1b83c28214f317600964bbd79667
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / py_picotts-0.1.2-py2.py3-none-any.whl

Download URL py_picotts-0.1.2-py2.py3-none-any.whl
Size 4.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
392ebf97b7a3ed0886579fa975b0ab8e5f306e5b8e9db039f8ac3d2645a37f07
BLAKE2b-256 checksum
How to use checksums
20dabd36fcad365674fef098f2567f3eec3920d121104b611f52377aa217ebeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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