Text-to-speech
jamesthiele.usenet at gmail.com
jamesthiele.usenet at gmail.com
Sun Mar 20 16:25:24 EST 2005
On some flavors of Windows you can use:
import pyTTS
tts = pyTTS.Create()
tts.Speak('This is the sound of my voice.')
On Mac OS X you can use:
import os
os.system("say 'This is the sound of my voice.'")
You could write a wrapper that takes a string and checks to see which
OS you are on and executes the appropriate of the two above choices.
But you probably need something slicker, and I don't know what that
might be.
More information about the Python-list
mailing list