https://github.com/kdahlhaus/pyflite
A quick, poorly made, python 3 wrapper for the CMU Flite speech synthesis engine
https://github.com/kdahlhaus/pyflite
cython flite python text-to-speech
Last synced: about 2 months ago
JSON representation
A quick, poorly made, python 3 wrapper for the CMU Flite speech synthesis engine
- Host: GitHub
- URL: https://github.com/kdahlhaus/pyflite
- Owner: kdahlhaus
- License: other
- Created: 2017-09-30T05:15:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T18:23:06.000Z (about 5 years ago)
- Last Synced: 2025-01-03T21:44:00.509Z (over 1 year ago)
- Topics: cython, flite, python, text-to-speech
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.txt
- License: COPYING
Awesome Lists containing this project
README
pyFlite (C) 2006, 2017 by Kevin Dahlhausen kpd@powertwenty.com
See the file 'COPYING' for license information. (Same license as Flite, free for all uses)
This is a simple cython wrapper for the Flite voice library.
It is minimal, not documented very well, and meets my current needs. :)
The linux version is building and works well.
The cygwin version worked in 2006, but I have not tried in recently. If it does not work now, it's very likely that the linux version would work with a slight modification.
Building under WindowS:
install MS Build Tools for VS 14 (python 3.6)
install flite-2.0.0-release somewhere (no need to build)
set env var to the flite-2.0.0-release dir
python setup.py build
Usage:
import flite
flite.init()
# speak the text via alsa
flite.say("Hey! I think our problems may just be solved. Ed McMahon. Think I just won a million bucks. Yeah, Irwin M. Fletcher you choose. Woo-wee! Oh, boy, I lost. Yeah. Sorry.")
# write the speech to 'test.wav' using the CMU 'slt' voice
flite.say("My advice to you is...", "test.wav", voice="slt")
# speak the SSML data via alsa
flite.say_ssml("""
We shall fight on the beaches
""")