RosettaCodeData/Task/Speech-synthesis/PowerShell/speech-synthesis.ps1
2026-04-30 12:34:36 -04:00

6 lines
175 B
PowerShell

Add-Type -AssemblyName System.Speech
$anna = New-Object System.Speech.Synthesis.SpeechSynthesizer
$anna.Speak("I'm sorry Dave, I'm afraid I can't do that.")
$anna.Dispose()