Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The say command is perhaps OS X terminal's most compelling feature - it takes text as input and speaks it through the computer's speakers. Is there any equivalent command-line tool on Windows, either built-in or via a third-party program?

share|improve this question
2  
    
Good advice, thanks a bunch ;) –  nhinkle Dec 20 '10 at 7:15
1  
Which gets me thinking, maybe I should write a command-line volume changing application, in case the situation should ever arise. –  nhinkle Dec 20 '10 at 7:17

2 Answers 2

up vote 4 down vote accepted

PTTS is a very simple Microsoft Windows command line program to convert text to speech. If uses the Microsoft Text to Speech Engine and the Microsoft Speech SDK. The Text to Speech Engine is installed with Windows XP with one voice of somewhat poor quality. The Jampal installation program includes two better sounding voices. (quoted from website)

One can use it by simply entering the text into the program by redirection or by piping in text:

ptts < file.txt
echo Hello there|ptts
share|improve this answer
    
@bubu, it looks like this software is only capable of speaking from a file, unless I'm misunderstanding the documentation. Do you know if there's any way for it to accept text directly from the command line without needing to create an intermediary file? –  nhinkle Dec 20 '10 at 5:10
1  
Nvm, figured it out. You have to pipe it to the program. E.g. echo Hello|ptts.exe. I would prefer a way to have the text be an argument of the command, but this will suffice if there's no way to do that. –  nhinkle Dec 20 '10 at 5:11
    
@nhinkle yes as it reads from stdin one of the way is to pipe through it –  bubu Dec 20 '10 at 5:26

This question was asked on Stack Overflow. I like the answer with the VBS script.

Also, espeak is available for Windows and Linux and has been ported to OS X. I don't believe it uses the built-in Windows TTS engine.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.