readAudio: Read audio

View source: R/io.R

readAudioR Documentation

Read audio

Description

Internal soundgen function.

Usage

readAudio(
  x,
  input = checkInputType(x),
  i,
  samplingRate = NULL,
  scale = NULL,
  from = NULL,
  to = NULL
)

Arguments

x

audio input (only used for Wave objects or numeric vectors)

input

a list returned by checkInputType

i

iteration

samplingRate

sampling rate of x (only needed if x is a numeric vector, rather than an audio file or Wave object)

scale

maximum possible amplitude of input used for normalization of input vector (only needed if x is a numeric vector, rather than an audio file or Wave object)

from, to

if NULL (default), analyzes the whole sound, otherwise from...to (s)


soundgen documentation built on Sept. 12, 2024, 6:29 a.m.