Skip to content

Instantly share code, notes, and snippets.

@gfoss

gfoss/say.ps1

Created May 25, 2017
Embed
What would you like to do?
PowerShell Say
function say {
param( [string]$comment = $_ )
[Reflection.Assembly]::LoadWithPartialName('System.Speech') | Out-Null
$object = New-Object System.Speech.Synthesis.SpeechSynthesizer
$object.SelectVoiceByHints('Female')
$object.Speak("$comment")
}
@ankappatd

This comment has been minimized.

Copy link

@ankappatd ankappatd commented Apr 20, 2020

This is cool!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment