03-11-2016 09:46 AM
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 🙂
03-11-2016 11:28 AM
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
03-11-2016 12:16 PM
03-14-2016 03:32 PM
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!