Skip to content

About

🛠️ 自定义 Windows 开关机提示音效 轻量级服务 支持 Win10/11 | Lightweight service for custom startup/shutdown sounds on Windows

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Win Custom Boot Sounds

License: MIT Windows 10+

为 Windows 添加自定义开关机提示音的轻量级解决方案,通过 Windows 服务实现稳定播放。

✨ 功能特性

  • 开机自动播放自定义提示音(≤8秒)
  • 关机时完整播放提示音(≤8秒)
  • 无 GUI 后台服务运行
  • 一键安装/卸载脚本
  • 使用 .NET 9.0

⚡ 快速开始

安装步骤

  1. 在 Release 下载最新版本压缩包,解压
  2. (可选)复制你要自定义的 wav 音频文件到解压后的目录,更改文件名为 startup.wav(开机) 和 shutdown.wav(关机),自带的是雨林木风的经典提示音
  3. 右键点击安装脚本 install.bat,以管理员身份运行,如果成功会自动播放开机音,音量注意

卸载服务

  1. 右键点击 uninstall.bat,以管理员身份运行

🛠️ 技术细节

  • 运行机制:Windows 服务监听系统事件
  • 播放模式:同步播放确保完整性
  • 服务名称:SoundService
  • 音频位置:C:\Sounds\ 目录
  • 日志查看:Windows 事件查看器 -> Windows 日志 -> 应用程序

⚠️ 注意事项

  1. 必须使用管理员权限运行安装/卸载脚本
  2. 音频格式要求:
    • WAV 格式(16位PCM)
    • 时长 ≤8秒
    • 采样率建议 44100Hz 或更低
  3. 测试开机音:net start SoundService

🤝 贡献指南

欢迎提交 PR!建议改进方向:

  • 支持 MP3 等其他格式转换
  • 创建图形化配置界面

自行编译

  1. 需要安装 .NET 9.0 SDK
  2. 克隆本仓库,进入目录,恢复安装依赖并构建
dotnet restore
dotnet publish -c Release -r win-x64 --self-contained true

项目自带的提示音出处

还原雨林木风、番茄花园等盗版 Windows XP 系统的使用体验(x)

  • startup.wav: Falcom 《双星物语》 - おやすみ
  • shutdown.wav: Wolf Team 《Tales of Phantasia》 - Contract
  • startup2.wav: Bandari - 《Moonglow(月光水岸)》

About

🛠️ 自定义 Windows 开关机提示音效 轻量级服务 支持 Win10/11 | Lightweight service for custom startup/shutdown sounds on Windows

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages