Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Recently I creat a small program of speech to text with Microsoft Speech SDK Version 5.1,
(objRecoContext = new SpeechLib.SpSharedRecoContext();)
however,I can not close the speech recognition,
C#
if(obj is SpeechLib.SpSharedRecoContext)
                {
                    SpeechLib.SpSharedRecoContext s = (SpeechLib.SpSharedRecoContext)obj;
                    s = null;
                }

how can I do to solve this problem?
Posted
Updated 2-Oct-10 2:57am
v2
Comments
Sandeep Mewara 2-Oct-10 10:10am    
Update from OP:
I have tried several times through different methods,but they do not work,anyone to help me?

1 solution

Check if there is a .Close method.
 
Share this answer
 
Comments
xiangshimoni 2-Oct-10 12:22pm    
Maybe you have misunderstood my question,I am not going to close the Form,just want to click a button to stop the speech recognizition,and others go on.
the code I have pasted takes no effect,so I am searching for another solution~

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