From d25763cc84f15081fd6c8d448a9f5b7e88b105cd Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Mon, 29 Jun 2026 09:37:25 -0400 Subject: [PATCH] feat(voice): add AudioPresets and publish defaults for voice quality --- web/src/stores/voice.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web/src/stores/voice.ts b/web/src/stores/voice.ts index 2fa6705..1b793c5 100644 --- a/web/src/stores/voice.ts +++ b/web/src/stores/voice.ts @@ -3,6 +3,7 @@ import { Room, RoomEvent, Track, + AudioPresets, type RemoteAudioTrack, type RemoteParticipant, type Participant, @@ -80,6 +81,17 @@ export const useVoiceStore = create((set, get) => ({ const room = new Room({ adaptiveStream: true, dynacast: true, + publishDefaults: { + red: false, + dtx: false, + audioPreset: AudioPresets.speech, + }, + audioCaptureDefaults: { + channelCount: 1, + echoCancellation: true, + noiseSuppression: true, + autoGainControl: true, + }, }); room.on(RoomEvent.Connected, () => {