audio2mp3: Converting other audio format to .mp3

Description Usage Arguments Examples

View source: R/audio2mp3.R

Description

Converting other audio format to .mp3

Usage

1
audio2mp3(fileFormat = "webm", path, removeSource = FALSE)

Arguments

fileFormat

character, audio file format, without "." in front. The default is "webm".

path

character, the path where the files located.

removeSource

logic, removing the original audio file after converting.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
{
## Not run: 
url0 = "https://www.youtube.com/watch?v=DejHQYAGb7Q&list=PLkDaE6sCZn6F6wUI9tvS_Gw1vaFAx6rd6"
# the folder to save downloaded files
folder = "/data/surfDrive/TutorialVideos/"

# audio folder
newFolder = videoListDownload(urlSeed = url0, path = folder,
                               saveFileList = TRUE,
                               sleepTime = 5, maxDownload = 200,
                               priority = c("audio only"),
                               bothVideoAudio = FALSE)

# Converting
vidio2mp3(fileFormat = "webm", path = newFolder,
          removeSource = FALSE)

## End(Not run)
}

paodan/youtubeDownloader documentation built on Nov. 15, 2020, 9:48 p.m.