param([string]$outputPath, [string]$inputPath) echo $inputPath $txt = Get-Content $inputPath Add-Type -AssemblyName System.Speech $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer $synth.SetOutputToWaveFile($outputPath) $synth.Speak($txt) echo "sleeping so you can read :)" sleep 10;