Skip to content

Instantly share code, notes, and snippets.

@Archigos
Created July 29, 2014 15:36
Show Gist options
  • Save Archigos/de03ec800f42febbdfa6 to your computer and use it in GitHub Desktop.
Save Archigos/de03ec800f42febbdfa6 to your computer and use it in GitHub Desktop.
Use speech in your scripts (See NirCmdCheck gist for more info)
@ECHO OFF && nircmd setsysvolume 65535
GOTO Beginning
:: Start Comment Block
Have speech notifications in other scripts. Please note, all speech must be
phonetic so you may have to 'fudge' some spelling to make it sound correct.
Example, working with IIS on Windows, you may need to reference the IUSR account
and to do it correctly you'd use something like this:
Say "File permissions reset for I user account"
All speech must be contained within double quotes.
:: End Comment Block
:Beginning
IF "%~1" == "" (
nircmd speak text "You forgot to include what I'm supposed to say..."
) ELSE (
nircmd speak text "%~1"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment