is_mono | R Documentation |
Verify if an audio is mono
is_mono(x)
x |
Path to WAV audio file. |
Logical. 'TRUE' indicates a mono (one-channel) file. 'FALSE' indicates a non-mono (two-channel) file.
library(voice)
# get path to audio file
path2wav <- list.files(system.file('extdata', package = 'wrassp'),
pattern = glob2rx('*.wav'), full.names = TRUE)
is_mono(path2wav[1])
sapply(path2wav, is_mono)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.