playme: Play audio

Description Usage Arguments Examples

View source: R/utilities_soundgen.R

Description

Plays an audio file or a numeric vector. This is a simple wrapper for the functionality provided by play

Usage

1
playme(sound, samplingRate = 16000)

Arguments

sound

a vector of numbers on any scale or a path to a .wav file

samplingRate

sampling rate (only needed if sound is a vector)

Examples

1
2
3
4
5
## Not run: playme('~/myfile.wav')
f0_Hz = 440
sound = sin(2 * pi * f0_Hz * (1:16000) / 16000)
# playme(sound, 16000)
# in case of errors, look into tuneR::play()

tatters/soundgen_beta documentation built on May 14, 2019, 9 a.m.