is_mono {voice} | R Documentation |
Verify if an audio is mono
Description
Verify if an audio is mono
Usage
is_mono(x)
Arguments
x |
Path to WAV audio file. |
Value
Logical. 'TRUE' indicates a mono (one-channel) file. 'FALSE' indicates a non-mono (two-channel) file.
Examples
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)
[Package voice version 0.4.21 Index]