feat(voice): add AudioPresets and publish defaults for voice quality
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
Room,
|
||||
RoomEvent,
|
||||
Track,
|
||||
AudioPresets,
|
||||
type RemoteAudioTrack,
|
||||
type RemoteParticipant,
|
||||
type Participant,
|
||||
@@ -80,6 +81,17 @@ export const useVoiceStore = create<VoiceState>((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, () => {
|
||||
|
||||
Reference in New Issue
Block a user