bolar_2 backup
This commit is contained in:
15
assets/README.md
Normal file
15
assets/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# 本地提示音资源
|
||||
|
||||
`prompts/` 中的 OGG 文件是 `firmware2` 自己持有的构建输入,不引用旧
|
||||
`firmware/` 路径。
|
||||
|
||||
构建时 `gen_audio_prompts.py` 会:
|
||||
|
||||
1. 校验每个文件确实是 Ogg/Opus。
|
||||
2. 校验 Ogg page 和跨 page packet 完整性。
|
||||
3. 去掉 `OpusHead` / `OpusTags`。
|
||||
4. 生成 `[帧数][帧长度][Opus 帧]...` 格式的只读 C++ 数据。
|
||||
5. 文件名不属于已知提示音分组时让构建失败。
|
||||
|
||||
生成文件位于构建目录,不提交到源码目录。增加或替换资源后重新执行
|
||||
`idf.py build` 即可。
|
||||
Reference in New Issue
Block a user