<!---
# Copyright (c) 2021 Syntiant Corp. All rights reserved.
# Contact at http://www.syntiant.com
#
# This software is available to you under a choice of one of two licenses.
# You may choose to be licensed under the terms of the GNU General Public
# License (GPL) Version 2, available from the file LICENSE in the main
# directory of this source tree, or the OpenIB.org BSD license below. Any
# code involving Linux software will require selection of the GNU General
# Public License (GPL) Version 2.
#
# OPENIB.ORG BSD LICENSE
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
-->
# syntiant-uilib
This package contains the Syntiant NDP10x Micro Interface Library
(uILib).
The uILib is governed by a dual copyright license affixed to each of
the source files and in the prefix comment of this file.
The version number of the uILib is stored in the
`syntiant_ilib/syntiant_ndp_ilib_version.h` file and is also compiled
into the library object code itself to be retrieved through the
defined-interface for the library.
The uILib uses 'uILib log files' generated from the full Syntiant NDP
uILib to configure the NDP10x device with firmware. The full Syntiant
NDP uILib and the capacity to generate new uILib firmware log files is
not included in the uILib distribution. However, several example log
files are included to permit exercise of NDP10x devices with the uILib.
## The uILib
The library itself is in a single source file
`syntiant_ndp10x_micro.c` with the interface header file in
`syntiant_ilib/syntiant_ndp10x_micro.h`.
The supplied `Makefile` can build a statically-linked (`.a`) or
dynamically-linked (`.so`) library object for the uILib.
Alternatively, the `syntiant_ndp10x_micro.c` C file or the generated
`syntiant_ndp10x_micro.o` object file can simply be integrated into
the client system's build process.
## The `ndp10x_micro_app` Sample Program
The package also contains a sample program `ndp10x_micro_app.c`
intended to run on a Syntiant NDP9101B0-EVL evaluation system. It can
be used as a reference for other clients.
The `uilib-logs` directory contains 3 uILib firmware log files to
allow exercise of an NDP10x device from the `ndp10x_micro_app`:
* alexa_spi.bin -- initializes the NDP10x to recognize the trigger
word 'Alexa' with PCM audio input over the device SPI interface
* spi_to_pdm0.bin -- switches the audio input from the SPI interface
to the pdm0 microphone
* pdm0_to_spi.bin -- switches the audio input from the pdm0 microphone
to the SPI interface
The ILib CLI script used to create these firmware log files is also in
the `uilib-logs` directory named `ndp10x_micro_app_logs.txt`
The `ndp10x_micro_app` sample can be tested on a single channel,
16-bit, 16K samples/second PCM audio input file to show recognition on
the NDP device:
```
$ make ndp10x_micro_app
. . .
$ ./ndp10x_micro_app -l uilib-logs/alexa_spi.bin -P alexa.raw
Loading log from uilib-logs/alexa_spi.bin
butest passed
Polling for keyword indefinitely
2021-08-26 14:53:13 match -> alexa
$
```
This will watch for Alexa from the pdm0 microphone for 30 seconds recording
the PCM audio to `alexa_watch30.raw` and create a WAV format file
`alexa_watch30.wav` using the `sox` command:
```
$ ndp10x_micro_app -l alexa_spi.bin,spi_to_pdm0.bin -p alexa_watch30.raw -D 30
Loading log from alexa_spi.bin
Loading log from spi_to_pdm0.bin
butest passed
Watching for keyword for the next 30 seconds
2021-08-27 09:38:41 match -> alexa
2021-08-27 09:38:45 match -> alexa
2021-08-27 09:38:48 match -> alexa
$ sox -r 16k -b 16 -e signed-integer -c 1 alexa_watch30.raw alexa_watch30.wav
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
包含Arduino工程文件、Edge Impulse上训练得到的NN固件,以及下载脚本,内有README。仅供参考、学习使用,代码请注意遵循的License,不保证效果、不保证复现。文章参见:https://blog.csdn.net/weixin_46422143/article/details/125528750
资源详情
资源评论
资源推荐
收起资源包目录
基于Syntiant TinyML Board与Edge Impulse的LED语音控制的工程文件 (232个子文件)
0ae52b51b07909fa696d509a2df0f30431ba01 171B
0e16a144405df7860b5f50a4c260b4993df7fd 465B
1daccc639a896a38c15d6b84ac635c4c364c67 2KB
2206497f2ebb3643295f752216d31d5269da14 490B
31615a66a6744469a188207500f50944f04eea 1KB
32888a32d758c6ef36ce345d90dd4cb89d0589 1KB
3fd98c1d127b6158018f43fe22d63567a1f3b2 490B
64d45119a716e13fb211a3f0f32acea8aa5d60 162B
6b5c33c57165fcddc11ba755d256e5908f00a6 130B
74549421ba69b519074a6918a823cceb728217 1KB
74b95899d8b7689cffe0281076902649ccdad7 920B
7a935e9696f930f8bc0b89b7eac695d08d8acf 131B
8b2331306147a7a35e544a6cb6e54596ae1d66 1KB
9856af8065adeed7e34e2ab4b5be3acd0bc372 2KB
9cb22f8494b9fcae286b344255485ce6cc660a 468B
update_libraries_windows.bat 7KB
flash_windows.bat 3KB
arduino-win-build.bat 3KB
ei_model.bin 297KB
Syntiant-tinyml-funpack.ino.with_bootloader.bin 107KB
firmware.ino.with_bootloader.bin 107KB
Syntiant-tinyml-funpack.ino.bin 99KB
firmware.ino.bin 99KB
qcbor_decode.c 49KB
qcbor_encode.c 27KB
syntiant_ndp10x_micro.c 24KB
ieee754.c 23KB
i2s.c 22KB
tc.c 19KB
gclk.c 15KB
UsefulBuf.c 11KB
pinmux.c 10KB
wdt.c 8KB
tc_interrupt.c 6KB
system.c 4KB
interrupt_sam_nvic.c 3KB
interrupt_sam_nvic.c 3KB
c7063256f82afd8e1f06e94594851efd28b9b3 12KB
.clang-format 4KB
flash_mac.command 2KB
COMMIT_EDITMSG 28B
config 417B
syntiant.cpp 36KB
USBCore.cpp 22KB
NDP_loadModel.cpp 20KB
ei_fusion.cpp 19KB
sensor_aq.cpp 16KB
SerialFlashChip.cpp 16KB
ei_syntiant_fs_commands.cpp 14KB
ei_at_server.cpp 13KB
ei_device_syntiant_samd.cpp 13KB
SerialFlashDirectory.cpp 11KB
ei_sampler.cpp 11KB
SGM41512.cpp 9KB
repl.cpp 9KB
NDP.cpp 6KB
NDP_SPI.cpp 6KB
ei_sample_storage.cpp 5KB
at_base64_lib.cpp 5KB
NDP_PMU.cpp 5KB
ei_setup.cpp 4KB
ei_inertialsensor.cpp 4KB
sensor_aq_mbedtls_hs256.cpp 4KB
AudioUSB.cpp 3KB
JPEGENC.cpp 3KB
ei_classifier_porting.cpp 3KB
ei_at_parser.cpp 2KB
ei_device_lib.cpp 2KB
ei_at_server_singleton.cpp 723B
description 73B
Doxyfile 102KB
Syntiant-tinyml-funpack.ino.elf 2.84MB
exclude 240B
ndp10x_flash.exe 1017KB
FETCH_HEAD 0B
.gitignore 55B
.gitignore 4B
qcbor.h 114KB
jpeg.h 97KB
UsefulBuf.h 65KB
tc.h 55KB
clock_feature.h 46KB
i2s.h 41KB
mrecursion.h 39KB
compiler.h 37KB
parts.h 36KB
system.h 22KB
mrepeat.h 22KB
pinmux.h 21KB
wdt.h 17KB
at_cmds.h 16KB
ei_config.h 14KB
syntiant_ndp10x_micro.h 14KB
system_interrupt.h 13KB
at_cmd_interface.h 12KB
AudioUSB.h 11KB
ei_device_info_lib.h 11KB
SerialFlash_directwrite.h 9KB
gclk.h 8KB
system_interrupt_features.h 7KB
共 232 条
- 1
- 2
- 3
KafCoppelia
- 粉丝: 196
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 微信小程序毕业设计-基于SSM的电影交流小程序【代码+论文+PPT】.zip
- 微信小程序毕业设计-基于SSM的食堂线上预约点餐小程序【代码+论文+PPT】.zip
- 锐捷交换机的堆叠,一个大问题
- 微信小程序毕业设计-基于SSM的校园失物招领小程序【代码+论文+PPT】.zip
- MATLAB《结合萨克拉门托模型和遗传算法为乐安河流域建立一个水文过程预测模型》+项目源码+文档说明
- 基于人工神经网络/随机森林/LSTM的径流预测项目
- 微信小程序毕业设计-基于SSM的驾校预约小程序【代码+论文+PPT】.zip
- Aspose.Words 18.7 版本 Word转成PDF无水印
- 微信小程序毕业设计-基于Python的摄影竞赛小程序【代码+论文+PPT】.zip
- PCS7 Drive ES APL V9.1
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0