docs(experiences): clarify codec analysis used the 3MB baseline

- Label the 3 MB (0x300000) voicefs partition in the audio-compression trade-offs doc as the value in place at the time of analysis.
- State that the final shipped configuration uses the Opus decoder with a 0x210000, 0x5F0000 (~5.94 MB) partition, aligning the doc with the actual partitions.csv and closing the gap with the voice-guide, which already describes this partition.
This commit is contained in:
Shinku committed 2026-08-27 11:17:35 +08:00
1 parent e1309cfeec
commit 2ed7d2a980
2 files changed
+11 -2

No files matched your search

@@ -55,6 +55,11 @@ A full tool was not needed in the final build: the previous IMA-ADPCM encoder
(`encode_voice.py`) and its legacy comparison document remain in the fork as the
recorded decision history, and the Opus path is the shipped implementation.
The analysis above is against the 3 MB (`0x300000`) partition that was in place
at the time. The final shipped configuration keeps the Opus decoder and uses a
`0x210000, 0x5F0000` (~5.94 MB) `voicefs` partition, so the playable capacity
exceeds the 3 MB numbers used here.
## Detailed measurement
The full measurement that informed the choice, so the numbers above can be
@@ -63,7 +68,9 @@ taken as data rather than claims.
### Scope and measurement basis
- Target: ESP32-C3, 8 MB flash, no PSRAM, ESP-IDF 5.5.3.
- Data partition: `voicefs`, 3 MB (`0x300000`), SPIFFS, mounted at `/voices`.
- Data partition: `voicefs`, 3 MB (`0x300000`) at the time of this analysis,
SPIFFS, mounted at `/voices`. (The final shipped partition is `0x210000,
0x5F0000`, ~5.94 MB; see the decision below.)
- Source set measured: the current `assets/project` (38 directories, 1557 clips,
~4598 s of audio). All clips are mp3/ogg/wav; they are decoded, low-passed,
silence-trimmed, then encoded.
@@ -39,6 +39,8 @@
最终构建并不需要完整工具链:旧的 IMA-ADPCM 编码器(`encode_voice.py`)与之前的对比文档保留在 fork 作为已记录的决策历史,Opus 路径则是实际交付的实现。
上面的分析针对的是当时使用的 3 MB(`0x300000`)分区。最终交付配置保留 Opus 解码器,并使用 `0x210000, 0x5F0000`(约 5.94 MB)的 `voicefs` 分区,因此实际可播放容量高于此处使用的 3 MB 数字。
## 详细测量
支撑选型的完整测量数据,让上面的数字可以作为数据看待而不是断言。
@@ -46,7 +48,7 @@
### 范围与测量基准
- 目标:ESP32-C3,8 MB flash,无 PSRAM,ESP-IDF 5.5.3。
- 数据分区:`voicefs`,3 MB(`0x300000`),SPIFFS,挂载于 `/voices`。
- 数据分区:`voicefs`,本次分析时的 3 MB(`0x300000`),SPIFFS,挂载于 `/voices`。(最终交付分区为 `0x210000, 0x5F0000`,约 5.94 MB,见下文决策。)
- 实测素材集:当前 `assets/project`(38 个目录,1557 段,约 4598 秒音频)。全部为 mp3/ogg/wav,先解码、低通、剪静音,再编码。
- 固件当前以**软件解码 IMA-ADPCM 4bit**(`main/voice_app.c`)。任何其他解码器都需加入固件。