Monday, 26 May 2025

How to read any type of audio in R

Reading any type of audio file is a task made easy using the sonicscrewdriver package, the readAudio() function can identify the file type automatically, make use of appropriate third-party packages to read the audio, and return a tuneR Wave object. 

library(sonicscrewdriver)

filename <- "/path/to/audio/audio.flac"
audio <- readAudio(filename)


ShareThis

Copyright