Machine]‘s default microphone, recording in a fixed
AudioFormat.
Obtain via [Machine.microphone]. The stream records from the moment
it is opened and stops when the handle is garbage-collected; collect
fixed-size chunks with record().
Constructor
Returns
Microphone
Properties
number
required
Number of interleaved channels (1 = mono, 2 = stereo).
number
required
Samples per second per channel (e.g. 44100, 48000).
Methods
record()
duration_ms and returns the captured audio as
a SamplesBuffer. Call repeatedly to stream fixed-size chunks.
Parameters
number
required
Returns
SamplesBuffer
