Skip to main content

Python3 Package for voice synthesis using eSpeak and PicoTTS.

Project description

ligeia

Python3 Package for voice synthesis using eSpeak and PicoTTS.

Installation

Install with pip

pip3 install -U ligeia

Usage

In [1]: from ligeia import eSpeak, PicoTTS, VoiceController

In [2]: voice_controller = VoiceController()

In [3]: voice_controller.load_voice(PicoTTS)

In [4]: voice_controller.say("Hello world.")

Say (Silent: False) > Hello world.

In [5]: voice_controller.load_voice(PicoTTS)

In [6]: voice_controller.generate_file(destiny_path="picotts_hello.wav", text="Hello world")
Out[6]: CompletedProcess(
    args='pico2wave   --lang en-US --wave hello.wav "hello world"', returncode=0
    )

In [7]: voice_controller.load_voice(eSpeak)

In [8]: voice_controller.say("Hello world.")

Say (Silent: False) > Hello world.
/bin/sh: 1: Syntax error: Unterminated quoted string

In [9]: voice_controller.generate_file(destiny_path="espeak_hello.wav", text="Hello world")
Out[9]: CompletedProcess(
    args='espeak -v en  -p 30 -a 200 -w hello.wav "Hello world"',
    returncode=0
    )

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

ligeia-0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page