n3d_stream_push: Push Audio to a Stream

View source: R/stream.R

n3d_stream_pushR Documentation

Push Audio to a Stream

Description

Push Audio to a Stream

Usage

n3d_stream_push(stream, samples)

Arguments

stream

A session from n3d_stream.

samples

Numeric vector of 16 kHz mono samples.

Value

A matrix of speaker probabilities, frames x 8, for the frames completed by this push (possibly zero rows), one frame per 10 ms.

See Also

n3d_stream for a complete example.

Examples


if (n3d_exists()) {
  s <- n3d_stream(load_n3d())
  p <- n3d_stream_push(s, numeric(32000)) # 2 s of silence
  dim(p)
}


n3d documentation built on Oct. 14, 2026, 5:08 p.m.