微雪电子ROC-RK3308主板CC-Amazon Alexa简介

amazon alexa
参考固件
固件:roc-rk3308-cc alexa
amazon授权
使用 alexa voice service,首先你需要注册一个amazon账号,向 amazon 注册你的产品,并对你的 alexa client 进行授权。
第一步,按照官方指导,仔细的按照步骤,注册你的产品,并创建安全配置文件。
第二步,得到你的 client id 和 product id
获取 product id:
获取 client id:
使用流程
注意:alexa voice service 不支持中文。
● 上电开机,如果没有配置网络,先进行配网。
● 将上面获得的client id 和 product id填入 /oem/alexaclientsdkconfig.json的deviceinfo属性:
deviceinfo:{ // unique device serial number. e.g. 123456 deviceserialnumber:123456, // the client id of the product from developer.amazon.com clientid:your_client_id, // product id from developer.amazon.com productid:your_product_id },
● 执行下面命令启动 alexa
sampleapp /oem/alexaclientsdkconfig.json /oem/resources/
● 第一次启动需要进行认证授权,按提示打开对应网页,输入验证码进行认证即可
################################## # not yet authorized # ################################## ################################################################################################ # to authorize, browse to: 'https://amazon.com/us/code' and enter the code: at4hlu # ################################################################################################ ################################################# # checking for authorization (1)... # #################################################
● 认证过程中,稍等几分钟后,就可以与 alexa 进行对话,可通过呼叫“alexa”唤醒,不过大部分交互体验都要通过命令行引导。
+----------------------------------------------------------------------------+ | options: | | wake word: | | simply say alexa and begin your query. | | tap to talk: | | press 't' and enter followed by your query (no need for the 'alexa').| | hold to talk: | | press 'h' followed by enter to simulate holding a button. | | then say your query (no need for the 'alexa'). | | press 'h' followed by enter to simulate releasing a button. | | stop an interaction: | | press 's' and enter to stop an ongoing interaction. | | privacy mode (microphone off): | | press 'm' and enter to turn on and off the microphone. | | echo spatial perception (esp): this is for testing purpose only! | | press 'e' followed by enter at any time to adjust esp settings. | | playback controls: | | press '1' for a 'play' button press. | | press '2' for a 'pause' button press. | | press '3' for a 'next' button press. | | press '4' for a 'previous' button press. | | settings: | | press 'c' followed by enter at any time to see the settings screen. | | speaker control: | | press 'p' followed by enter at any time to adjust speaker settings. | | firmware version: | | press 'f' followed by enter at any time to report a different | | firmware version. | | info: | | press 'i' followed by enter at any time to see the help screen. | | reset device: | | press 'k' followed by enter at any time to reset your device. this | | will erase any data stored in the device and you will have to | | re-register your device. | | this option will also exit the application. | | reauthorize device: | | press 'z' followed by enter at any time to re-authorize your device. | | this will erase any data stored in the device and initiate | | re-authorization. | | quit: | | press 'q' followed by enter at any time to quit the application. | +----------------------------------------------------------------------------+
资源
alexa 源码目录:
sdk/external/alexaclientsdk/
buildroot 的 alexa package 目录:
sdk/buildroot/package/rockchip/alexaclientsdk/
alexa 没有自启动入口,需要进入系统后自己手动启动alexa,方法如上一节。如果需要自启动,则可以参考dueros。
编译方法
● 编译之前,亦可将上面获得的client id 和 product id填入sdk/device/rockchip/rk3308/alexa/alexaclientsdkconfig.json的deviceinfo属性,这样固件就默认的带有了client id 和 product id信息。
deviceinfo:{ // unique device serial number. e.g. 123456 deviceserialnumber:123456, // the client id of the product from developer.amazon.com clientid:your_client_id, // product id from developer.amazon.com productid:your_product_id },
● 甚至可以从已经认证过的设备中,拷贝/oem/application-necessities/cblauthdelegate.db到sdk中device/rockchip/rk3308/alexa/application-necessities/cblauthdelegate.db,这样alexa就会跳过认证,直接开始对话。
● 编辑 device/rockchip/rk3308/boardconfig.mk 文件,将 oem_path=oem 修改为 oem_path=alexa,保存退出
● 配置 firefly_rk3308_release
source buildroot/build/envsetup.sh
选择[1],按回车,配置成功后如下
● buildroot配置:br2_package_alexaclientsdk
make menuconfig
进入图形选择界面,输入 /,跳出搜索界面如下,输入br2_package_alexaclientsdk,按回车进行搜索
选择[1],然后按空格选择上 alexa client sdk
前面有 [ * ] 号,表示已经选上,然后保存,并退出图形界面,输入配置保存命令:
make savedefconfig
保存配置,不保存的话,会在一键编译脚本中被重置
● 在编译前,如果当前仓库不是第一次编译,需要执行:
make gst1-plugins-good-reconfigure && make gst1-plugins-good-rebuild
● 最后全部编译
./build.sh

苹果iPhone7将搭载A10处理器,照片曝光
甘肃:加快智能电网建设,推进能源供给侧结构性改革
联想ThinBook Plus亮相 配备10.8英寸墨水屏售价约合人民币8400元
5G未来的网络一定是一个平台它的核心是走向2B走向各行各业的应用
如何确定超声波流量计中的飞行时间值
微雪电子ROC-RK3308主板CC-Amazon Alexa简介
探究关于μC/OS—II的嵌入式构件系统设计
高智能测土配方施肥仪的应用促进了农业的进一步发展
电缆直径和电缆流过电流计算以及对照表分享
艾讯科技推出最新主板--IMB700 ATX 尺寸的解决方案
韩国芯片库存增幅创下6年多来最大;医疗机器人赛道受资本追逐
eWisetech:一加7 Pro的90Hz三星流体屏占成本四分之一
迷你系统天花板 英特尔蝰蛇峡谷NUC12 评测
5.5G即将商用,通信走向万兆时代
uln2803应用电路
惠威M300有源客厅音箱评测 能不能成为新一代经典
PlayStation Phone手机原型机
我国氢动力船舶创新发展研究
纳芯微汽车级CAN接口芯片助力汽车控制智能化
基于GPRS技术的PLC远程通信应用