Cause your computer to speak – from command-line.

NirCmd utility has a new 'speak' command that allows you to easily cause your computer to speak the text that you wish. In this command, NirCmd uses the Speech library (SAPI) that is installed with any instance of Windows XP and Windows Vista.
The speak command is not the most useful command in NirCmd, but it's a nice and funny addition for April Fools' Day.

Here's a few examples of what you can do with the new speak command:

nircmd.exe speak text "Please don't touch my computer !"

If you want to wait 60 seconds and then speak something, you can try this: (60 seconds = 60000 milliseconds)

nircmd.exe cmdwait 60000 speak text "Get out of my room !"

If you want to speak the text that is currently in the clipboard, use this:
nircmd.exe speak text ~$clipboard$

If you want that the computer will speak the entire content of a text file, use this:
nircmd.exe speak file "c:\temp\speak1.txt"

Be aware that Windows XP comes with a default "robotic" voice known as "Microsoft Sam", while Windows Vista provides much better woman voice, known as "Microsoft Anna".

4 Responses to “Cause your computer to speak – from command-line.”

  1. zeroes1 Says:

    cool feature! :)

  2. Brad Says:

    :: Speak the time of day
    time /t | clip | nircmd speak text ~$clipboard$

    note: clip.exe is not available in windows XP or 2K, but should work if you copy it from Vista or Server 2003.

  3. Winhelponline Says:

    Fun Tip: Add "Speak" Option to the Context Menu for Text Files - The Winhelponline Blog:
    http://www.winhelponline.com/blog/add-nircmd-speak-to-context-menu-text-files/

  4. Heiko Says:

    Wonderful tool, thanks a lot!

    How can I choose a special one from the installed voices?

Leave a Reply