473,811 Members | 3,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

threading help!! c# and SAPI 5.1

I am trying to write a dll in C# using SAPI 5.1 SDK. The DLL is supposed to
take in a prerecorded WAV file and provide both the recognized text and a wav
file created from Text to speech on the result. I have all the functionality
working other then one minor yet bothersome problem.

I can not figure out how to get a result back from the Speech Recognition
engine without utilizing the recogniton event on the recoContext. Which
fires on free will once the engine has run through the stream. Is there a
way to do a WaitForRecognit ion on the engine like you can do for the
Text-To-Speech like...

SpVoice speech = new SpVoice();
speech.WaitUnti lDone(System.Th reading.Timeout .Infinite);

Or is there a way to use an AutoEventReset or Mutex to signal the
completion. It seems that the recognition event always runs on the same
thread as the original recoContext so i can't tell that thread to wait or
sleep or the recognition will never hit. And if I try to put the Speech
recognition code in its own thread the recognition event gets lost.

Am I missing something or is there functionality in c# or SAPI to get around
this?

THANK YOU SO MUCH FOR ANY HELP!!

-Andy
Jul 21 '05 #1
0 1301

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1287
by: trialproduct2004 | last post by:
Hi all, i am having c# application. I have bunch of URL's which i want to validate. that means i want to check whether those url's are valid or not. When i start processing url's one by on synchronysly its taking lots of time. So what i want is to split above task. I want to use threading in this case to make process faster. I want to created threads which are processing say 5 urls at a time. Like that i want to create some threads...
2
3063
by: trialproduct2004 | last post by:
Hi all, i am having application which is using stored procedure written in sql server. I want to develop multithreaded applicaton. The store procedure is returing list of rows of table. what i want to ask is, if i tried to call same stored procedure in different thread , is it possible or it will created problem in multithreaded application.
0
905
by: OpticTygre | last post by:
I've been reading some things about threading, delegates, threadpools, locks, etc... yet I can't quite seem to grasp some of the concepts on it quite yet. I'm currently working on a project I need a little threading help with. For this question's sake, I have 3 objects: 1) A main form where I search directories for certian files. 2) An 'UploadFiles' class which creates an SFTP connection and uploads files to a specific IP address. 3) A...
3
1533
by: Keith Mills | last post by:
Hello, please find attached a basic outline of what I am attempting to accomplish... basically I want to create a number of THREADS (which I can do fine), but I then need a method for them to be able to communicate with each other, either through a message loop, or some other manner. I ALSO need to be able to CALL specific functions / subs WITHIN a thread, based on what another THREAD is doing... here is the attached code... WHEN I click...
2
1089
by: trialproduct2004 | last post by:
Hi all i am having problem in vb.net application. I am having one thread which is currently running. AFter executing some part of thread procedure i want to suspend execution of thread and only after user has selected option to resume execution then only i want to execute remaining part of thread procedure. Currently i am using suspend and resume method of thread. But my problem is i am not sure whether in thread procedure itself...
0
883
by: AndyNY | last post by:
I am trying to write a dll in C# using SAPI 5.1 SDK. The DLL is supposed to take in a prerecorded WAV file and provide both the recognized text and a wav file created from Text to speech on the result. I have all the functionality working other then one minor yet bothersome problem. I can not figure out how to get a result back from the Speech Recognition engine without utilizing the recogniton event on the recoContext. Which fires on...
3
2262
by: teillon | last post by:
I'm trying to write a VB.NET utility that performs a looping task--say, list all files in a directory, over and over again, continuously. I want to be able to put this logic in a User Control with a text box for the path to monitor and a list box to display the results. I want to be able to drop this control numerous times on a parent project form and have them all run asyncronysly. I am not a Threading expert, but I was assuming...
0
836
by: Kooshesh | last post by:
Hello, I have this loop in a function System.Threading.ThreadPool.SetMaxThreads(4, 4) For Each row As DataGridViewRow In DataGridView1.Rows If Not row.Cells(0).Value Is Nothing Then Dim user As New myUser(row.Cells(0).Value, row.Cells(1).Value)
2
1172
by: mikelis | last post by:
I have a main form that does a lengthy database query. Before I fire off the query, I need to pop up another form that contains a progress bar and a Close button. The progress bar updates for 30 seconds and then pops up a timeout message with an OK button that closes the form when pressed. Also, the user has an option of closing the form while the bar is being updated. Thus, this form needs to be threaded. The main form calls the progress...
0
9731
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5697
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4342
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3871
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.