Learn R Programming

warbleR (version 1.0.2)

mp32wav: Convert .mp3 files to .wav

Description

mp32wav converts several .mp3 files in working directory to .wav format

Usage

mp32wav()

Arguments

Value

  • .wav files saved in the working directory with same name as original mp3 files.

Details

convert all .mp3 files in working directory to .wav format. Function used internally to read .mp3 files (readMP3) sometimes crashes This should be fixed in the next version of tuneR.

Examples

Run this code
# First create empty folder
dir.create(file.path(getwd(),"temp"))
setwd(file.path(getwd(),"temp"))

#Then download mp3 files from xeno-canto
querxc(qword = "Phaethornis aethopygus", download = TRUE)

# Convert all files to .wav format
mp32wav()

#check this folder!!
getwd()

#remove example directory
unlink(getwd(),recursive = TRUE)

Run the code above in your browser using DataLab