Menu

Code Samples

Gwenn

Code Samples

Find available speech engines
import steel
print steel.available_programs()
Speak text
import steel
engine = steel.eSpeak()
engine.speak("Hello world")
Find available voices
import steel
engine = steel.NSSS()
print engine.available_voices()
Get current voice
import steel
engine = steel.FreeTTS()
engine.get("voice")  #Other attributes: rate, pitch, volume, variant
Set voice
import steel
engine = steel.NSSS()
engine.set("voice","Zarvox") #Other attributes: rate, pitch, volume, variant
Speak to .wav file
import steel
engine = steel.SAPI5()
engine.speak_to_wav("Hello world","/path/to/file.wav")
Play .wav file
import steel
steel.play_wav("/path/to/file.wav")

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.