Fix speaking threshold

This commit is contained in:
Robert Long
2021-10-06 16:20:07 -07:00
parent 593f62c1c4
commit 7ef38ed1b2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ import { MatrixClient } from "../client";
import { RoomMember } from "../models/room-member";
const POLLING_INTERVAL = 250; // ms
const SPEAKING_THRESHOLD = -60; // dB
export const SPEAKING_THRESHOLD = -60; // dB
export interface ICallFeedOpts {
client: MatrixClient;
+2 -2
View File
@@ -1,5 +1,5 @@
import EventEmitter from "events";
import { CallFeed, CallFeedEvent } from "./callFeed";
import { CallFeed, CallFeedEvent, SPEAKING_THRESHOLD } from "./callFeed";
import { MatrixClient } from "../client";
import { CallErrorCode, CallEvent, CallState, genCallID, MatrixCall, setTracksEnabled } from "./call";
import { RoomMember } from "../models/room-member";
@@ -101,7 +101,7 @@ export class GroupCall extends EventEmitter {
// Config
public activeSpeakerSampleCount = 8;
public activeSpeakerInterval = 1000;
public speakingThreshold = -80;
public speakingThreshold = SPEAKING_THRESHOLD;
public participantTimeout = 1000 * 15;
public state = GroupCallState.LocalCallFeedUninitialized;