Error line 26

$SpeechSynthesizer.SetOutputToWaveFile($tWavFile) -> $SpeechSynthesizer.SetOutputToWaveFile($WavFile)
This commit is contained in:
Orion_IX 2023-04-11 17:00:09 +02:00 committed by GitHub
parent 440f882eaf
commit 75a1346163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ try {
Add-Type -AssemblyName System.Speech
$SpeechSynthesizer = New-Object System.Speech.Synthesis.SpeechSynthesizer
$SpeechSynthesizer.SetOutputToWaveFile($tWavFile)
$SpeechSynthesizer.SetOutputToWaveFile($WavFile)
$SpeechSynthesizer.Speak($Text)
$SpeechSynthesizer.Dispose()
exit 0 # success