readWave | R Documentation |
Reading Wave files.
readWave(filename, from = 1, to = Inf,
units = c("samples", "seconds", "minutes", "hours"), header = FALSE, toWaveMC = NULL)
filename |
Filename of the file to be read. |
from |
Where to start reading (in order to save memory by reading wave file piecewise), in |
to |
Where to stop reading (in order to save memory by reading wave file piecewise), in |
units |
Units in which |
header |
If |
toWaveMC |
If |
An object of class Wave
or WaveMC
or a list containing just the header information if header = TRUE
.
If the latter, some experimental support for reading bext
chunks in
Broadcast Wave Format files is implemented, and the content is returned as an unprocessed string (character).
Uwe Ligges ligges@statistik.tu-dortmund.de, Sarah Schnackenberg
Wave-class, Wave
, WaveMC-class, WaveMC
, writeWave
Wobj <- sine(440)
tdir <- tempdir()
tfile <- file.path(tdir, "myWave.wav")
writeWave(Wobj, filename = tfile)
list.files(tdir, pattern = "\\.wav$")
newWobj <- readWave(tfile)
newWobj
file.remove(tfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.