Visualizes audio input from a microphone in wavesurfer.js instances.
start, stopDevice, play, pause, stop and togglePlay methods| Name | Required | Default | Description | 
|---|---|---|---|
| wavesurfer | yes | A WaveSurfer instance. | |
| bufferSize | no | 4096 | The buffer size in units of sample-frames. If specified, the bufferSizemust be one of the following values: 256, 512, 1024, 2048, 4096, 8192, 16384. | 
| numberOfInputChannels | no | 1 | Integer specifying the number of channels for this node's input. Values of up to 32 are supported. | 
| numberOfOutputChannels | no | 1 | Integer specifying the number of channels for this node's output. Values of up to 32 are supported. | 
| Name | Description | 
|---|---|
| deviceReady | Invoked when the device is ready to use. Callback will receive a LocalMediaStreamobject that contains the microphone stream. | 
| deviceError | Invoked when the user doesn't allow the browser to access the microphone. Callback will receive a (string) error code. |