feat(voice): add AudioPresets and publish defaults for voice quality

This commit is contained in:
2026-06-29 09:37:25 -04:00
parent 130187c7be
commit d25763cc84
+12
View File
@@ -3,6 +3,7 @@ import {
Room, Room,
RoomEvent, RoomEvent,
Track, Track,
AudioPresets,
type RemoteAudioTrack, type RemoteAudioTrack,
type RemoteParticipant, type RemoteParticipant,
type Participant, type Participant,
@@ -80,6 +81,17 @@ export const useVoiceStore = create<VoiceState>((set, get) => ({
const room = new Room({ const room = new Room({
adaptiveStream: true, adaptiveStream: true,
dynacast: true, dynacast: true,
publishDefaults: {
red: false,
dtx: false,
audioPreset: AudioPresets.speech,
},
audioCaptureDefaults: {
channelCount: 1,
echoCancellation: true,
noiseSuppression: true,
autoGainControl: true,
},
}); });
room.on(RoomEvent.Connected, () => { room.on(RoomEvent.Connected, () => {