get_bit: Get bit rate

View source: R/get_bit.R

get_bitR Documentation

Get bit rate

Description

Get bit rate from WAV file.

Usage

get_bit(x)

Arguments

x

Wave object from 'tuneR::readWave'.

Value

Integer indicating the bit rate 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])
voice::get_bit(rw)

rwl <- lapply(path2wav, tuneR::readWave)
sapply(rwl, voice::get_bit)

voice documentation built on April 19, 2023, 5:09 p.m.