Skip to content

Instantly share code, notes, and snippets.

@sheepla
Created February 27, 2021 16:01
Show Gist options
  • Save sheepla/9ccc7094922c01fbfffd392d02a937d5 to your computer and use it in GitHub Desktop.
Save sheepla/9ccc7094922c01fbfffd392d02a937d5 to your computer and use it in GitHub Desktop.
function say
{
Param (
[Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$false, Position=1)]
[String] $Text
)
$spVoice= New-Object -ComObject Sapi.Spvoice
$spVoice.Speak($Text)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment