Visualizes audio input from a microphone in wavesurfer.js instances.
WaveSurfer instanceMicrophone instancestart, stop and togglePlay methods| Name | Required | Description |
|---|---|---|
wavesurfer |
yes | A WaveSurfer instance. |
| Name | Description |
|---|---|
deviceReady |
Invoked when the device is ready to use. Callback will receive a LocalMediaStream object 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. |