diff --git a/docs/README.de.md b/docs/README.de.md index a9c600b..ef236cc 100644 --- a/docs/README.de.md +++ b/docs/README.de.md @@ -137,6 +137,7 @@ Relay deaktivieren und speichern, um die Option von der Willkommensseite zu entf | Version | Datum | Zusammenfassung | | --- | --- | --- | +| Unveröffentlicht | — | Russische und japanische Oberfläche mit sprachabhängigen Begrüßungsvorlagen ergänzt; Desktop-Audiosteuerung verbessert und Geräuschunterdrückung in das Mikrofon-Popover verschoben. | | [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 2026-09-13 | Verbindungsfehler auf der Willkommensseite verbessert, Fehlercodes erhalten und sicher gekürzt sowie IPv6-Ziele standardmäßig unterstützt. | | [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | 2026-09-10 | Passwortabfrage, dedizierter Relay-Modus, Auswahl mehrerer Relays und Ursachendarstellung in der Administration ergänzt. | | [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | 2026-09-08 | Docker-Bereitstellung vereinfacht, lokale TeamSpeak-Ziele unterstützt, 15-Sekunden-Timeout ergänzt und kontinuierliche Netzwerküberwachung eingeführt. | diff --git a/docs/README.en.md b/docs/README.en.md index 14d468d..2a1d12f 100644 --- a/docs/README.en.md +++ b/docs/README.en.md @@ -137,6 +137,7 @@ Disable and save the relay configuration to remove the relay option from the wel | Version | Date | Summary | | --- | --- | --- | +| Unreleased | — | Added Russian and Japanese UI with per-language welcome templates; refined desktop audio controls and moved noise suppression into the microphone popover. | | [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 2026-09-13 | Improved welcome-page connection errors, preserved and safely truncated error codes, and added default IPv6 target support. | | [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | 2026-09-10 | Added server-password prompts, formal relay mode, multiple relay selection, and administrator connection-reason reporting. | | [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | 2026-09-08 | Simplified Docker deployment, supported local TeamSpeak targets, added a 15-second connection timeout, and made network monitoring continuous. | diff --git a/docs/README.ja.md b/docs/README.ja.md index 2317388..138adb8 100644 --- a/docs/README.ja.md +++ b/docs/README.ja.md @@ -98,6 +98,7 @@ npm start | バージョン | 内容 | | --- | --- | +| 開発中 | ロシア語・日本語 UI と言語別のウェルカムテンプレートを追加。デスクトップ音声操作を改善し、ノイズ抑制をマイクのポップオーバーへ移動しました。 | | [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 接続エラー表示を改善し、IPv6 接続先を標準対応しました。 | | [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | パスワード案内、正式な中継モード、複数中継選択、接続診断を追加しました。 | | [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | Docker 起動を簡略化し、15秒の接続タイムアウトと継続的なネットワーク監視を追加しました。 | diff --git a/docs/README.ru.md b/docs/README.ru.md index b3f4ac8..e19e67f 100644 --- a/docs/README.ru.md +++ b/docs/README.ru.md @@ -98,6 +98,7 @@ npm start | Версия | Изменения | | --- | --- | +| В разработке | Добавлены русский и японский интерфейсы с отдельными шаблонами приветствия; улучшено управление звуком на компьютере, а шумоподавление перенесено во всплывающее меню микрофона. | | [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | Улучшены ошибки на странице входа и добавлена поддержка IPv6-целей по умолчанию. | | [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | Добавлены подсказки пароля, режим ретранслятора, выбор нескольких узлов и диагностика подключений. | | [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | Упрощён Docker-запуск, добавлен тайм-аут подключения 15 секунд и непрерывный сетевой мониторинг. | diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md index a40fb8c..e8d67b1 100644 --- a/docs/README.zh-CN.md +++ b/docs/README.zh-CN.md @@ -137,6 +137,7 @@ docker run -d --name webspeak-relay --restart unless-stopped --network host \ | 版本 | 日期 | 摘要 | | --- | --- | --- | +| 未发布 | — | 增加俄语、日语界面和按语言独立配置的欢迎词;优化桌面音频控制,降噪开关移至麦克风悬浮菜单。 | | [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 2026-09-13 | 优化首页连接错误显示,保留并安全截断错误代码;默认支持 IPv6 TeamSpeak 目标。 | | [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | 2026-09-10 | 增加服务器密码提示、正式中继部署模式、多中继选择和管理员日志原因显示。 | | [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | 2026-09-08 | 简化 Docker 部署,支持同机 TeamSpeak,增加 15 秒连接超时和持续网络监测。 | diff --git a/web/src/composables/useVoiceWebSocket.ts b/web/src/composables/useVoiceWebSocket.ts index 05742e8..76b3284 100644 --- a/web/src/composables/useVoiceWebSocket.ts +++ b/web/src/composables/useVoiceWebSocket.ts @@ -299,6 +299,7 @@ export function useVoiceWebSocket() { let testRecorder: MediaRecorder | null = null; let testRecorderTimer: ReturnType | null = null; const microphoneMuted = ref(false); + const noiseSuppressionEnabled = ref(true); const inputVolume = ref(1); const outputVolume = ref(1); const outputMuted = ref(false); @@ -343,6 +344,7 @@ export function useVoiceWebSocket() { preferredInputDeviceId: selectedInputDeviceId.value, inputDeviceId: selectedInputDeviceId.value, microphoneMuted: microphoneMuted.value, + noiseSuppressionEnabled: noiseSuppressionEnabled.value, voxThreshold: voxThreshold.value, inputGain: inputVolume.value, outputVolume: outputVolume.value, @@ -363,6 +365,7 @@ export function useVoiceWebSocket() { void loadLocalPreferences().then((preferences) => { if (!selectedInputDeviceId.value) selectedInputDeviceId.value = preferences.preferredInputDeviceId ?? preferences.inputDeviceId ?? ""; if (typeof preferences.microphoneMuted === "boolean") microphoneMuted.value = preferences.microphoneMuted; + if (typeof preferences.noiseSuppressionEnabled === "boolean") noiseSuppressionEnabled.value = preferences.noiseSuppressionEnabled; if (typeof preferences.voxThreshold === "number") voxThreshold.value = clamp(preferences.voxThreshold, 0.001, 0.08); if (typeof preferences.inputGain === "number") inputVolume.value = Math.max(0, Math.min(1, preferences.inputGain)); if (typeof preferences.outputVolume === "number") outputVolume.value = Math.max(0, Math.min(1, preferences.outputVolume)); @@ -536,7 +539,7 @@ export function useVoiceWebSocket() { sampleRate: { ideal: 48000 }, channelCount: { ideal: 1 }, echoCancellation: true, - noiseSuppression: true, + noiseSuppression: noiseSuppressionEnabled.value, // Keep the microphone's natural dynamics. Browser AGC can make speech // pump in volume, especially while background noise changes. autoGainControl: false, @@ -648,7 +651,8 @@ export function useVoiceWebSocket() { micStream = nextStream; micSource = ctx.createMediaStreamSource(micStream); - rnnoiseNode = await createRnnoiseNode(ctx); + rnnoiseNode = noiseSuppressionEnabled.value ? await createRnnoiseNode(ctx) : null; + if (!noiseSuppressionEnabled.value) microphoneProcessing.rnnoise = false; const processedSource: AudioNode = rnnoiseNode ?? micSource; if (rnnoiseNode) micSource.connect(rnnoiseNode); processedMicDestination = ctx.createMediaStreamDestination(); @@ -1951,6 +1955,21 @@ export function useVoiceWebSocket() { void saveAudioPreferences(); } + async function setNoiseSuppressionEnabled(enabled: boolean): Promise { + if (noiseSuppressionEnabled.value === enabled) return; + const shouldRestartWebRtc = webrtcActive.value && Boolean(ws.value); + noiseSuppressionEnabled.value = enabled; + void saveAudioPreferences(); + if (!micStream) return; + try { + if (shouldRestartWebRtc) stopWebRtcTransport(); + await startMicrophone(); + if (shouldRestartWebRtc && ws.value) await startWebRtcTransport(connectionSequence, ws.value); + } catch (error) { + setMicrophoneError(error); + } + } + function setOutputVolume(volume: number): void { outputVolume.value = Math.max(0, Math.min(1, volume)); applyOutputVolume(); @@ -1981,6 +2000,7 @@ export function useVoiceWebSocket() { serverEvents, pokeNotifications, microphoneMuted, + noiseSuppressionEnabled, inputVolume, outputVolume, outputMuted, @@ -2007,6 +2027,7 @@ export function useVoiceWebSocket() { accompanimentErrorCode, setVolume, setInputVolume, + setNoiseSuppressionEnabled, setOutputVolume, toggleOutputMute, setVoxThreshold, diff --git a/web/src/services/local-persistence.ts b/web/src/services/local-persistence.ts index 7cc7c2b..0580c93 100644 --- a/web/src/services/local-persistence.ts +++ b/web/src/services/local-persistence.ts @@ -34,6 +34,7 @@ export interface LocalPreferences { locale?: "auto" | "zh-CN" | "en"; theme?: "system" | "light" | "dark"; microphoneMuted?: boolean; + noiseSuppressionEnabled?: boolean; voxThreshold?: number; language?: "zh" | "en" | "de" | "ru" | "ja"; preferredInputDeviceId?: string; diff --git a/web/src/views/WebClient.vue b/web/src/views/WebClient.vue index c82dbae..16da79f 100644 --- a/web/src/views/WebClient.vue +++ b/web/src/views/WebClient.vue @@ -215,12 +215,23 @@
{{ t('noMatchingMembers') }}