Windows – OS X `say` command for Windows

command lineterminalwindows

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?

Best Answer

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
Related Question