Ich arbeite in einer App, wo ich Microsoft.Speech.Synthesis Synthesizer verwende. Ich versuche eine spanische Stimme zu benutzen (es-ES, Helena). Der Code ist der folgende:Kann Audio nicht hören - Microsoft.Speech.Synthesis (Spanish Voice Helena)
using Microsoft.Speech.Synthesis;
...
...
//Inside main method
SpeechSynthesizer synth = new SpeechSynthesizer();
List<InstalledVoice> installedVoices = new List<InstalledVoice>();
foreach (InstalledVoice voice in synth.GetInstalledVoices()){
installedVoices.Add(voice);
Console.WriteLine(voice.VoiceInfo.Name);
}
synth.SelectVoice(installedVoices[0].VoiceInfo.Name);
synth.Rate = 0;
synth.TtsVolume = 100;
synth.SpeakAsync("Hola Mundo");
Console.WriteLine();
Console.ReadKey();
Die Ausgabe in der Konsole ist die folgende:
Microsoft Server Speech Text to Speech Sprach (es-ES, Helena)
Das Problem ist, dass das Programm doesn rede nicht. Ich kann den Ton nicht hören. Könnte mir jemand dabei helfen?
Alle Hilfe ist willkommen.
Immer noch nichts hören –