LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

myrio audio

Good Morning,

I am trying to play a huge audio file using the MyRio. I realized the MyRio does not like using simple read so I decided to save the wav file's information into a tdms file but when I tried reading it from the tdms file to play through the MyRio, it says that the information is too big. So I decided maybe I could break up the sound file and save a certain amount of information in multiple tdms files but I am not sure how to go about doing this. If anyone has another way of playing wav files through the MyRio or giving me some form of guidance to save large files numeric files into small tdms files so that labview can read, that would be much appreciated 🙂 

0 Kudos
Message 1 of 4
(3,354 Views)

Does the myRIO not support the Sound File VIs, such as Sound File Read?  [I'm not at my PC with the myRIO software installed, sorry].

 

Bob Schor

0 Kudos
Message 2 of 4
(3,337 Views)
No it doesn't. I tried it with my MyRio and the sound file read vi is not there. It doesn't like it 😞
0 Kudos
Message 3 of 4
(3,324 Views)

Hi sade_777,

 

I found a MakerHub forum post that may be useful to you: https://www.labviewmakerhub.com/forums/viewtopic.php?t=372#p2274 . In the example given by samkristoff , he converts the .wav to a double on his host PC, and then just reads this array on the myRIO. If you still find this array is too big, it is pretty easy to use a split array function in LabVIEW to break this into smaller pieces before putting it on the myRIO.

 

This forum post: http://forums.ni.com/t5/LabVIEW/how-to-split-audio-data-into-frames-after-reading-it-from-a-file/td-... may also be helpful to read through.

 

Hope this helps!

Selene
0 Kudos
Message 4 of 4
(3,263 Views)