Disabling Speech Recognition During TTS Output

May 31, 2011

I've written a "quick and dirty" GUI interface for a CLI chat program, and I've been trying to integrate TTS and Speech Recognition into it, so that the user can "have a conversation" with a chat bot, rather than just "type and read". The TTS portion works well (barring some small pronunciation issues - I have yet to find a TTS voice that can properly pronounce "Geek" without my having to mangle the spelling), and the SR module works well.

If I have the TTS module disabled. The problem I'm having is that the SR module is processing the output from the TTS, and causing issues where an ever-increasing string of TTS output occurs, causing undesirable results. I've tried several methods of temporarily disabling Speech recognition, none of which have proved useful. Below are some short code snippets that I've tried to use:

Imports SpeechLib
Imports System.Drawing
Imports System.Net.Sockets
Public Class Form1
Public voice As New SpVoice
[Code] .....

View 5 Replies


ADVERTISEMENT

Recommended Alternatives For Speech Recognition Other Than Microsoft Speech Libraries?

Aug 11, 2010

recommended alternatives for speech recognition other than Microsoft Speech libraries?

View 2 Replies

VB 2010 Speech Recognition / Speech-To-Text / Voice Control

Oct 23, 2011

I'm trying to create a Speech Recognition support for my program. I want to make it so that if I say something in my microphone, the program just writes what I said in Label1. I looked for Speech Recognition codes in MSDN and Google, but I didn't find anything useful. I found a code, but it was for VB.net, I tried but it didn't work in VB 2010.

View 1 Replies

How To Do Speech Recognition

Aug 26, 2009

i just started to learn how to do speech recognition using VB.NET..but i am having trouble in what do i need to do it..how should i start?

View 1 Replies

Speech Recognition In .net?

Feb 17, 2010

Is Possible to create Speech recognition in vb.net .

View 2 Replies

2003: Speech Recognition?

Aug 1, 2006

i want to create a software which has the following modules 1. Speech to Text2. Text toSpeech 3. Voice commandi already developed in vb6

View 3 Replies

Add Speech Recognition Capabilities?

Oct 14, 2006

I'm working on a program that needs Speech Recognition and every website says to download the Microsoft Speech Recognition Engine. I can't find that, but I've downloaded all the SDKs. Are they the same? And it always says to add a speech recognition component to the form, but I can't find where that is in Visual Basic 2005. I'm using the Express Edition, but I don't think that matters.

View 4 Replies

Getting The Speech Recognition Code?

May 25, 2009

what I gather, the biggest difference between the old SAPI 5.1 and SAPI 5.3 is that SAPI 5.3 actually takes less code to do some of the same things that SAPI 5.1 does. This is just a simple example that runs notepad and says it is before doing so.One thing to remember is that the name of speech lib is changed again. Now you have to do this: Project -> Add Reference -> .NET -> System.Speech

imports system.speech
Public Class Form1
Public WithEvents recognizer As New System.Speech.Recognition.SpeechRecognitionEngine
Dim gram As New System.Speech.Recognition.DictationGrammar()

[code]....

gram is a DictationGrammar object. As it turns out, there are two grammar objects in SAPI 5.3. As you've probably already guessed, DictationGrammar is for spoken language and the normal grammar object is for simple grammar rules.

So basically, Load the grammar, set audio to the default input device and then start an Async recognize call. They have a blocking recognize call and one thing to note here is that it will turn itself off after each sucessful recognized phrase. Meaning that you have to recall Async recognize at the end of the GotSpeech sub if you want to keep picking up voice commands. As it stands, this will pick up one command and no more because it stops recognition.

One neat thing about the synthesis engine is that you can specify things like ".NET" to be said as "dot net" by Anna. Also, as it stands, the periods aren't said and so are pretty much useless. It acts just like the Vista Recognition engine also so if you spell out a word, Anna will spell it out too.In this example there is an undeclared variable named "cmd" that I fail to understand. What is the role of it and where does it obtain it's value from. I actually assume it should be the one to get the decoded\recognized text from the recognizer but not sure how that is achieved.

View 3 Replies

