chopAudio: Chop audio file into several segments

Description Usage Arguments Details

View source: R/chopAudio.R

Description

Chop audio file into several segments

Usage

1
2
3
chopAudio(wave = NULL, file = NULL, prefix = NULL, timethrs,
  mindur = 0.01, plot = F, saveWav = T, outdir,
  buffersilence = NULL, silenceparams = NULL, ...)

Arguments

wave

Wave file object

file

Wave file address

prefix

Prefix for audio output. This argument is required if file is not given.

timethrs

The time constant used to segment the audio.

mindur

Minimum duration for segment to be considered valid.

outdir

Directory where to save extracted segments.

buffersilence

Name of audio file containing silence that is appended at the beginning and end of each extracted segment of audio.

silenceparams

Parameters for generating silence that will be appended at the beginning and end of each extracted segment of audio.

...

Arguments passed to seewave::timer.

Details

Chops an audio file into several segments defined by a time constant.

The script uses the seewave::timer function to ensure that the segment boundaries do not cut across sounds.


crodriguez-saltos/somora documentation built on Feb. 23, 2020, 4:37 a.m.