Belgium
Asked — Edited

Speech Commands In Vb

Hi,

I tried a few lines of code that go like this:

    EzB_Connect1.EZB.SpeechSynth.ListenForSpeechCommand(10000)
    EzB_Connect1.EZB.SpeechSynth.StartListening()

and some other try outs, however I don't get very far. The idea is to assign voice commands in a string and/or array. I want the robot to react to voice commands that are prédefined. Any suggestions ?

Thnxs


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

Belgium
#1  

I'm trying something like this:

    Dim strSpeechTest(0 To 6) As String

    strSpeechTest(0) = "Robot Stop"
    strSpeechTest(1) = "Robot Release All"
    strSpeechTest(2) = "Robot Drive Reverse"
    strSpeechTest(3) = "Robot Drive Forward"
    strSpeechTest(4) = "Robot Turn Left"
    strSpeechTest(5) = "Robot Turn Right"
    strSpeechTest(6) = "Robot Do As You Please"
    
    

    EzB_Connect1.EZB.SpeechSynth.SetDictionaryOfPhrases(strSpeechTest)

    EzB_Connect1.EZB.SpeechSynth.ListenForSpeechCommand(10000)

    ...
PRO
Synthiam
#2  

Download the EZ-SDK package and unzip it somewhere on your computer. Look through the examples in C# and find the Tutorial 12 - Speech Recognition.


        List phrases = new List();

        phrases.Add("Robot Move Forward");
        phrases.Add("Robot Move Reverse");
        phrases.Add("Robot Move Left");

        _ezb.SpeechSynth.SetDictionaryOfPhrases(phrases.ToArray());
      
        _ezb.SpeechSynth.StartListening();


Belgium
#3  

Tnxs DJ, I wonder what would we do without you;)

#4  

I know how it would feel. Because he total ignores MOST of my questions.:(

Belgium
#5  

Well MovieMaker, offer him a drink or so...

#6  

He answers the question before me and the ones after me. I don't understand it??? I KNOW he knows the answers to the questions. I may be paranoid, but it leaves me feeling rejected. I was in a similar situation and I always try to treat everyone fairly and have no favorites. confused

#7  

OK, I know that D.J. is a busy man. Also, what you get for what you pay with the EZB is a REAL BARGAIN. I am just a little sensitive, I have undergone OPEN HEART surgery recently and my emotions run while sometimes. But, I just think he should answer in the order that the questions were asked. We have GOT to get to work on building a CLONE of him.

Mel

Belgium
#8  

Don't take it too personal. He's idd very busy and can't reply to every post I guess. If he would, then there wouldn't be any time left over to improve the EZ-B or work on new stuff... Anyway, if it makes you feel comfortable I'll try to help you where ever I can. The only thing is, I'm not that intelligent eyeroll . I hope you're catching up quickly with the healing process of your surgery ! May the force be with you !