Speech Recognition For Numbers

May 11, 2011

I'm using Speech.Recognition.SpeechRecognizer in VB.NET 2010 on XP-SP3. I can't figure out how to get it to recognize a number as a number. I want to be able to say "five" and have the code interpret it as the value 5 instead of the word. I know I could use a long choices array or sementics key/value combintations as I have for other conditions but that would be a considerable amount of hard coding or XML work. Is there a more efficient way to get the desired result?

View 1 Replies

Speech Recognition From Own Grammar

Jul 18, 2010

I'm making an application that requires me to perform speech recognition from a wave file that contains some speech. I know what the words in the wave file could be.So, I need to compare these words from a small custom grammar/dictionalr instead of a whole built in large vocabulary.

I have done the recognition part with the default system large vocabulary but now just need to use my own vocabulary.

Suppose that the words that the user can say are:

Hello
hundred degree celcius,
USA,
Yes,
No

Then, how shall I write my XML Grammar? I suppose that if I use the limited small vocabulary, then my accuracy of recognition would increase. Right now, ive a wave file in Microsoft Mary's voice saying "Hello". But with the large default vocabulary its recognising it as "All though". Is my assumption correct that with the above mentioned 5 words in the vocabulry, it will recognise it as Hello only?

Ive been looking at the internet but can't find solution to my specific problem regarding making a simple grammar. In most documents its mentioning using external grammar and about several of the attributes posssible, including sementics, etc, etc. But my vocabulary is not very complicated or difficult. And I don't want to get into too much detail at the moment as I would be deviating from my project itself..

So using the following code:

Grammar = RecoContext.CreateGrammar
Grammar.CmdLoadFromFile("C:CustomGrammar.xml")

What should be the content of the CustomGrammar.xml?

View 1 Replies

Speech Recognition On ASP.NET Site?

Mar 10, 2009

is it possible to enable speech recognition on asp.net web forms?

View 3 Replies

Speech Recognition Software

Feb 26, 2011

Can I develope speech recognition software in VB.Net?

View 4 Replies

Speech Recognition Using .NET Framework 3.5?

Feb 18, 2008

Does anyone know where I can find a step-by-step example of how to use ystem.Speech.Recognition to add speech recognition to my code

View 9 Replies

VS 2008 Speech Recognition?

Aug 3, 2010

I am really new to all of this, and especially new to VB 2008, so while searching around for how to use Speech Recognition in VB, i figured i would ask here to get the best solution. I know that it is rather complicated, but my program only needs to understand maybe 20 commands max. So if anyone could post help on where i even need to get started to start speech recognition in my program,

View 2 Replies

VS 2010 Example Of Speech Recognition ?

Jul 4, 2011

All of the examples I'm finding on the internet are 5 or 6 years old or they are text-to-speech and I need speech input capability. I have a form that I would like to be enterable by voice.One of the textboxes on the form is for a description so I need something that will understand the spoken English language as well as possible.

View 1 Replies

C# - Getting Started With Speech Recognition Programming?

May 17, 2010

So, you've all probably seen Iron Man where Tony interacts with an AI system called Jarvis. Demo clip here (Sorry it's a commercial).I'm very familiar with C#, C++ and Visual Basic, but I am unsure what options I have available for me to program something like this. Ideally, I'd like to have it assist me while working on some projects by automating a few things.

After doing a bit of research, I saw that a lot of people where using apple script. Well, I'm a windows developer and I work on windows, SO, that won't work.Microsoft has a Speech SDK, but I hear that I can't program it to learn custom words... as in it just uses it's standard library. Is this true? What are the other limitations of speech recognition with the SDK? Is there something else then?

Also, which language would be better to use for a project like this? C# or VB?

View 1 Replies

Error While Debugging Speech Recognition

Aug 30, 2010

i got "A first chance exception of type 'System.PlatformNotSupportedException' occurred in System.Speech.dll"and "A first chance exception of type 'System.NullReferenceException' occurred in System.Speech.dll" error while debugging the code i got from here

View 1 Replies

Getting Microphone Stream And Using Speech Recognition?

