From 2ed7d2a980cbf0b49b8261d9bdf4d0b8dc514e03 Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Thu, 27 Aug 2026 11:17:35 +0800 Subject: [PATCH] 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. --- .../shinku-chen/audio-compression-trade-offs.md | 9 ++++++++- .../shinku-chen/audio-compression-trade-offs.zh_CN.md | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/experiences/shinku-chen/audio-compression-trade-offs.md b/docs/experiences/shinku-chen/audio-compression-trade-offs.md index 8345533..f187382 100644 --- a/docs/experiences/shinku-chen/audio-compression-trade-offs.md +++ b/docs/experiences/shinku-chen/audio-compression-trade-offs.md @@ -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. diff --git a/docs/experiences/shinku-chen/audio-compression-trade-offs.zh_CN.md b/docs/experiences/shinku-chen/audio-compression-trade-offs.zh_CN.md index 7c4b040..5a2aa7b 100644 --- a/docs/experiences/shinku-chen/audio-compression-trade-offs.zh_CN.md +++ b/docs/experiences/shinku-chen/audio-compression-trade-offs.zh_CN.md @@ -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`)。任何其他解码器都需加入固件。