Description Usage Arguments Details Value Note Author(s) References See Also Examples
A variation of the MP3 file reader supplied in tuneR
. Reads MP3 files in as 16bit PCM data stored in a Wave object.
1 | readMP3(filename, from, to)
|
filename |
Filename of MP3 file. |
from |
Seconds to begin reading, measured from beginning of file. See details. |
to |
Seconds to end reading, measured from beginning of file. See details. |
The bare bones MP3 file reader supplied in tuneR
reads the entire file in. When the user installs the third party software mp3splt and libmp3splt, this variant will allow from
and to
to be specified, and mp3splt will attempt to read in the MP3 segment without first decoding the file. Because mp3splt will cut the MP3 file at frame boundaries the from
and to
arguments are necessarily only guiding values; actual values may differ. Supplemental mp3splt installation instructions are provided in the document "Installing_mp3splt.pdf", available the monitoR website http://www.uvm.edu/rsenr/vtcfwru/R/?Page=monitoR/monitoR.htm.
An object of class Wave
.
If mp3splt is not installed a prompt will suggest falling back on the version from tuneR.
Jon Katz
mp3splt is documented at http://mp3splt.sourceforge.net/mp3splt_page/home.php.
1 2 3 4 | ## Not run:
# Assume myMP3 is an MP3 file with a duration of at least 60 seconds:
readMP3 (filename = "myMP3.mp3", from = "30", to = "60")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.