|
@@ -486,15 +486,18 @@ export const getTrack = async (
|
|
|
let res: TrackResult | undefined;
|
|
|
let Track: RTC.RCLocalTrack | null = null;
|
|
|
if (trackType === "microphone") {
|
|
|
+ // Number(localStorage.getItem("sampleRate") || "44100") || 44100,
|
|
|
res = (await runtime.rtcClient?.createMicrophoneAudioTrack("RongCloudRTC", {
|
|
|
micphoneId: runtime.selectedMicrophone?.deviceId,
|
|
|
sampleRate:
|
|
|
- Number(localStorage.getItem("sampleRate") || "44100") || 44100,
|
|
|
+ Number(localStorage.getItem("sampleRate") || "48000") || 48000,
|
|
|
noiseSuppression: false,
|
|
|
echoCancellation: false,
|
|
|
autoGainControl: false,
|
|
|
})) as TrackResult;
|
|
|
+ // console.log( Number(localStorage.getItem("sampleRate") || "48000") || 48000,)
|
|
|
} else if (trackType === "microphone2") {
|
|
|
+ console.log('microphone2')
|
|
|
res = (await runtime.rtcClient?.createMicrophoneAudioTrack("RongCloudRTC", {
|
|
|
micphoneId: runtime.selectedMicrophone2?.deviceId,
|
|
|
noiseSuppression: false,
|