Combreal

TextToSpeech.ps1

Aug 5th, 2025
1,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Add-Type –AssemblyName "System.Speech"
  2. $SpeechSynthesizer = New-Object –TypeName "System.Speech.Synthesis.SpeechSynthesizer"
  3. $SpeechSynthesizer.SetOutputToWaveFile('C:\Temp\jure.wav')
  4. $SpeechSynthesizer.Speak("J'ai juré.")
Tags: powershell
Advertisement
Add Comment
Please, Sign In to add comment