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

    Function estimateQuestionAnswerDelay

    • Estimates the question to answer delay. The estimation is based on the voice activity detection between the question and answer audio tracks.

      Parameters

      • sendTrack: MediaStreamTrack

        The send track to estimate the answer delay.

      • recvTrack: MediaStreamTrack

        The recv track to estimate the answer delay.

      • minTalkingDurationMs: number = 40

        The minimum talking duration in milliseconds to detect voice start.

      • minSilentDurationMs: number = 500

        The minimum silent duration in milliseconds to detect voice stop.

      • Optionalcallback: (
            question: { endTime: number; startTime: number },
            answer: { endTime: number; startTime: number },
        ) => void

        The callback called at the end of the question and answer.

      Returns undefined | (() => void)

      The cleanup function to stop the estimation.