Fix HF README: add YAML frontmatter, update tree/C++ section to prebuilt-only layout
Browse files1231 unmodified line5678910114 unmodified lines161718192021222324252627282930313233343520 unmodified lines565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112210 unmodified lines133134135136# openWakeWord.AXERA[openWakeWord](https://github.com/dscripka/openWakeWord) 语音唤醒 AXERA 推理 demo。1 unmodified line## 功能- 支持 AX650 和 AX630C;- 支持 Python 和 C++ 板端推理;## 目录结构4 unmodified lines│ └── 630C/ # AX630C axmodel├── config/ # STFT/mel 权重├── audio/openwakeword/├── scripts/ # Python 推理代码├── cpp/ # C++ 源码、编译和运行脚本└── README.md```## Python```bash创建虚拟环境conda create -n OpenWakeWord python=3.10conda activate OpenWakeWord安装 [pyaxengine](https://github.com/AXERA-TECH/pyaxengine/releases/latest):pip install axengine-x.x.x-py3-none-any.whlpip install -r requirements.txt20 unmodified lines--output outputs/openwakeword_ax630c.json```## C++### 编译环境AX650 和 AX630C 共用 Arm GNU 9.2 AArch64 交叉编译器:<https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz>```bashmkdir -p cpp/toolchainswget -P cpp/toolchains \https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xztar -xf cpp/toolchains/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz \-C cpp/toolchains```BSP SDK 下载地址:| 平台 | BSP SDK || --- | --- || AX650 | <https://github.com/ZHEQIUSHUI/assets/releases/download/ax_3.6.2/msp_50_3.10.2.zip> || AX630C | <https://github.com/ZHEQIUSHUI/assets/releases/download/ax_3.6.2/msp_20e_3.0.0.zip> |下载并整理到 `cpp/toolchains/`:```bashbash cpp/download_bsp.sh all```### 交叉编译```bashexport TOOLCHAIN_ROOT="cpp/toolchains/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu"bash cpp/build_ax650.shbash cpp/build_ax630c.sh```编译结果:```textcpp/bin/openwakeword_ax650cpp/bin/openwakeword_ax630c```### 板端批量测试AX650:```bashTHRESHOLD=0.5 bash cpp/run_batch_openwakeword_ax650.sh```AX630C:```bashTHRESHOLD=0.5 bash cpp/run_batch_openwakeword_ax630c.sh```结果分别写入 `outputs/cpp_ax650_batch/` 和 `outputs/cpp_ax630c_batch/`。详细 C++ 说明见 `cpp/README.md`。## 参考10 unmodified lines(峰值窗口实测 0.005 / 0.79);本版本改用包含 TTS 唤醒词正样本的校准集(高响应窗口采样),峰值窗口得分恢复到 0.97 / 1.00(alexa/mycroft/timer 保持 1.0)。校准与编译配方见 https://github.com/AXERA-TECH/openWakeWord.AXERA/pull/1 。123456789101112131415161 unmodified line181920212223244 unmodified lines2930313233343536373839404142434445464748495051525320 unmodified lines747576777879808182838485868788899091929394959697989910010110210310410510610710810911011110 unmodified lines122123124---language:- enlicense: apache-2.0pipeline_tag: audio-classificationtags:- keyword-spotting- wake-word- axera- ax650- ax630c---# openWakeWord.AXERA[openWakeWord](https://github.com/dscripka/openWakeWord) 语音唤醒 AXERA 推理 demo。1 unmodified line## 功能- 支持 AX650 和 AX630C;- 支持 Python SDK 和 C++ 预编译二进制;## 目录结构4 unmodified lines│ └── 630C/ # AX630C axmodel├── config/ # STFT/mel 权重├── audio/openwakeword/├── scripts/ # Python SDK├── cpp/│ ├── bin/ # C++ 预编译二进制(ax650 / ax630c)│ └── run_*.sh # 板端运行脚本└── README.md```C++ 源码、构建脚本与 BSP 下载脚本在 GitHub 仓库:<https://github.com/AXERA-TECH/openWakeWord.AXERA>(HuggingFace 仅发布预编译产物。)## Python```bash# 创建虚拟环境conda create -n OpenWakeWord python=3.10conda activate OpenWakeWord# 安装 pyaxengine(https://github.com/AXERA-TECH/pyaxengine/releases/latest)pip install axengine-x.x.x-py3-none-any.whlpip install -r requirements.txt20 unmodified lines--output outputs/openwakeword_ax630c.json```## C++(预编译二进制)板端直接使用 `cpp/bin/` 下的预编译二进制,无需交叉编译。AX650:```bashLD_LIBRARY_PATH=<BSP_LIB_DIR> cpp/bin/openwakeword_ax650 \--models-dir models/650 \--mel-weights config/openwakeword_mel_weights.bin \--audio audio/openwakeword/alexa_test.wav \--threshold 0.5```AX630C:```bashLD_LIBRARY_PATH=<BSP_LIB_DIR> cpp/bin/openwakeword_ax630c \--models-dir models/630C \--mel-weights config/openwakeword_mel_weights.bin \--audio audio/openwakeword/alexa_test.wav \--threshold 0.5```也可以使用仓库内的批量运行脚本:```bashTHRESHOLD=0.5 bash cpp/run_batch_openwakeword_ax650.sh # AX650THRESHOLD=0.5 bash cpp/run_batch_openwakeword_ax630c.sh # AX630C```结果分别写入 `outputs/cpp_ax650_batch/` 和 `outputs/cpp_ax630c_batch/`。详细 C++ 说明见 `cpp/README.md`。## 参考10 unmodified lines(峰值窗口实测 0.005 / 0.79);本版本改用包含 TTS 唤醒词正样本的校准集(高响应窗口采样),峰值窗口得分恢复到 0.97 / 1.00(alexa/mycroft/timer 保持 1.0)。校准与编译配方见 https://github.com/AXERA-TECH/openWakeWord.AXERA/pull/1 。
README.md+40-52