@vkontakte/calls-audio-effects 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,6 +4,8 @@ export interface VadControllerOptions extends EffectVadAiOptions {
|
|
|
4
4
|
threshold?: number;
|
|
5
5
|
/** How many ms after last "speech" to keep enabled=true. Default: 300 */
|
|
6
6
|
hangoverMs?: number;
|
|
7
|
+
/** Log changes to the isSpeaking state. Default: false */
|
|
8
|
+
logSpeakingState?: boolean;
|
|
7
9
|
}
|
|
8
10
|
export interface VadLib {
|
|
9
11
|
VadController: typeof VadController;
|
|
@@ -14,6 +16,7 @@ export declare class VadController {
|
|
|
14
16
|
private _vadInputTrack;
|
|
15
17
|
private _threshold;
|
|
16
18
|
private _hangoverMs;
|
|
19
|
+
private _logSpeakingState;
|
|
17
20
|
private _effectOptions;
|
|
18
21
|
private _isSpeaking;
|
|
19
22
|
private _lastSpeechAt;
|