Microphone

Microphone

new Microphone()

A simple interface for recording audio from microphone input.

Members

audio

Returns the last recorded audio data.

ready

Returns whether the microphone object is ready to record or not.
If no microphone was found or the user blocked access to it, this will
return false. true otherwise.

state

Returns the current status of the recorder.

Methods

record()

Starts the audio recording.

stop(busChannel)

Stops the audio recording.
Sends an 'Audio Ready' message on the provided SystemBus channel to notify
the object that requested the recording to stop that the audio is ready.

Parameters:
Name Type Description
busChannel String

The name of the SystemBus channel to notify.