Speaking Text

D

David C. Ullrich

Mac OS X has text-to-speech built into the interface.
So there must be a way to access that from the command
line as well - in fact the first thing I tried worked:

os.system('say hello')

says 'hello'.

Is there something similar in Windows and/or Linux?
(If it's there in Linux presumably it only works if there
happens to be a speech engine available...)


David C. Ullrich
 
H

Hans Georg Krauthäuser

Mac OS X has text-to-speech built into the interface.
So there must be a way to access that from the command
line as well - in fact the first thing I tried worked:

os.system('say hello')

says 'hello'.

Is there something similar in Windows and/or Linux?
(If it's there in Linux presumably it only works if there
happens to be a speech engine available...)

David C. Ullrich

In Windows -> pyTTS

http://www.mindtrove.info/articles/pytts.html

Regards
Hans Georg
 
G

Grant Edwards

Mac OS X has text-to-speech built into the interface.
So there must be a way to access that from the command
line as well - in fact the first thing I tried worked:

os.system('say hello')

says 'hello'.

Is there something similar in Windows and/or Linux?

The only speach sythesizer I've seen on Linux boxes is festival:

http://www.cstr.ed.ac.uk/projects/festival/

You can use os.system() to run it from the "command line" or
there are various client APIs:

http://www.cstr.ed.ac.uk/projects/festival/manual/festival_28.html#SEC126

But, it's not installed by default on any distros I've ever
used...
 
D

David C. Ullrich

Mac OS X has text-to-speech built into the interface.
So there must be a way to access that from the command
line as well - in fact the first thing I tried worked:

os.system('say hello')

says 'hello'.

Is there something similar in Windows and/or Linux?
(If it's there in Linux presumably it only works if there
happens to be a speech engine available...)

Thanks for the replies.
David C. Ullrich

David C. Ullrich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top