rwavflac

R - WAC/FLAC conversions with seewave


I need to convert FLAC files into WAV with R. I am using seewave package.

So I am working with a sample file file.flac.

test <- wav2flac("file.flac", reverse=TRUE)

I get the following error command

Error in wav2flac("file.flac", reverse = TRUE) : FLAC program was not found.

According to seewave's CRAN (https://cran.r-project.org/web/packages/seewave/seewave.pdf#page=207), I need to install FLAC in my PC. I am unsure how to do that.

Best,

R user


Solution

  • yes install it if you have

    if you have windows: https://windowsloop.com/install-ffmpeg-windows-10/

    if you have ubuntu, linux,etc, on console sudo apt install ffmpeg

    if you have mac, on terminal brew install ffmpeg

    Regards