MFCCFunction: MFCCFunction

View source: R/MFCCFunction.R

MFCCFunctionR Documentation

MFCCFunction

Description

Function to calculate Mel-frequency cepstral coefficents over a directory of focal recordings

Usage

MFCCFunction(
  input.dir,
  min.freq = 400,
  max.freq = 2000,
  n.windows = 9,
  num.cep = 12,
  win.avg = "standard",
  win.hop.time = 0.25
)

Arguments

input.dir

where the .wav files are stored

min.freq

the minimum frequency (Hz) of the signal of interest

max.freq

the maximum frequency (Hz) of the signal of interest

n.windows

the number of time windows to divide the signal by

num.cep

the number of cepstra to calculate for each time window

win.avg

Option of 'no.avg','mean.sd' or 'standard'; whether to return MFCCs for each non-overlapping time window, calculate mean and SD over each MFCC or calculated MFCCs for a set number of time windows.

win.hop.time

If win.avg='standard' the specified window size.

Value

a data frame with a row of MFCCs for each .wav file

Examples

MFCCFunction(input.dir = "FocalRecordings",min.freq = 400,max.freq=2500)

DenaJGibbon/gibbonR documentation built on Nov. 28, 2024, 2:52 a.m.