split_wave: Simple function to split large audio into segments

View source: R/split_wave.R

split_waveR Documentation

Simple function to split large audio into segments

Description

Cuts audio file into segments for processing and applies resampling and mono conversion if needed.

Usage

split_wave(
  path = NULL,
  file = NULL,
  segment = 600,
  downsample = NULL,
  mono = TRUE,
  rescale = NULL,
  format = c("WAV", "wav")
)

Arguments

path

path.

file

file name.

segment

segment length in seconds. Default 600.

downsample

optional. allows to downsample to a new sampling rate in Hz.

mono

logical. By default coerces to mono.

rescale

optional. allows to resacale the wav to a new bit rate (e.g., "8", "16", "24").

format

file extension (currently only WAV is supported).

Value

none


mottensmann/NocMigR documentation built on Oct. 3, 2023, 3:36 a.m.