@vpalmisano/webrtcperf-js
    Preparing search index...

    Function detectVoiceActivity

    • It detects voice activity on an audio track and calls the callback with the start and stop times.

      Parameters

      • __namedParameters: {
            callback?: (
                event: "stop" | "start",
                startTime: number,
                stopTime: number,
            ) => void;
            detector?: "simple" | "silero";
            minSilentDurationMs?: number;
            minTalkingDurationMs?: number;
            track: MediaStreamTrack;
        }

      Returns Promise<((reason?: string) => void) | undefined>

      The cleanup function to stop the detection.