play {audio} | R Documentation |
play
plays audio
play(x, ...) play.audioSample(x, rate, ...) play.Sample(x, ...) play.default(x, rate=44100, ...)
x |
data to play |
rate |
sample rate - it is inferred from the object (where possible) if not specified |
... |
optional arguments passed to the method specific to the object being played |
Returns an audio instance object which can be used to control the playback subsequently.
play(sin(1:10000/20))