找回密码
 立即注册

QQ登录

只需一步,快速开始

打印 上一主题 下一主题
开启左侧

[M55M1] NPU Keyword Spotting Inference

[复制链接]
跳转到指定楼层
楼主
admin 发表于 2026-8-14 14:43:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Application
This example code uses M55M1 NPU to demonstrate machine learning keyword spotting on the Zephyr platform.
BSP Version
M55M1_Series_BSP_CMSIS_V3.01.003
Hardware
NuMaker-X-M55M1D

This example demonstrates one keyword spotting (KWS) inference application that recognizes the presence of a keyword in a recording on Nuvoton's Ethos-U NPU platform. Its source comes from Arm’s ML embedded evaluation kit/Keyword Spotting example, which has more information on the keyword spotting application.

This example mainly consists of:

  • Recording audio clip through digital microphone (DMIC)
  • Running keyword spotting inference using the TensorFlow Lite Micro framework and the Ethos-U NPU. This will involve three steps:
    • Preprocess recorded audio clip to specified input tensor format for inference.
    • Run keyword spotting inference.
    • Postprocess output tensor format usable by external applications.

This example runs a model DS-CNN Medium INT8 that has been downloaded from the Arm Model Zoo. Then this model is optimized using the Vela compiler to be runnable and accelerated on the Ethos-U NPU platform.

Vela takes a .tflite file as input and produces another .tflite file as output, where the operators supported by Ethos-U have been replaced by an Ethos-U custom operator. In an ideal case the complete model network would be replaced by a single Ethos-U custom operator.

You can download the sample code at EC_M55M1_Zephyr_ML_KWS_V1.00.


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 顶 踩
牛卧堂
回复

使用道具 举报

沙发
匿名  发表于 2026-8-21 10:09:20
“本示例展示了一个关键词识别(KWS)推理应用,该应用能够在录音中识别特定关键词的存在,并运行于新唐的 Ethos-U NPU 平台上。其源代码源自 Arm 的 ML 嵌入式评估套件/关键词识别示例,该套件中包含了更多关于关键词识别应用的详细信息。 本示例主要包含以下内容: 通过数字麦克风(DMIC)录制音频片段。 使用 TensorFlow Lite Micro 框架和 Ethos-U NPU 运行关键词识别推理。这主要涉及三个步骤: 将录制的音频片段预处理为指定的输入张量(Tensor)格式,以供推理使用。 运行关键词识别推理。 对输出张量格式进行后处理,使其可被外部应用程序使用。 本示例运行的是从 Arm Model Zoo 下载的 DS-CNN Medium INT8 模型。随后,该模型会使用 Vela 编译器进行优化,以便在 Ethos-U NPU 平台上运行并实现硬件加速。 Vela 编译器以 .tflite 文件作为输入,并生成另一个 .tflite 文件作为输出。在此过程中,Ethos-U 支持的算子(Operators)会被替换为 Ethos-U 自定义算子。在理想情况下,整个模型网络会被替换为单个 Ethos-U 自定义算子。 您可以在 EC_M55M1_Zephyr_ML_KWS_V1.00 下载示例代码。”
回复 支持 反对

使用道具

板凳
匿名  发表于 2026-8-21 10:09:50
“本示例展示了一个关键词识别(KWS)推理应用,该应用能够在录音中识别特定关键词的存在,并运行于新唐的 Ethos-U NPU 平台上。其源代码源自 Arm 的 ML 嵌入式评估套件/关键词识别示例,该套件中包含了更多关于关键词识别应用的详细信息。
本示例主要包含以下内容:
通过数字麦克风(DMIC)录制音频片段。
使用 TensorFlow Lite Micro 框架和 Ethos-U NPU 运行关键词识别推理。这主要涉及三个步骤:
将录制的音频片段预处理为指定的输入张量(Tensor)格式,以供推理使用。
运行关键词识别推理。
对输出张量格式进行后处理,使其可被外部应用程序使用。
本示例运行的是从 Arm Model Zoo 下载的 DS-CNN Medium INT8 模型。随后,该模型会使用 Vela 编译器进行优化,以便在 Ethos-U NPU 平台上运行并实现硬件加速。
Vela 编译器以 .tflite 文件作为输入,并生成另一个 .tflite 文件作为输出。在此过程中,Ethos-U 支持的算子(Operators)会被替换为 Ethos-U 自定义算子。在理想情况下,整个模型网络会被替换为单个 Ethos-U 自定义算子。
您可以在 EC_M55M1_Zephyr_ML_KWS_V1.00 下载示例代码。”
回复 支持 反对

使用道具

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU