Learn R Programming

voice (version 0.4.21)

get_right: Get right channel

Description

Get right channel from WAV file.

Usage

get_right(x)

Value

Numeric vector indicating the right channel from a WAV file.

Arguments

x

Wave object from `tuneR::readWave`.

Examples

Run this code
library(voice)

# get path to audio file
path2wav <- list.files(system.file('extdata', package = 'wrassp'),
pattern <- glob2rx('*.wav'), full.names = TRUE)

rw <- tuneR::readWave(path2wav[1])
r <- voice::get_right(rw)
head(r)
length(r)

Run the code above in your browser using DataLab