findSyllables: Find "syllables" (discrete acoustic events) in animal sounds

Description Usage Arguments Value Examples

View source: R/findSyllables.R

Description

Find "syllables" (discrete acoustic events) in animal sounds

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
findSyllables(
  files,
  low = 1000,
  high = 22000,
  plotSyllables = FALSE,
  samplingRate = NULL,
  shortestPause = 25,
  shortestSyl = 10,
  plot = FALSE,
  sylThres = 0.5,
  windowLength = 20,
  overlap = 80
)

Arguments

files

A vector of wave files

low

lower frequency for filter

high

lower frequency for filter

plotSyllables

logical, should the spectrogram with the syllables be plotted?

samplingRate

Sampling rate

shortestPause

Smallest separation between syllables

shortestSyl

Shortest event that cam be considered a syllables

plot

should plot syllables according to soundgen?

sylThres

percentage of mean amplitude envelope for audio event. Syllables are only detected when above this threshold

windowLength

window size for audio events

overlap

overlap between windows

Value

Dataframe with following collumns: "sound.files" : original file from wich syllables were extracted, "selec" : syllable id, unique inside the sound.file, but not between files, "start" : syllable start, "end" : syllable end

Examples

1
2
3
4
5
## Not run: 
songs = findSyllables(plotSyllables  = F,dir(here::here("inst/extdata"),
 full.names = TRUE,include.dirs = T), samplingRate = 44100)
 
## End(Not run)

vrios/songspellR documentation built on Dec. 23, 2021, 4:12 p.m.