get_left {voice}R Documentation

Get left channel

Description

Get left channel from WAV file.

Usage

get_left(x)

Arguments

x

Wave object from 'tuneR::readWave'.

Value

Numeric vector indicating the left channel from a WAV file.

Examples

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])
l <- voice::get_left(rw)
head(l)
length(l)

[Package voice version 0.4.21 Index]