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

Uploaded Source

File details

Details for the file ligeia-0.1.tar.gz.

File metadata

  • Download URL: ligeia-0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for ligeia-0.1.tar.gz
Algorithm Hash digest
SHA256 8b31ad05d4d2daeb619e783d94d55912fb6a0402fd92138a928d8c5ec47254eb
MD5 e20e4f339f0f8b0d92e5b3e0f893be88
BLAKE2b-256 ef7777208ffda60b538c2d6d1ed5fc0ae20ec4dc3732207ec1ea3df58ea1f746

See more details on using hashes here.

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