OptionalchunkFrames accumulated per chunk before they are handed to the main thread
OptionaldeviceMicrophone to use; omit for the browser's default
OptionalonCalled with every captured chunk as it arrives — one Float32Array per
channel and the audio-context frame of its first sample — for analysis
while recording (see LiveSession)
OptionalonCalled when capture fails
OptionalonCalled with the RMS level (0–1) of each captured chunk, for a meter
OptionalprofileHow the microphone is opened. instrument (the default) asks for
unprocessed audio — no echo cancellation, noise suppression or automatic
gain — which is what analysis needs.
Options for
AudioCapture.