feat(voice): add AudioPresets and publish defaults for voice quality
This commit is contained in:
@@ -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, () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user