[Parameter(Mandatory = $True)]
[String]$Text
)
Function Voice-Output($Speak)
{
Add-Type -AssemblyName System.speech
$Say = New-Object System.Speech.Synthesis.SpeechSynthesizer
$Say.Speak($Speak)
}
$Text = Read-Host "Enter Text"
Voice-Output -Speak $Text
No comments:
Post a Comment