Sep 29, 2011

I want to basically have a program that recognizes certain phrases from the microphone just like windows speech recognitionI pretty much think that it is probably going to be a microphone stream and then have speech recognition somewhat like Kinect speech recognition but in VB and not using XNA game studio.

View 6 Replies

Install Speech Recognition Engine?

Jul 5, 2011

I am trying to create a VB.Net form that recognizes speech. When I run it, I get the error "Speech recognition is not available on this system. SAP and Speech Recognition engines cannot be found." So, following Microsoft's instructions, I discover that there is no Speech tab in Speech Properties (which appear when I click on Speech in the control panel). I am using Windows XP Professional. Only a Text-to-Speech tab, no speech recognition tab. To install the speech engine, I went to Add or Remove Programs/ Change Microsoft Office Enterprise 2007/ Add or Remove Features. However there is no "Alternative User Input" as per the instructions. How can I get this speech recognition engine installed?[code]...

View 6 Replies

Program Recognition Speech In Arabic?

May 10, 2011

I want program recognition speech in Arabic how can i do that

View 1 Replies

Speech Recognition - Turn Listening On / Off

Jul 19, 2010

What is the code to turn listening on and off. Speech Recognition with VB 2008.

View 2 Replies

Speech Recognition Dont Listen?

Mar 31, 2012

ok i want the speech recognition to listen to me but not do anything unless it hears a certain word or phrase

View 4 Replies

Speech Recognition With Dragon Speak?

Dec 22, 2010

if it would be possible to call the already written dragonspeak code into a vb.net program the microsoft speech sdk blows, and i am writing code to control functions of my house and I want it to work well, but microsoft sdk blows.

View 2 Replies

Using Custom Grammar For Speech Recognition

Sep 24, 2008

I have been away from programming for many years and I am trying to develop a simple speech recognition app in visual basic. Here is the problem that I am experiencing:[code]

View 7 Replies

Using Speech Sdk In VB Without Windows Spech Recognition

Feb 26, 2011

I want to enable voice recognition in my vb application witouh havin to use windows speech recognition, is it posible if not how can I add a my own command to turn on the recognition on windows the default command is strat listening but I want it simple like "activate", also I would like to record my own voice command using my app, I say activate I put this code : Grammar.DictationSetState(SpeechLib.SpeechRuleState.SGDSActive), but it does not turn on windows voice recognition

View 1 Replies

Assign A Shortcut Key To Speech Recognition Command?

Jan 8, 2012

Instead of repeatedly saying "show numbers" to get the numbering of clickable items to appear with Speech Recognition in Windows 7, I want to assign a keyboard shortcut to trigger this command. How can this be done?

I have been trying to use EmulateRecognition in the Speech API, but the most I've been able to get it to do is display the words "show numbers" in the Speech Recognition window; it hasn't actually performed the show numbers command using this method.

View 7 Replies

Make A Speech Recognition Program Without Using Vista?

Jul 20, 2009

How can you make a speech recognition program, without using vista.

Dim Talk as new system.recognize.speech()
textbox1.text = talk

View 1 Replies

Speech Recognition - Creating Grammar Files?

Mar 16, 2010

We are doing a project in speech recognition using vb.net we have achieved the text to speech but still there is some problem in speech to text. We have some problems in creating grammar files so, any tips or coding for creating grammar file.

View 1 Replies

Speech Recognition Language - Configuration Not Matching?

Apr 13, 2008

I have just bought a new mic. It works just fine with Sound Recorder and MSN Messenger, but not speech recognition. Whenever I try to start Speech Recognition, it says something like "Speech Recognition could not start because the language configuration does not match the one Speech Recognition is using". The language I probably need to use is Microsoft Recognizer v5.1. But whenever I select it, it says that the engine could not be created. I already have my mic configured properly and even the tutorial works perfectly fine and same with the Training the computer thingy.

View 1 Replies

Speech Recognition MS Word Add-in For Local Language In VB Or C#?

Apr 29, 2011

I want to create a speech recognition add-in to work with MS Word for my local language (other than English)

Does System.speech will work for me or something else is required?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved