Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SpeechRecognitionEngine.SetInputToWavFile() is throwing FormatException

12 views
Skip to first unread message

deostroll

unread,
Nov 20, 2009, 11:47:54 PM11/20/09
to
Hi,

I am trying to convert the voice audio stored in a wav file into
textual format. I've used the SpeechRecognitionEngine class for the
same (in the System.Speech.Recognition namespace). I am getting a
format exception when doing a call to SetInputToWavFile(). Don't
understand what this means...does it mean that my wav file is
corrupt?

I've adopted the code sample as shown in the below link:

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/9c6eff5f-94a7-429b-b277-fee7c730bb1a/

Further I've *not* made a call to LoadGrammar(); i.e. I've not set any
grammar. I am directly making a call to SetInputToWavFile() in a
button click event. Could this be the problem?

--deostroll

0 new messages