LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Voice recognition with MS Agent.

If I use the MS AgentVoice for speech recognize, the Agent gives the german Message "-- LV6i hört nicht zu-- Spracheingabe für deutsch steht nicht zur Verfügung." How can I change the Agent under LabVIEW 8.5 (german)  to use the english voice recognition? If I use the Agent under the MS Explorer I can give him commands.
 
Does anybody know, how I can solve this problem?
 
 
 
 
 
Florian
0 Kudos
Message 1 of 8
(3,815 Views)

You can try the property agent->Speach input->Language, which takes a string (you will have to try different strings like "english")  I did find a reference which states:

"  Agent no longer includes support for multiple languages. The language used by Agent is always assumed to be the user’s current language, as registered with the operating system. The LanguageID property of the Agent object is still writable, but its value is ignored by Agent on Vista. For example if the user’s language is set to US English (&H0409;), and he or she uses a program that sets the LanguageID to French (&H040C;), then the voice tip text, and Advanced Character Options dialogs will still appear in English."

 

This could be a problem.  I have only played with the agent alittle.  There is also a .net System.Speech class with lots of capabilities which handles voice IO.

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 8
(3,807 Views)

Hello Paul!

Thank you for answering! - But where can I find the property agent? - In my VI I use the following SubVIs: Create MSAgent Voice, Add MSAgent Commands, Wait for Voice Event and Destroy MSAgent Voice. In these SubVIs I searched - but I didn`t found. Is property agent perhaps a separate VI?

Florian

0 Kudos
Message 3 of 8
(3,779 Views)
Not a subvi, a property node.  Take the reference to the agent activeX object and use the property node, this has a property called SpeechInput, wire this to another propertynode and select Language and change to write.  You should be able to set this with a string constant.
 
This is similar to Agent.Speech.Language = "String", where the string is the language value (you will have to look up valid string language values).
 
 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 8
(3,754 Views)
I tried it, but there is one more problem! - I can`t change the property "language" into write.
 
Have I done something wrong? - I took the VI "Create MS Agent Voice" and expanded it with the property "SpeechInput", wired this property with a new property node and selected "language". But "change to write" is grey - therefore not possible. I also tried this with the other VIs I`m using - no chance!
 
Thanks for your time!
 
Florian
0 Kudos
Message 5 of 8
(3,740 Views)
It looks like MS might have made this linked to the OS global language settings.  I have not used the agent too much so I cant verify this.  It would be nice to set the agent language outside of the OS though. 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 6 of 8
(3,727 Views)

Thanks Paul!

I think so, too. I think I have to edit the character I want to use and have to change the LanguageID there. Do you know how to edit the characters (which language are they written in)?

 

Florian

0 Kudos
Message 7 of 8
(3,704 Views)

I have only played with the agent from a hobbiest standpoint.  I have used more of the text to speech than using the input.  Sorry.

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 8 of 8
(3,699 Views)