0

次のコード スニペットをご覧ください。

using System.IO;



MemoryStream stream = new MemoryStream();


SpeechSynthesizer s = new SpeechSynthesizer();
s.setOutputToWaveStream(stream);
s.Speak("hello world");


SpeechRecognitionEngine e = new SpeechRecognitionEngine(new System.Globalization.CuntureInfo("en-US");


//Set grammar code goes here

e.SetInputToWaveStream(stream);

到達するe.SetInputToWaveStream(stream);とエラーがスローされますSystem.FormatException: Wave file not valid

ここでの問題は何ですか?

4

1 に答える 1