Learn R Programming

soundgen (version 2.3.0)

processAudio: Process audio

Description

Internal soundgen function.

Usage

processAudio(
  x,
  samplingRate = NULL,
  scale = NULL,
  from = NULL,
  to = NULL,
  funToCall,
  myPars = list(),
  var_noSummary = NULL,
  reportEvery = NULL,
  savePlots = NULL,
  saveAudio = NULL
)

Arguments

x

path to a folder, one or more wav or mp3 files c('file1.wav', 'file2.mp3'), Wave object, numeric vector, or a list of Wave objects or numeric vectors

samplingRate

sampling rate of x (only needed if x is a numeric vector)

scale

maximum possible amplitude of input used for normalization of input vector (only needed if x is a numeric vector)

from

if NULL (default), analyzes the whole sound, otherwise from...to (s)

to

if NULL (default), analyzes the whole sound, otherwise from...to (s)

funToCall

function to call (specify what to do with each audio input)

myPars

a list of parameters to pass on to `funToCall`

var_noSummary

names of output variables that should not be summarized

reportEvery

report estimated time left every ... iterations (NA = no reporting, NULL = default frequency)

savePlots

full path to the folder in which to save the plots (NULL = don't save, '' = same folder as audio)

summaryFun

function(s) used to summarize the output per input