feat: 配乐改用即梦生成音频文件,双曲目可选
- 新增 bgm/ 目录:bell.m4a(晨钟)/ valley.m4a(空山),96k AAC - 配乐开关升级为曲 select(关/晨钟/空山),移动端走底部面板 - Web Audio 合成引擎整体移除,改 <audio> 循环 + 手动淡入淡出 - 目标音量 0.25,压在人声之下;旧布尔偏好迁移为"晨钟" - deploy.sh 同步 bgm/ 目录;run.md 同步说明 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
+10
-3
@@ -13,7 +13,7 @@
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<meta name="apple-mobile-web-app-title" content="经典诵读">
|
||||
<link rel="stylesheet" href="style.css?v=9">
|
||||
<link rel="stylesheet" href="style.css?v=10">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -61,8 +61,15 @@
|
||||
</div>
|
||||
<div class="tool-group" role="group" aria-label="模式">
|
||||
<button type="button" id="btn-loop" class="layout-btn" aria-pressed="false">循环</button>
|
||||
<button type="button" id="btn-bgm" class="layout-btn" aria-pressed="false">配乐</button>
|
||||
<button type="button" id="btn-night" class="layout-btn" aria-pressed="false">夜间</button>
|
||||
<div class="field-pair">
|
||||
<label class="tool-name" for="bgm-select">配乐</label>
|
||||
<select id="bgm-select" aria-label="背景音乐">
|
||||
<option value="" selected>关</option>
|
||||
<option value="bell">晨钟</option>
|
||||
<option value="valley">空山</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="field-pair">
|
||||
<label class="tool-name" for="timer-select">定时</label>
|
||||
<select id="timer-select" aria-label="定时停止">
|
||||
@@ -109,6 +116,6 @@
|
||||
</footer>
|
||||
|
||||
<audio id="audio" preload="auto"></audio>
|
||||
<script src="app.js?v=10"></script>
|
||||
<script src="app.js?v=12"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user