Stopping mouth movement while talking
Up to General discussion
Hi,
With my very rudimentary knowledge of Python, I've written a function to open a file and read its contents, line-by-line, through the text-to-speech system - sort-of like this:
>>> def speak_file(f):
... """Read a file through the TTS device."""
... i=open(f,'r')
... while True:
... r=i.readline()
... if len(r) != 0:
... tux.tts.speak(r)
... else:
... break
...
The problem is that Tux opens and closes his mouth for every line, and it's noisy and might make his mouth motor wear out faster. Is there any way to get his mouth to stop moving while outputting speech?
Thanks,
Lex.
Powered by
Ploneboard