checkInputType: Check audio input type

View source: R/io.R

checkInputTypeR Documentation

Check audio input type

Description

Internal soundgen function.

Usage

checkInputType(x)

Arguments

x

path to a .wav or .mp3 file, Wave object, or a numeric vector representing the waveform with specified samplingRate

Details

Checks the types of audio input to another function, which could be a folder with audio files, a single file, a Wave object, or a numeric vector. The purposes of this helper function are to ascertain that there are some valid inputs and to make a list of valid audio files, if any.


soundgen documentation built on Sept. 12, 2024, 6:29 a.m.