LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read mp3 file format

sir
 
    I want to read mp3 file format and remove noise from that file. then save that file another location pls send example vis
0 Kudos
Message 1 of 10
(9,910 Views)

MP3 is a licensed format, so LabVIEW does not have VIs for reading or writing it. I think you will have to convert it to a wave file and then use the sound VIs to load it into LabVIEW. If you search the web, you might some DLLs or programs with ActiveX interface which will allow you to convert it programmatically.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 2 of 10
(9,899 Views)
While tst is correct that mp3 is a proprietary format and no native support exists, there are several options for reading it from LabVIEW.  The two most common are ActiveX and shared library calls.  For an example of the ActiveX approach, check out this LabVIEW mp3 player (written in LV5.1, so the ActiveX interface may be dated).  Doing a search of this forum will also net you several examples.  Try this thread for more links.
0 Kudos
Message 3 of 10
(9,878 Views)
Damien, I have thought of that, but those interfaces only allow playing the file.
The point here is to clean the file, so you have to either
  • find a program which will return the audio data,
  • find a program which will allow you to convert the data to wave,
  • play the file and record it somehow using a virtual microphone connected to the sound output (if that's even possible) or
  • convert it manually.

From all these options, the second and fourth are probably the easiest.


___________________
Try to take over the world!
0 Kudos
Message 4 of 10
(9,872 Views)
That's what I get for being in a hurry.  I made the erroneous assumption that the actual output was being handled by LabVIEW.  I know that LAME can be used for the encoding portion, but that does not help for the decoding end.  I agree with your assessment.  I believe I know someone who has done this.  I will try to get more information.
0 Kudos
Message 5 of 10
(9,829 Views)

Hey I'm having a project about sending and receiving voice files trough NI PXI 1042Q in 100MHz.. the thing is that I need to convert the mp3 files into bitstream to channel code, modulate and sending it through a NI PXI 5610 and receive it with a NI - PXI 5142.. Does anyone knows how can I do the conversion?.. thanks

 

Regards 

0 Kudos
Message 6 of 10
(8,607 Views)

I don't think the basic answer would have changed since this thread was created - you will probably need to either do this yourself manually or find a program which can decode the MP3 into the raw wave format and then read that data.

 

Since you're on a PXI system, however, I'm guessing that the sound VIs wouldn't work and that even if they do, you wouldn't be able to run the external program (an EXE or a DLL) needed to make the conversion. That's just a guess, though. Checking should be easy enough. If you can, converting the files beforehand to a format LV can read there would probably help.


___________________
Try to take over the world!
0 Kudos
Message 7 of 10
(8,595 Views)

ok... Thanks.. I'm trying it now with .wav files, but I'm in the same situation... It's kind of frustrating.....

0 Kudos
Message 8 of 10
(8,552 Views)

Hi,

 

If you are using wav format, use Sound File Read Simple.Vi or Sounf File Read.Vi in functions palette. Both read data from .wav file into a array of waveform. Sound File Read Simple.Vi do it automatically while other does manually.

 

Hope this helps.

 

Thanks,

 

Sanjoe

 

0 Kudos
Message 9 of 10
(8,530 Views)

thank you man 😃

0 Kudos
Message 10 of 10
(8,520 Views)