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 Aug. 14, 2022, 5:05 p.m.