LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SpeechUI constructor has no public constructors

Solved!
Go to solution

Hi all,

 

Using windows 7, LV2011, and my .NET framework Configuration says 2.0, but when using the labview dialog box it says the system.speech assembly is version 3.0.

 

Anyways i am able to open an instance of the speech recognition from labview and do most things with it, but what i want to do is control the user interface of the application so i can tell it to start listening and to stop listening.  Currently when i try to select speechUI constructor it tells me there is no public concstuctors.

 

There will be a kudo for this one most certainly Smiley Very Happy

 

any advice?

 

thank you,

 

Matt



-Matt
0 Kudos
Message 1 of 5
(3,530 Views)
Solution
Accepted by topic author Wolleee

SpeechUI contains only one method (SendTextFeedback) specific to that class, and that is a static method, meaning you can call it without first creating an instance of the class. So, drop a .NET Invoke Node on your diagram, then right-click it, Select Class -> .NET -> Browse and select System.Speech.Recognition.

 

However, are you sure that's the class you want? I've never used it, but it doesn't look like it does what your post says you want to do.

Message 2 of 5
(3,519 Views)

Hi Nathand,

 

Youre absolutely correct about both comments.  Do you know how to actually start listening and stop listening from labview?

 

Heres a link on it here

 

 

thank you



-Matt
0 Kudos
Message 3 of 5
(3,508 Views)

@matt198717 wrote:

Do you know how to actually start listening and stop listening from labview?

I never worked with the speech API, so I don't know, but do a search for "LabVIEW speak", which should include code showing how to use it.


___________________
Try to take over the world!
Message 4 of 5
(3,477 Views)

Hi tst,

 

i was actually lookign into that and didnt think it was what i was looking for, but youre right i can probably pull some of that code out of it.

 

 

Thank you,

 

Matt



-Matt
0 Kudos
Message 5 of 5
(3,448 Views)