# 新增聊天通知音效包

**URL:** <https://meta.discourse.org/t/new-chat-notification-sound-packs/410644>\
**Category:** Announcements\
**Tags:** notifications, chat\
**Created:** [2026年八月21日 17:31 UTC](https://meta.discourse.org/t/new-chat-notification-sound-packs/410644 "2026-08-21T17:31:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2026年八月21日 17:31 UTC](https://meta.discourse.org/t/new-chat-notification-sound-packs/410644/1 "2026-08-21T17:31:12Z")

</div>

我们对聊天通知音效进行了全面升级，灵感来自我们在 [Resenha](https://meta.discourse.org/t/resenha-add-discord-style-video-and-voice-rooms-to-your-community/389056) 中利用 Web Audio API 进行的实验。

桌面端聊天通知此前仅提供两种选项，对于 Discourse 来说显得有些过时。我们已将其替换为五款全新的实时合成音效包：

- **经典纯净**
- **柔和马林巴**
- **复古 8 位**
- **趣味气泡**
- **空灵玻璃**

每个音效包都包含 **针对普通接收消息和提及的不同声音** ，因此你可以一听便知（好吧，是一听便知）是有人在关注的话题中发帖，还是直接在与你对话。此外，由于这些声音是即时合成而非作为音频文件分发的，用户也少下载了一个二进制文件。

你可以在 **[偏好设置 → 聊天 → 桌面聊天通知音效](https://meta.discourse.org/my/preferences/notifications)** 中选择你的音效包，并直接在选择器中预览每一个。喜欢安静？“无”选项依然存在。

## Resenha 同步更新

虽然这一功能受 Resenha 启发，但我们现在已回过头来，将新的 Discourse 聊天音效包扩展到了 [Resenha](https://meta.discourse.org/t/resenha-add-discord-style-video-and-voice-rooms-to-your-community/389056) 本身。我们让它也遵循相同的设置，因此它现在也附带了符合聊天音效包模式的声音！

## 亲自听听

在下面的交互式预览中，你可以并排体验所有音效包——聊天通知和 Resenha 提示音：

https://codepen.io/editor/Rafael-dos-Santos-Silva-the-styleful/embed/preview/01a02546-ab35-7493-b086-4c7e72a57516?default-tab=result&theme-id=dark

告诉我们你最喜欢哪个音效包！如果你对未来音效包有想法，我们洗耳恭听。👂

---

<div class="post-metadata">

**Author:** ![one1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/one1/32/493591_2.png) [@one1](https://meta.discourse.org/u/one1)\
**Post date:** [2026年八月22日 05:02 UTC](https://meta.discourse.org/t/new-chat-notification-sound-packs/410644/2 "2026-08-22T05:02:47Z")

</div>

今天才知道聊天通知可以带声音！

有没有计划在设置界面中添加声音预览播放功能？我觉得这算是比较标准的 UI 设计。

感谢你们在这方面的努力。

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2026年八月22日 05:09 UTC](https://meta.discourse.org/t/new-chat-notification-sound-packs/410644/3 "2026-08-22T05:09:56Z")

</div>

在偏好设置页面中，当你选择一个包时，它们会播放一个预览。

---

<div class="post-metadata">

**Author:** ![one1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/one1/32/493591_2.png) [@one1](https://meta.discourse.org/u/one1)\
**Post date:** [2026年八月22日 05:26 UTC](https://meta.discourse.org/t/new-chat-notification-sound-packs/410644/4 "2026-08-22T05:26:22Z")

</div>

哦，确实有！我不确定第一次尝试时出了什么问题。

谢谢！

---

<div class="post-metadata">

**Author:** ![ducks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ducks/32/518975_2.png) [@ducks](https://meta.discourse.org/u/ducks)\
**Post date:** [2026年八月24日 16:18 UTC](https://meta.discourse.org/t/new-chat-notification-sound-packs/410644/6 "2026-08-24T16:18:09Z")

</div>

你好 @one1，和你一样，我之前也没注意到点击选择时会播放声音，所以我合并了一个改进此处用户体验的 PR。现在，当选中某个声音时，聊天通知声音选择器旁边会显示一个小播放按钮。点击该按钮即可重新播放该声音。

 ![chat-sound-preview](https://global.discourse-cdn.com/meta/original/4X/4/e/e/4eede0e7bb1b2306fbd788445ec783dbaadfcd97.png)

> <https://github.com/discourse/discourse/pull/42807>
>
> Selecting a sound already plays it once, but replaying the current selection mea…nt switching away and back. A play button next to the dropdown replays it on demand; it is hidden while no sound is selected.
> 
> \<img width="361" height="176" alt="chat-sound-preview" src="https://github.com/user-attachments/assets/8a32a85e-4b49-4d50-95e7-de9cb05a86d1" /\>
