Methods
# async initialize() → {Promise.<boolean>}
Initialize audio context and microphone access
Success status
Promise.<boolean>
# onAudioData(callback)
Add callback for audio data
Parameters:
Name | Type | Description |
---|---|---|
callback |
function
|
Callback function |
# removeCallback(callback)
Remove callback
Parameters:
Name | Type | Description |
---|---|---|
callback |
function
|
Callback to remove |
# setSensitivity(sensitivity)
Set sensitivity
Parameters:
Name | Type | Description |
---|---|---|
sensitivity |
number
|
Sensitivity multiplier |
# setSmoothing(smoothing)
Set smoothing
Parameters:
Name | Type | Description |
---|---|---|
smoothing |
number
|
Smoothing value (0-1) |