You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (enableSilence && dominantSpeaker != null && newDominantId == dominantSpeaker.id)
{
// We're not in a silence period, and none of the non-dominant speakers won the challenge. Check if// the current dominant speaker has been silent for the timeout period, and if so switch to "silence"// mode.longtimeSinceNonSilence = now - dominantSpeaker.lastNonSilence;
if (timeSinceNonSilence > timeoutToSilenceInterval)
{
newDominantId = null;
}
}
as above code, we know that you are relying lastNonSilence to judge whether newDominantId is null
lastNonSilence is updated only at evaluateLongSpeechActivityScore
synchronizedvoidevaluateSpeechActivityScores(longnow)
{
if (computeImmediates())
{
evaluateImmediateSpeechActivityScore();
if (computeMediums())
{
evaluateMediumSpeechActivityScore();
if (computeLongs())
{
evaluateLongSpeechActivityScore(now);
}
}
}
}
evaluateLongSpeechActivityScore only be called at evaluateSpeechActivityScores
If dominantSpeaker is always talking, the longs would not change. so, evaluateLongSpeechActivityScore won't be called, and lastNonSilence won't be updated.
So, newDominantId maybe set to null and fire fireActiveSpeakerChanged(null);
The text was updated successfully, but these errors were encountered:
at DominantSpeakerIdentification.java
as above code, we know that you are relying
lastNonSilence
to judge whether newDominantId is nulllastNonSilence
is updated only atevaluateLongSpeechActivityScore
evaluateLongSpeechActivityScore
only be called atevaluateSpeechActivityScores
If dominantSpeaker is always talking, the
longs
would not change. so,evaluateLongSpeechActivityScore
won't be called, and lastNonSilence won't be updated.So, newDominantId maybe set to null and fire
fireActiveSpeakerChanged(null);
The text was updated successfully, but these errors were encountered: