feat(client): synthesized notification sounds with settings

Short tones for joining and leaving a voice room, other participants
joining and leaving, new messages outside the viewed chat, mentions,
microphone mute and unmute, deafen and undeafen, server connection and
loss, and errors. The tones are generated at runtime (rising motifs for
arrival or enable, falling for leave or disable) with an attack and a
fade-out so they never click; no third-party audio is bundled.

Inside a voice room the sound is mixed into the open playback stream,
otherwise a short one-shot stream is opened on the selected output device
off the UI thread, capped at two at a time. While deafened nothing plays
except the undeafen sound. Settings: master switch, volume and separate
switches for voice room, messages and mentions, stored with the audio
preferences, with a new settings section and a test button.
This commit is contained in:
Loki 2026-10-25 10:01:38 +01:00
parent bf485720f5
commit eed3e28c63
Signed by: boba
GPG key ID: 253067914055423B
19 changed files with 1142 additions and 4 deletions

View file

@ -271,6 +271,9 @@ msgstr "Join"
msgid "Joining voice…"
msgstr "Joining voice…"
msgid "Joining, leaving, microphone and sound on or off"
msgstr "Joining, leaving, microphone and sound on or off"
msgid "Keep your keys in a safe place to restore your profile on another device."
msgstr "Keep your keys in a safe place to restore your profile on another device."
@ -304,15 +307,24 @@ msgstr "Make Vnox yours."
msgid "Make yourself heard, your way."
msgstr "Make yourself heard, your way."
msgid "Master switch, also covers connection and error tones"
msgstr "Master switch, also covers connection and error tones"
msgid "Members"
msgstr "Members"
msgid "Members — {}"
msgstr "Members — {}"
msgid "Mentions"
msgstr "Mentions"
msgid "Message"
msgstr "Message"
msgid "Messages"
msgstr "Messages"
msgid "Microphone"
msgstr "Microphone"
@ -331,6 +343,9 @@ msgstr "Mute microphone"
msgid "New deliveries stop. Existing messages stay in the channel."
msgstr "New deliveries stop. Existing messages stay in the channel."
msgid "New messages in chats you are not looking at"
msgstr "New messages in chats you are not looking at"
msgid "New passphrase · at least 8 characters"
msgstr "New passphrase · at least 8 characters"
@ -403,6 +418,12 @@ msgstr "Photo"
msgid "Photo crop area. Drag the image to adjust the crop."
msgstr "Photo crop area. Drag the image to adjust the crop."
msgid "Play a test sound"
msgstr "Play a test sound"
msgid "Play sounds"
msgstr "Play sounds"
msgid "Playback volume for voice rooms."
msgstr "Playback volume for voice rooms."
@ -523,6 +544,18 @@ msgstr "Settings for this device"
msgid "Share audio"
msgstr "Share audio"
msgid "Short tones for voice rooms, messages and connection changes. They stay silent while you are deafened."
msgstr "Short tones for voice rooms, messages and connection changes. They stay silent while you are deafened."
msgid "Someone mentions you or everyone"
msgstr "Someone mentions you or everyone"
msgid "Sound volume"
msgstr "Sound volume"
msgid "Sounds"
msgstr "Sounds"
msgid "Speaking"
msgstr "Speaking"
@ -631,6 +664,9 @@ msgstr "Voice input"
msgid "Voice quality"
msgstr "Voice quality"
msgid "Voice room"
msgstr "Voice room"
msgid "Voice rooms"
msgstr "Voice rooms"

View file

