mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
fix: denoise microphone and honor WebRTC mute
This commit is contained in:
1 parent
75de8f1d2b
commit
f628d19ebf
6 files changed
+97
-9
No files matched your search
@@ -127,6 +127,7 @@ export class WebRtcAudioSession {
|
||||
private lastIngressRtpAt: number | null = null;
|
||||
private lastEgressRtpAt: number | null = null;
|
||||
private lastQueueEnqueuedAt: number | null = null;
|
||||
private microphoneMuted: boolean;
|
||||
private accompanimentActive: boolean;
|
||||
private readonly stats: WebRtcAudioStats = {
|
||||
webrtcIngressRtpFrames: 0,
|
||||
@@ -153,6 +154,7 @@ export class WebRtcAudioSession {
|
||||
this.logger = options.logger.child({ component: "webrtc-audio", connectionId: options.connectionId });
|
||||
this.onVoiceFrame = options.onVoiceFrame;
|
||||
this.onVoiceActivity = options.onVoiceActivity;
|
||||
this.microphoneMuted = options.microphoneMuted === true;
|
||||
this.accompanimentActive = options.accompanimentActive === true;
|
||||
this.outgoingTrack = new MediaStreamTrack({ kind: "audio" });
|
||||
|
||||
@@ -179,6 +181,13 @@ export class WebRtcAudioSession {
|
||||
this.stats.webrtcIngressRtpFrames++;
|
||||
if (!this.opusPayloadTypes.has(rtp.header.payloadType)) return;
|
||||
const payload = Buffer.from(rtp.payload);
|
||||
// A muted microphone must stop the browser user's TeamSpeak voice
|
||||
// packets at the gateway. Browser-side track.enabled/gain changes
|
||||
// still produce RTP comfort-silence on some browsers, and forwarding
|
||||
// those packets makes TeamSpeak keep the user in the speaking state.
|
||||
// When accompaniment is active, keep forwarding the mixed track: the
|
||||
// browser has already removed only the microphone component.
|
||||
if (this.microphoneMuted && !this.accompanimentActive) return;
|
||||
// Forward every valid negotiated Opus payload unchanged. Do not
|
||||
// decode it for RMS analysis or pass it through a speech/silence gate:
|
||||
// quiet frames are still part of the codec timeline and dropping them
|
||||
@@ -406,10 +415,7 @@ export class WebRtcAudioSession {
|
||||
}
|
||||
|
||||
setMicrophoneMuted(muted: boolean): void {
|
||||
// The browser sends a mixed microphone/accompaniment track. The mute gain
|
||||
// is applied before RTP encoding, so a server-side mute flag must not drop
|
||||
// the whole packet and silence a still-playing accompaniment.
|
||||
void muted;
|
||||
this.microphoneMuted = muted;
|
||||
}
|
||||
|
||||
setAccompanimentActive(active: boolean): void {
|
||||
|
||||
Generated
+15
@@ -6,6 +6,7 @@
|
||||
"": {
|
||||
"name": "webspeak-webclient-frontend",
|
||||
"dependencies": {
|
||||
"@sapphi-red/web-noise-suppressor": "^0.4.0",
|
||||
"pinia": "^3.0.2",
|
||||
"vue": "^3.5.13",
|
||||
"vue-router": "^4.5.1"
|
||||
@@ -861,6 +862,16 @@
|
||||
"win32"
|
||||
]
|
||||
},
|
||||
"node_modules/@sapphi-red/web-noise-suppressor": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@sapphi-red/web-noise-suppressor/-/web-noise-suppressor-0.4.0.tgz",
|
||||
"integrity": "sha512-vkBEL/VDkbeP3qqSRQFRtPLGa19a38JUzO6J0r5D/MQSumrlERy671DAMaETgY6etXjDCoJcD7JBIaXnuGVtVw==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/sapphi-red"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/estree": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
|
||||
@@ -1343,6 +1354,7 @@
|
||||
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
@@ -1503,6 +1515,7 @@
|
||||
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
|
||||
"devOptional": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
@@ -1517,6 +1530,7 @@
|
||||
"integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.25.0",
|
||||
"fdir": "^6.4.4",
|
||||
@@ -1598,6 +1612,7 @@
|
||||
"resolved": "https://registry.npmjs.org/vue/-/vue-3.5.34.tgz",
|
||||
"integrity": "sha512-WdLBG9gm02OgJIG9axd5Hpx0TFLdzVgfG2evFFu8Rur5O/IoGc5cMjnjh3tPL6GnRGsYvUhBSKVPYVcxRKpMCA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@vue/compiler-dom": "3.5.34",
|
||||
"@vue/compiler-sfc": "3.5.34",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sapphi-red/web-noise-suppressor": "^0.4.0",
|
||||
"pinia": "^3.0.2",
|
||||
"vue": "^3.5.13",
|
||||
"vue-router": "^4.5.1"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { reactive, ref } from "vue";
|
||||
import { RnnoiseWorkletNode, loadRnnoise } from "@sapphi-red/web-noise-suppressor";
|
||||
import rnnoiseSimdWasmUrl from "@sapphi-red/web-noise-suppressor/rnnoise_simd.wasm?url";
|
||||
import rnnoiseWasmUrl from "@sapphi-red/web-noise-suppressor/rnnoise.wasm?url";
|
||||
import rnnoiseWorkletUrl from "@sapphi-red/web-noise-suppressor/rnnoiseWorklet.js?url";
|
||||
import { loadLocalPreferences, saveLocalPreferences } from "../services/local-persistence.js";
|
||||
|
||||
const micCaptureWorkletUrl = "/mic-capture-worklet.js";
|
||||
@@ -45,6 +49,7 @@ export interface MicrophoneProcessingSettings {
|
||||
echoCancellation: boolean | null;
|
||||
noiseSuppression: boolean | null;
|
||||
autoGainControl: boolean | null;
|
||||
rnnoise: boolean | null;
|
||||
}
|
||||
|
||||
type SinkAudioContext = AudioContext & {
|
||||
@@ -156,9 +161,13 @@ export function useVoiceWebSocket() {
|
||||
let workletNode: AudioWorkletNode | null = null;
|
||||
let workletContext: AudioContext | null = null;
|
||||
let workletModulePromise: Promise<void> | null = null;
|
||||
let rnnoiseNode: RnnoiseWorkletNode | null = null;
|
||||
let rnnoiseWorkletModulePromise: Promise<void> | null = null;
|
||||
let rnnoiseWasmPromise: Promise<ArrayBuffer> | null = null;
|
||||
let micSource: MediaStreamAudioSourceNode | null = null;
|
||||
let micGain: GainNode | null = null;
|
||||
let silentGain: GainNode | null = null;
|
||||
let processedMicDestination: MediaStreamAudioDestinationNode | null = null;
|
||||
const accompanimentActive = ref(false);
|
||||
const accompanimentSupported = ref(typeof navigator !== "undefined" && Boolean(navigator.mediaDevices?.getDisplayMedia));
|
||||
const accompanimentErrorCode = ref<"" | "unsupported" | "needsWebRtc" | "noAudio" | "permission">("");
|
||||
@@ -181,6 +190,7 @@ export function useVoiceWebSocket() {
|
||||
echoCancellation: null,
|
||||
noiseSuppression: null,
|
||||
autoGainControl: null,
|
||||
rnnoise: null,
|
||||
});
|
||||
const audioContextState = ref<AudioContextState | "unknown">("unknown");
|
||||
const micLevel = ref(0);
|
||||
@@ -416,6 +426,36 @@ export function useVoiceWebSocket() {
|
||||
await refreshAudioDevices();
|
||||
}
|
||||
|
||||
async function createRnnoiseNode(ctx: AudioContext): Promise<RnnoiseWorkletNode | null> {
|
||||
if (typeof AudioWorkletNode === "undefined" || !ctx.audioWorklet) {
|
||||
microphoneProcessing.rnnoise = false;
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
if (!rnnoiseWasmPromise) {
|
||||
rnnoiseWasmPromise = loadRnnoise({ url: rnnoiseWasmUrl, simdUrl: rnnoiseSimdWasmUrl }).catch((error) => {
|
||||
rnnoiseWasmPromise = null;
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
if (!rnnoiseWorkletModulePromise) {
|
||||
rnnoiseWorkletModulePromise = ctx.audioWorklet.addModule(rnnoiseWorkletUrl).catch((error) => {
|
||||
rnnoiseWorkletModulePromise = null;
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
const [wasmBinary] = await Promise.all([rnnoiseWasmPromise, rnnoiseWorkletModulePromise]);
|
||||
const node = new RnnoiseWorkletNode(ctx, { maxChannels: 1, wasmBinary });
|
||||
microphoneProcessing.rnnoise = true;
|
||||
return node;
|
||||
} catch {
|
||||
// Native browser NS remains active as a fallback. RNNoise is an optional
|
||||
// enhancement and must never prevent a microphone from starting.
|
||||
microphoneProcessing.rnnoise = false;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
async function startMicrophone(): Promise<void> {
|
||||
const ctx = getAudioCtx();
|
||||
if (ctx.state === "suspended") await ctx.resume();
|
||||
@@ -438,6 +478,13 @@ export function useVoiceWebSocket() {
|
||||
micStream = nextStream;
|
||||
|
||||
micSource = ctx.createMediaStreamSource(micStream);
|
||||
rnnoiseNode = await createRnnoiseNode(ctx);
|
||||
const processedSource: AudioNode = rnnoiseNode ?? micSource;
|
||||
if (rnnoiseNode) micSource.connect(rnnoiseNode);
|
||||
processedMicDestination = ctx.createMediaStreamDestination();
|
||||
processedMicDestination.channelCount = 1;
|
||||
processedMicDestination.channelCountMode = "explicit";
|
||||
processedSource.connect(processedMicDestination);
|
||||
micGain = ctx.createGain();
|
||||
micGain.gain.value = inputVolume.value;
|
||||
silentGain = ctx.createGain();
|
||||
@@ -520,7 +567,7 @@ export function useVoiceWebSocket() {
|
||||
scriptNode.onaudioprocess = (event) => handleCaptureChunk(event.inputBuffer.getChannelData(0));
|
||||
}
|
||||
|
||||
micSource.connect(micGain);
|
||||
processedSource.connect(micGain);
|
||||
const captureNode = workletNode ?? scriptNode!;
|
||||
micGain.connect(captureNode);
|
||||
captureNode.connect(silentGain);
|
||||
@@ -580,7 +627,11 @@ export function useVoiceWebSocket() {
|
||||
const destination = ctx.createMediaStreamDestination();
|
||||
destination.channelCount = 1;
|
||||
destination.channelCountMode = "explicit";
|
||||
const microphoneSource = ctx.createMediaStreamSource(micStream);
|
||||
// Use the browser-native processed track plus the browser-side RNNoise
|
||||
// graph. Display/application audio is added separately below and never
|
||||
// passes through this microphone denoiser.
|
||||
const microphoneStream = processedMicDestination?.stream ?? micStream;
|
||||
const microphoneSource = ctx.createMediaStreamSource(microphoneStream);
|
||||
const microphoneGain = ctx.createGain();
|
||||
microphoneGain.gain.value = microphoneMuted.value ? 0 : inputVolume.value;
|
||||
microphoneSource.connect(microphoneGain);
|
||||
@@ -896,17 +947,27 @@ export function useVoiceWebSocket() {
|
||||
workletNode?.port.close();
|
||||
workletNode?.disconnect();
|
||||
micGain?.disconnect();
|
||||
micSource?.disconnect();
|
||||
silentGain?.disconnect();
|
||||
scriptNode = null;
|
||||
workletNode = null;
|
||||
micGain = null;
|
||||
micSource = null;
|
||||
silentGain = null;
|
||||
}
|
||||
|
||||
function stopMicrophoneProcessingGraph(): void {
|
||||
rnnoiseNode?.destroy();
|
||||
rnnoiseNode?.disconnect();
|
||||
rnnoiseNode = null;
|
||||
micSource?.disconnect();
|
||||
processedMicDestination?.disconnect();
|
||||
processedMicDestination?.stream.getTracks().forEach((track) => track.stop());
|
||||
micSource = null;
|
||||
processedMicDestination = null;
|
||||
}
|
||||
|
||||
function stopMicrophone(closeContext = true): void {
|
||||
stopCaptureGraph();
|
||||
stopMicrophoneProcessingGraph();
|
||||
releaseAccompanimentStream();
|
||||
stopWebRtcMix();
|
||||
micStream?.getTracks().forEach((track) => track.stop());
|
||||
@@ -916,6 +977,7 @@ export function useVoiceWebSocket() {
|
||||
audioCtx = null;
|
||||
workletContext = null;
|
||||
workletModulePromise = null;
|
||||
rnnoiseWorkletModulePromise = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
<div v-if="settingsOpen" class="modal-backdrop" @click.self="settingsOpen = false">
|
||||
<section class="settings-modal" role="dialog" aria-modal="true" :aria-labelledby="'settings-title'">
|
||||
<div class="settings-main"><header class="settings-header"><h2 id="settings-title">{{ t('audioConfiguration') }}</h2><button class="round-icon" :title="t('close')" @click="settingsOpen = false"><Icon name="close" :size="19" /></button></header><div class="settings-content">
|
||||
<section class="settings-section"><h3><Icon name="mic" :size="20" /> {{ t('inputDevice') }}</h3><label class="settings-label" for="input-device">{{ t('microphone') }}</label><select id="input-device" class="settings-select" :value="selectedInputDeviceId" :disabled="!inputDevices.length" @change="onInputDeviceChange"><option value="">{{ t('defaultMicrophone') }}</option><option v-for="(device, index) in inputDevices" :key="device.deviceId || `microphone-${index}`" :value="device.deviceId">{{ device.label || t('microphoneNumber', { index: index + 1 }) }}</option></select><p v-if="audioSettingsError" class="settings-error">{{ localizedMessage(audioSettingsError) }}</p><p class="audio-diagnostic"><span>{{ t('permission') }}</span><strong :class="`permission-${audioPermission}`">{{ audioPermission === 'granted' ? t('permissionGranted') : audioPermission === 'denied' ? t('permissionDenied') : t('permissionUnknown') }}</strong></p><div class="mode-note audio-processing-note" aria-live="polite"><Icon name="activity" :size="16" /><span>{{ t('noiseSuppression') }}:{{ processingStateLabel(microphoneProcessing.noiseSuppression) }} · {{ t('echoCancellation') }}:{{ processingStateLabel(microphoneProcessing.echoCancellation) }} · {{ t('autoGainControl') }}:{{ processingStateLabel(microphoneProcessing.autoGainControl) }}</span></div><div class="microphone-control"><div><label class="settings-label">{{ t('microphoneState') }}</label><p class="settings-hint">{{ microphoneMuted ? t('microphoneMutedHint') : t('microphoneActiveHint') }}</p></div><button type="button" class="microphone-toggle" :class="{ muted: microphoneMuted }" :aria-pressed="!microphoneMuted" @click="toggleMicrophone"><Icon :name="microphoneMuted ? 'mic-off' : 'mic'" :size="16" /> {{ microphoneMuted ? t('unmuteMic') : t('muteMic') }}</button></div><div class="settings-range-row"><label class="settings-label">{{ t('inputVolume') }}</label><strong>{{ Math.round(inputVolume * 100) }}%</strong></div><input class="settings-range" type="range" min="0" max="100" :value="inputVolume * 100" :style="rangeStyle(inputVolume, 1)" :aria-label="t('inputVolume')" @input="onInputVolume" /><div class="settings-range-row"><label class="settings-label">{{ t('voxThreshold') }}</label><strong>{{ (voxThreshold * 100).toFixed(1) }}%</strong></div><input class="settings-range" type="range" min="1" max="80" :value="voxThreshold * 1000" :style="rangeStyle(voxThreshold, 0.08)" :aria-label="t('voxThreshold')" @input="onVoxThreshold" /><div class="audio-level-row"><span>{{ t('micLevel') }}</span><strong>{{ Math.round(micLevel * 100) }}%</strong></div><div class="audio-level-track"><i :style="{ width: `${Math.round(micLevel * 100)}%` }"></i></div><div class="mic-test"><div class="mic-test-header"><strong>{{ t('microphoneTest') }}</strong><button type="button" @click="toggleMicTest">{{ microphoneTestActive ? t('stopTest') : t('startTest') }}</button></div><div class="meter"><i v-for="index in 24" :key="index" :class="{ active: microphoneTestActive && index <= micMeterBars }" :style="{ height: `${meterBarHeight(index) }px` }"></i></div><div class="meter-labels"><span>{{ t('silence') }}</span><span>{{ t('optimal') }}</span><span>{{ t('loud') }}</span></div><p class="settings-hint">{{ t('localMicTestHint') }}</p><audio v-if="testAudioUrl" class="test-audio" :src="testAudioUrl" controls :aria-label="t('microphoneTest')"></audio></div></section>
|
||||
<section class="settings-section"><h3><Icon name="mic" :size="20" /> {{ t('inputDevice') }}</h3><label class="settings-label" for="input-device">{{ t('microphone') }}</label><select id="input-device" class="settings-select" :value="selectedInputDeviceId" :disabled="!inputDevices.length" @change="onInputDeviceChange"><option value="">{{ t('defaultMicrophone') }}</option><option v-for="(device, index) in inputDevices" :key="device.deviceId || `microphone-${index}`" :value="device.deviceId">{{ device.label || t('microphoneNumber', { index: index + 1 }) }}</option></select><p v-if="audioSettingsError" class="settings-error">{{ localizedMessage(audioSettingsError) }}</p><p class="audio-diagnostic"><span>{{ t('permission') }}</span><strong :class="`permission-${audioPermission}`">{{ audioPermission === 'granted' ? t('permissionGranted') : audioPermission === 'denied' ? t('permissionDenied') : t('permissionUnknown') }}</strong></p><div class="mode-note audio-processing-note" aria-live="polite"><Icon name="activity" :size="16" /><span>{{ t('noiseSuppression') }}:{{ processingStateLabel(microphoneProcessing.noiseSuppression) }} · {{ t('rnnoise') }}:{{ processingStateLabel(microphoneProcessing.rnnoise) }} · {{ t('echoCancellation') }}:{{ processingStateLabel(microphoneProcessing.echoCancellation) }} · {{ t('autoGainControl') }}:{{ processingStateLabel(microphoneProcessing.autoGainControl) }}</span></div><div class="microphone-control"><div><label class="settings-label">{{ t('microphoneState') }}</label><p class="settings-hint">{{ microphoneMuted ? t('microphoneMutedHint') : t('microphoneActiveHint') }}</p></div><button type="button" class="microphone-toggle" :class="{ muted: microphoneMuted }" :aria-pressed="!microphoneMuted" @click="toggleMicrophone"><Icon :name="microphoneMuted ? 'mic-off' : 'mic'" :size="16" /> {{ microphoneMuted ? t('unmuteMic') : t('muteMic') }}</button></div><div class="settings-range-row"><label class="settings-label">{{ t('inputVolume') }}</label><strong>{{ Math.round(inputVolume * 100) }}%</strong></div><input class="settings-range" type="range" min="0" max="100" :value="inputVolume * 100" :style="rangeStyle(inputVolume, 1)" :aria-label="t('inputVolume')" @input="onInputVolume" /><div class="settings-range-row"><label class="settings-label">{{ t('voxThreshold') }}</label><strong>{{ (voxThreshold * 100).toFixed(1) }}%</strong></div><input class="settings-range" type="range" min="1" max="80" :value="voxThreshold * 1000" :style="rangeStyle(voxThreshold, 0.08)" :aria-label="t('voxThreshold')" @input="onVoxThreshold" /><div class="audio-level-row"><span>{{ t('micLevel') }}</span><strong>{{ Math.round(micLevel * 100) }}%</strong></div><div class="audio-level-track"><i :style="{ width: `${Math.round(micLevel * 100)}%` }"></i></div><div class="mic-test"><div class="mic-test-header"><strong>{{ t('microphoneTest') }}</strong><button type="button" @click="toggleMicTest">{{ microphoneTestActive ? t('stopTest') : t('startTest') }}</button></div><div class="meter"><i v-for="index in 24" :key="index" :class="{ active: microphoneTestActive && index <= micMeterBars }" :style="{ height: `${meterBarHeight(index) }px` }"></i></div><div class="meter-labels"><span>{{ t('silence') }}</span><span>{{ t('optimal') }}</span><span>{{ t('loud') }}</span></div><p class="settings-hint">{{ t('localMicTestHint') }}</p><audio v-if="testAudioUrl" class="test-audio" :src="testAudioUrl" controls :aria-label="t('microphoneTest')"></audio></div></section>
|
||||
<div class="settings-separator"></div><section class="settings-section"><h3><Icon name="volume" :size="20" /> {{ t('outputVolume') }}</h3><label v-if="outputDeviceSupported" class="settings-label" for="output-device">{{ t('outputDevice') }}</label><select v-if="outputDeviceSupported" id="output-device" class="settings-select" :value="selectedOutputDeviceId" :disabled="!outputDevices.length" @change="onOutputDeviceChange"><option value="">{{ t('defaultOutput') }}</option><option v-for="(device, index) in outputDevices" :key="device.deviceId || `speaker-${index}`" :value="device.deviceId">{{ device.label || t('speakerNumber', { index: index + 1 }) }}</option></select><p v-else class="mode-note"><Icon name="info" :size="16" /><span>{{ t('outputDeviceUnsupported') }}</span></p><div class="settings-range-row"><label class="settings-label">{{ t('speakers') }}</label><strong>{{ Math.round(outputVolume * 100) }}%</strong></div><input class="settings-range" type="range" min="0" max="100" :value="outputVolume * 100" :style="rangeStyle(outputVolume, 1)" :aria-label="t('outputVolume')" @input="onOutputVolume" /><div class="settings-range-row"><label class="settings-label">{{ t('notificationVolume') }}</label><strong>{{ Math.round(notificationVolume * 100) }}%</strong></div><input class="settings-range" type="range" min="0" max="100" :value="notificationVolume * 100" :style="rangeStyle(notificationVolume, 1)" :aria-label="t('notificationVolume')" @input="onNotificationVolume" /><div class="audio-diagnostic"><span>{{ t('audioStatus') }}</span><strong>{{ audioContextState === 'running' ? t('audioReady') : audioContextState === 'suspended' ? t('audioSuspended') : t('audioUnknown') }}</strong></div><div class="mode-note"><Icon name="shield" :size="16" /><span>{{ t('audioPrivacy') }}</span></div></section>
|
||||
</div><footer class="settings-footer"><button class="primary-button save-button" @click="settingsOpen = false">{{ t('done') }}</button></footer></div>
|
||||
</section>
|
||||
@@ -678,6 +678,7 @@ const translations: Record<string, Record<string, string>> = {
|
||||
audioSuspended: "音频被浏览器暂停",
|
||||
audioUnknown: "尚未初始化",
|
||||
noiseSuppression: "浏览器降噪",
|
||||
rnnoise: "RNNoise 降噪",
|
||||
echoCancellation: "回声消除",
|
||||
autoGainControl: "自动增益",
|
||||
processingEnabled: "已启用",
|
||||
@@ -951,6 +952,7 @@ const translations: Record<string, Record<string, string>> = {
|
||||
audioSuspended: "Audio paused by the browser",
|
||||
audioUnknown: "Not initialized",
|
||||
noiseSuppression: "Browser noise suppression",
|
||||
rnnoise: "RNNoise suppression",
|
||||
echoCancellation: "Echo cancellation",
|
||||
autoGainControl: "Automatic gain control",
|
||||
processingEnabled: "Enabled",
|
||||
@@ -1227,6 +1229,7 @@ translations.de = {
|
||||
audioSuspended: "Audio wurde vom Browser pausiert",
|
||||
audioUnknown: "Nicht initialisiert",
|
||||
noiseSuppression: "Browser-Geräuschunterdrückung",
|
||||
rnnoise: "RNNoise-Geräuschunterdrückung",
|
||||
echoCancellation: "Echounterdrückung",
|
||||
autoGainControl: "Automatische Verstärkungsregelung",
|
||||
processingEnabled: "Aktiviert",
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
Reference in new issue
Block a user