fix(client): surface audio failures and use adaptive voice activation
Capture and playback failures were only written to the log on detached threads, so a microphone or output that could not be opened still showed a connected voice room with no sound. Threads now report into a shared diagnostics sink that the UI polls: errors appear in the status bar, a room with neither working half is marked failed, and signal counters (captured, sent, received, decoded, input peak) are logged every ten seconds. A microphone that delivers only digital silence is reported, and rejected voice datagrams are logged instead of dropped silently. Voice activation now tracks the background noise floor and opens just above it, capped by a much lower default ceiling; the old fixed threshold (about -26 dBFS) rarely opened for normal speech. Stream configuration only accepts f32 formats and says so when a device offers nothing else. Playback gains a mixing queue for short notification effects.
This commit is contained in:
parent
3b95df9e9c
commit
69d108b090
11 changed files with 777 additions and 97 deletions
|
|
@ -216,6 +216,7 @@
|
|||
"Reconnecting in {delay_secs}s (attempt {attempt})": "Повторное подключение через {delay_secs} с (попытка {attempt})",
|
||||
"Server error: {message}": "Ошибка сервера: {message}",
|
||||
"Microphone error: {e}": "Ошибка микрофона: {e}",
|
||||
"Audio output error: {e}": "Ошибка вывода звука: {e}",
|
||||
"Cannot save audio settings: {error}": "Не удалось сохранить настройки звука: {error}",
|
||||
"Passphrases do not match": "Пароли не совпадают",
|
||||
"Passphrase must be at least 8 characters": "Пароль должен содержать минимум 8 символов",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue