Skip to content

Test Setup test for music DO NOT MERGE #3373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: livekit
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/livekit/useECConnectionState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ async function doConnect(
let preCreatedAudioTrack: LocalTrack | undefined;
try {
const audioTracks = await livekitRoom!.localParticipant.createTracks({
audio: { deviceId: initialDeviceId },
audio: {
deviceId: initialDeviceId,
autoGainControl: false,
noiseSuppression: false,
},
});

if (audioTracks.length < 1) {
Expand Down
5 changes: 5 additions & 0 deletions src/livekit/useLivekit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Please see LICENSE in the repository root for full details.
*/

import {
AudioPresets,
ConnectionState,
type E2EEManagerOptions,
ExternalE2EEKeyProvider,
Expand Down Expand Up @@ -107,6 +108,10 @@ export function useLivekit(
deviceId: getValue(devices.videoInput.selected$)?.id,
processor,
},
publishDefaults: {
...defaultLiveKitOptions.publishDefaults,
audioPreset: AudioPresets.musicHighQuality,
},
audioCaptureDefaults: {
...defaultLiveKitOptions.audioCaptureDefaults,
deviceId: initialAudioInputId,
Expand Down