Click here to Skip to main content
16,016,088 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I am having problems with the code given on this site.i am using visual studio 2008 and its running but does not give me the text box. Is there any one with a refined code? Desparately needing it for my project.

Can send me on [email removed to avoid spam] with the requirements which make it run......Helpers only are welcome
Posted
Updated 25-Mar-11 12:08pm
v3
Comments
Sandeep Mewara 25-Mar-11 10:38am    
Which code you are talking about here?

Forgot to add?
vambe william 25-Mar-11 18:13pm    
the code given at this site that converts speech to text.

i have this 1 again

private void btnListen_Click(object sender, EventArgs e)
{
// Speech Recognition Object
SpSharedRecoContext listener;

// Grammar object
ISpeechRecoGrammar grammar;

listener = new SpeechLib.SpSharedRecoContext();
listener.Recognition += new _ISpeechRecoContextEvents_RecognitionEventHandler (listener_Reco);
grammar = listener.CreateGrammar(0);
grammar.Dictationload("", SpeechLoadOption.SLOStatic);
grammar.DictationSetState(SpeechRuleState.SGDSActive);
}

public void listener_Reco(int StreamNumber, object StreamPosition, SpeechRecognitionType RecognitionType, ISpeechRecoResult Result)
{
string heard = Result.PhraseInfo.GetText(0, -1, true);
textBox1.Text += heard;
}

but i dont know how to add a SpSharedRecoContext object and create an ISpeechRecoGrammar object for it. Then Add a RecognitionHandler to it...

Add another Button and a TextBox to your form and create the objects there. Then add a handler to tie into the listeners Recognition event...
willempipi 25-Mar-11 10:39am    
I hope I misunderstand, but your asking if somebody has got a libary that converts speech to text, and wants to send it to you so you can use it.

If so: Hahahaha lol... I doubt that kind of software is free, not to mention you getting the actual source code.

You have posted the same request at this article: A Simple Speech Application Using SAPI 5.1 SDK[^] - but since that was written 7 years ago, and his last input to the site three years ago, there is a good chance he is not supporting it any further. Besides, things have moved on in the intervening years...

Since your homework is due very soon - from your post at the article - I strongly suggest that you start with Google, and then indulge in some Midnight Oil: I think you will need it!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Mar-11 13:44pm    
My 5. As platform(s) is not tagged... see my Answer.
--SA
You did not tag the platform(s) you want to use. If you can work on .NET platform (highly recommend), .NET assembly System.Speech, a part of re-distributable .NET Framework, make this quite easy.

(I never saw any non-English language packs, so I have no idea how good are they.)

—SA
 
Share this answer
 
Comments
vambe william 25-Mar-11 18:05pm    
thanxz, so do you have that English language pack apart from the one provided on this site....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900