Vous êtes sur la page 1sur 1

$null = [Reflection.Assembly]::LoadWithPartialName("System.Speech") $speaker = New-Object System.Speech.Synthesis.SpeechSynthesizer $speaker.rate = -1 $text = get-content C:\Users\andy-maginn\Documents\Freemasonry\RoyalArch\pswork. txt $speaker.Speak("Starting wave file") $speaker.SetOutputToWaveFile("d:\temp\pswork.wav") $speaker.

Speak($text) $speaker.SetOutputToDefaultAudioDevice $speaker.Dispose

Vous aimerez peut-être aussi