@ -203,6 +203,7 @@
"Could not remove photo: {error}": "Не удалось удалить фото: {error}",
"Language": "Язык",
"System default": "Как в системе",
"Default audio device": "По умолчанию (системное)",
"Choose your language. Changes apply immediately.": "Выбери язык. Изменения применяются сразу.",
"{n} participant": [
"{n} участник",
@ -231,7 +232,6 @@
"Idle": "Нет на месте",
"Do not disturb": "Не беспокоить",
"Default": "По умолчанию",
"System default": "По умолчанию (системное)",
"Reply to {}": "Ответ {}",
"Members — {}": "Участники — {}",
"Zoom {}%": "Масштаб {}%",
@ -366,5 +366,17 @@
"Forget this server": "Забыть этот сервер",
"Trust and connect": "Доверять и подключиться",
"Could not save the trusted fingerprint": "Не удалось сохранить доверенный отпечаток",
"Server forgotten. Connect again to review its fingerprint.": "Сервер забыт. Подключись снова, чтобы проверить его отпечаток."
"Server forgotten. Connect again to review its fingerprint.": "Сервер забыт. Подключись снова, чтобы проверить его отпечаток.",
"Sounds": "Звуки",
"Short tones for voice rooms, messages and connection changes. They stay silent while you are deafened.": "Короткие сигналы для голосовых комнат, сообщений и смены состояния связи. Пока звук выключен, они молчат.",
"Play sounds": "Воспроизводить звуки",
"Master switch, also covers connection and error tones": "Общий переключатель, включая сигналы связи и ошибок",
"Voice room": "Голосовая комната",
"Joining, leaving, microphone and sound on or off": "Вход, выход, микрофон и включение или выключение звука",
"Messages": "Сообщения",
"New messages in chats you are not looking at": "Новые сообщения в чатах, которые вы сейчас не смотрите",
"Mentions": "Упоминания",
"Someone mentions you or everyone": "Вас или всех упомянули",
"Sound volume": "Громкость звуков",
"Play a test sound": "Проверить звук"
}

View file

@ -272,6 +272,9 @@ msgstr "Войти"
msgid "Joining voice…"
msgstr "Подключение к голосовой комнате…"
msgid "Joining, leaving, microphone and sound on or off"
msgstr "Вход, выход, микрофон и включение или выключение звука"
msgid "Keep your keys in a safe place to restore your profile on another device."
msgstr "Сохрани ключи в безопасном месте, чтобы восстановить профиль на другом устройстве."
@ -305,15 +308,24 @@ msgstr "Сделай Vnox своим."
msgid "Make yourself heard, your way."
msgstr "Голос должен звучать так, как тебе удобно."
msgid "Master switch, also covers connection and error tones"
msgstr "Общий переключатель, включая сигналы связи и ошибок"
msgid "Members"
msgstr "Участники"
msgid "Members — {}"
msgstr "Участники — {}"
msgid "Mentions"
msgstr "Упоминания"
msgid "Message"
msgstr "Написать"
msgid "Messages"
msgstr "Сообщения"
msgid "Microphone"
msgstr "Микрофон"
@ -332,6 +344,9 @@ msgstr "Выключить микрофон"
msgid "New deliveries stop. Existing messages stay in the channel."
msgstr "Новые доставки прекратятся. Отправленные сообщения останутся в канале."
msgid "New messages in chats you are not looking at"
msgstr "Новые сообщения в чатах, которые вы сейчас не смотрите"
msgid "New passphrase · at least 8 characters"
msgstr "Новый пароль · минимум 8 символов"
@ -404,6 +419,12 @@ msgstr "Фото"
msgid "Photo crop area. Drag the image to adjust the crop."
msgstr "Область фото. Перетаскивай изображение, чтобы изменить кадрирование."
msgid "Play a test sound"
msgstr "Проверить звук"
msgid "Play sounds"
msgstr "Воспроизводить звуки"
msgid "Playback volume for voice rooms."
msgstr "Общий уровень воспроизведения голосовых комнат."
@ -524,6 +545,18 @@ msgstr "Настройки этого устройства"
msgid "Share audio"
msgstr "Звук демонстрации"
msgid "Short tones for voice rooms, messages and connection changes. They stay silent while you are deafened."
msgstr "Короткие сигналы для голосовых комнат, сообщений и смены состояния связи. Пока звук выключен, они молчат."
msgid "Someone mentions you or everyone"
msgstr "Вас или всех упомянули"
msgid "Sound volume"
msgstr "Громкость звуков"
msgid "Sounds"
msgstr "Звуки"
msgid "Speaking"
msgstr "Говорит"
@ -543,7 +576,7 @@ msgid "Stop watching"
msgstr "Закрыть просмотр"
msgid "System default"
msgstr "По умолчанию (системное)"
msgstr "Как в системе"
msgid "System output"
msgstr "Системный звук"
@ -632,6 +665,9 @@ msgstr "Передача голоса"
msgid "Voice quality"
msgstr "Качество голоса"
msgid "Voice room"
msgstr "Голосовая комната"
msgid "Voice rooms"
msgstr "Голосовые комнаты"