| n3d_stream_push | R Documentation |
Push Audio to a Stream
n3d_stream_push(stream, samples)
stream |
A session from |
samples |
Numeric vector of 16 kHz mono samples. |
A matrix of speaker probabilities, frames x 8, for the frames completed by this push (possibly zero rows), one frame per 10 ms.
n3d_stream for a complete example.
if (n3d_exists()) {
s <- n3d_stream(load_n3d())
p <- n3d_stream_push(s, numeric(32000)) # 2 s of silence
dim(p)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.