LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i compare two audio bursts and say they are same or otherwise (LV 7.1 or 8.2)?

I'm glad to help Sunil.  Good luck with your application!

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support

0 Kudos
Message 11 of 24
(2,271 Views)
Hi Yi,

I have been able to generate texts of words spoken into the mic.
Is there a possibility to feed a .wav file containing these words directly into the vi? That is, I remove the vi which is waiting for the voice from the mic, and replace it by a wav file data directly.
Then this will enable us to feed a prerecorded voice data and get that in text format, which is what we want to do ultimately.


thanks and regards,
sunil



0 Kudos
Message 12 of 24
(2,262 Views)
Hi Sunil,
The attached image is from the sound processing pallete.  You can open a wav file in LabVIEW and process the data from there.  Let me know if this helps.

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 13 of 24
(2,253 Views)
Hi Yi,
What I am actually trying to do is to replace the mic and sound card entirely and read the voice directly from a file. I am not sure whether this can be done since MS Agent engines access the sound card.
Nevertheless, I have attached my discription of possible method. Pls see if some thing on those line is possilbe.
thanks,
sunil

0 Kudos
Message 14 of 24
(2,239 Views)
Hi Sunil,
Unfortunately, I'm not sure if MSAgent allows operation such that the input is a wav file instead of the mic. input.  Our example is only tapping into to the ActiveX interface to perform voice recognition.  I think Dragon Naturally speaking allows using a .wav file directly, but you'll probably have to do a little more research on the ActiveX interface of either one of those to see if something like that is supported.
Hope this information helps.

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 15 of 24
(2,215 Views)
Thanks a ton Yi, I guess that is the way to go. But I am also exploring the possibility of installing a usb (or any other) sound card which has both  mic and speaker output, this can then be interconnected with each other using a mono jack, on the PXI chassis. Then all that I will probably need to do is to play a wav file on to the speaker output, using any of the lv sound vis, and since the mic is now connected directly to the speaker output, we can use the same example of voice recognition vi with hopefully minor modifications!!

Sounds simple, but to locate a sound card for the pxi which has mic and speaker ports seems an elusive task.
I did some web search but did not hit any satisfactory result..

Would help if you have any clue on this, that is sound card for pxi with mic and speaker ports.


regards,
sunil

0 Kudos
Message 16 of 24
(2,206 Views)
Hi Yi,
There is a way to call wav files into the application instead of, from the mic. However, this method does not seem to be available in the ActiveX methods of LV 8.2.
The methods needed to do this are:

ISpAudioPlug::SetData >>>>> Sound data from the wave file is sent to this object.
IStream::Read >>>>>>>>>>> this object then reads the data from the previous object.


More information can be found in this link:

http://msdn2.microsoft.com/en-us/library/ms717071.aspx

Troubling you once again for more information.

However, the other method (USB CARD) is also being worked out in parallel.
thanks are regards,
sunil

0 Kudos
Message 17 of 24
(2,199 Views)
Hi Yi,

where do i get info on how to port or integrate the methods in 'ISpRecoContext' into labview?

Pls visit the link below for more on
'ISpRecoContext':

http://msdn2.microsoft.com/en-us/library/ms718476.aspx

regards,
sunil

0 Kudos
Message 18 of 24
(2,196 Views)
Hi Sunil,
I'm not too familiar with the ISpRecoContext interface, but I imagine it being an ActiveX interface, and as long as it's a registered component in your OS, LV's Automation Open function can have access to it.  I looked online, and it looks like you'll need the MS Speech SDK, which can be downloaded at http://www.microsoft.com/downloads/details.aspx?FamilyID=5e86ec97-40a7-453f-b0ee-6583171b4530&Displa...
I'm not too familiar with this SDK, and I haven't installed it to try it myself.  I would say go ahead and give it a try to see if it meets your needs.
The attached images demonstrate how to use Automation Open to access an ActiveX object.  Sound.gif shows you where the sound input output pallets are at. LabVIEW can access an installed soundcard and acquire data from them.
Hope this helps.

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
Download All
0 Kudos
Message 19 of 24
(2,172 Views)
Hi Yi,

Thats a lot of info you have provided me. I have installed the speech sdk5.1 and sure, i am able to access most of the ActiveX methods. I  am now trying to implement the calling up of wav file into the sample application. I do have an example code in C or Cpp but that now needs to be implemented in LV. The methods used in that c program are still not visible, but that maybe because of my ignorance of the speech sdk (!!) at this point of time.
Thank you for being with the issue along side me, hope to compelete this soon, will keep you posted.

regards,
sunil

 
0 Kudos
Message 20 of 24
(2,163 Views)