read_wav: Read WAV files

Description Usage Arguments Value Examples

View source: R/read_audio.R

Description

A thin wrapped around readWave from the package tuneR.

Usage

1
read_wav(file, time_exp = 1, from = NULL, to = NULL)

Arguments

file

a WAV file.

time_exp

integer. Time expansion factor of the recording. Set to 1 for real-time recording or above for time expanded recording. Default setting is 1.

from

optional. Numeric. Where to start reading the recording, in seconds (s).

to

optional. Numeric. Where to end reading the recording, in seconds (s).

Value

A Wave object.

Examples

1
2
filepath <- system.file("extdata", "recording.wav", package = "bioacoustics")
read_wav(filepath)

bioacoustics documentation built on Feb. 8, 2022, 5:06 p.m.