readMP3 | R Documentation |
A bare bones MPEG-2 layer 3 (MP3) file reader that returns the results as 16bit PCM data stored in a Wave object.
readMP3(filename)
filename |
Filename of MP3 file. |
A Wave
object.
The decoder can currently only handle files which are either mono or stereo. This is a limitation of the Wave object and the underlying MAD decoder.
Olaf Mersmann olafm@statistik.tu-dortmund.de
The decoder source code is taken from the MAD library, see http://www.underbit.com/products/mad/.
Wave
## Not run:
## Requires an mp3 file named sample.mp3 in the current directory.
mpt <- readMP3("sample.mp3")
summary(mpt)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.