Tag: 文本到语音语音

SpeechSynthesizer的SpeakProgressEventArgs是否不准确?

使用.Net 3.5中的System.Speech.Synthesis.SpeechSynthesizer类,SpeakProgressEventArgs的AudioPosition属性似乎不准确。 以下代码生成以下输出: 码: using System; using System.Speech.Synthesis; using System.Threading; namespace SpeechTest { class Program { static ManualResetEvent speechDoneEvent = new ManualResetEvent(false); static void Main(string[] args) { SpeechSynthesizer synthesizer = new SpeechSynthesizer(); synthesizer.SpeakProgress += new EventHandler(synthesizer_SpeakProgress); synthesizer.SpeakCompleted += new EventHandler(synthesizer_SpeakCompleted); synthesizer.SetOutputToWaveFile(“Test.wav”); synthesizer.SpeakAsync(“This holiday season, support the music you love by shopping at Made in Washington, […]