Learn R Programming

ARUtools (version 0.7.2)

get_wav_length: Get the length of a recording in seconds

Description

Get the length of a recording in seconds

Usage

get_wav_length(path, return_numeric = FALSE)

Value

Length of recording in seconds

Arguments

path

Character. Path to wave file.

return_numeric

Logical. Return numeric or character?

Examples

Run this code
  f <- tempfile()
  w <- tuneR::sine(440, duration = 100000)
  tuneR::writeWave(w, f)
  get_wav_length(f)

Run the code above in your browser using DataLab