Skip to content

kdahlhaus/pyflite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyFlite (C) 2006, 2017 by Kevin Dahlhausen  [email protected]

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("""
    <speak>
        We shall fight on the <emphasis level="strong">beaches</emphasis>
    </speak>
""") 

About

A quick, poorly made, python 3 wrapper for the CMU Flite speech synthesis engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages