0
  • 聊天消息
  • 系统消息
  • 评论与回复
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心

完善资料让更多小伙伴认识你,还能领取20积分哦,立即完善>

3天内不再提示

fireflyROC-RK3308B主板CC固件简介

firefly 来源:firefly 作者:firefly 2019-12-19 17:09 次阅读
Amazon Alexa
参考固件

固件:ROC-RK3308B-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 needforthe'Alexa').||Hold to talk:||Press'h'followed by Enter to simulate holding a button.||Then say your query(no needforthe'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 isfortesting purpose only!||Press'e'followed by Enter at anytimeto adjust ESP settings.||Playback Controls:||Press'1'fora'PLAY'button press.||Press'2'fora'PAUSE'button press.||Press'3'fora'NEXT'button press.||Press'4'fora'PREVIOUS'button press.||Settings:||Press'c'followed by Enter at anytimeto see the settings screen.||Speaker Control:||Press'p'followed by Enter at anytimeto adjust speaker settings.||Firmware Version:||Press'f'followed by Enter at anytimeto report a different||firmware version.||Info:||Press'i'followed by Enter at anytimeto see thehelpscreen.||Reset device:||Press'k'followed by Enter at anytimeto reset your device. This||will erase any data stored in the device and you will have to||re-register your device.||This option will alsoexitthe application.||Reauthorize device:||Press'z'followed by Enter at anytimeto re-authorize your device.||This will erase any data stored in the device and initiate||re-authorization.||Quit:||Press'q'followed by Enter at anytimeto 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

sourcebuildroot/build/envsetup.sh

选择[1],按回车,配置成功后如下

● Buildroot配置:BR2_PACKAGE_ALEXACLIENTSDK

make menuconfig

进入图形选择界面,输入/,跳出搜索界面如下,输入BR2_PACKAGE_ALEXACLIENTSDK,按回车进行搜索

选择[1],然后按空格选择上alexaclientsdk

前面有[*]号,表示已经选上,然后保存,并退出图形界面,输入配置保存命令:

make savedefconfig

保存配置,不保存的话,会在一键编译脚本中被重置

● 在编译前,如果当前仓库不是第一次编译,需要执行:

makegst1-plugins-good-reconfigure&&makegst1-plugins-good-rebuild

● 最后全部编译

./build.sh

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
  • 嵌入式主板
    +关注

    关注

    7

    文章

    6063

    浏览量

    34596
  • Firefly
    +关注

    关注

    2

    文章

    534

    浏览量

    6752
  • RK3308
    +关注

    关注

    1

    文章

    39

    浏览量

    925
收藏 人收藏

    评论

    相关推荐

    ROC-RK3308主板CC固件编译的知识点解析,绝对实用

    ROC-RK3308主板CC固件编译的知识点解析,绝对实用
    发表于 03-09 07:29

    firefly RK3308开发板ROC-RK3308-CC四核64位AIOT主板规格

    ROC-RK3308-CC 四核64位AIOT主板
    的头像 发表于 11-03 11:08 4293次阅读
    firefly <b class='flag-5'>RK3308</b>开发板ROC-<b class='flag-5'>RK3308-CC</b>四核64位AIOT<b class='flag-5'>主板</b>规格

    fireflyROC-RK3308B主板CC固件编译简介

    固件编译 准备工作 开发环境搭建 除了系统要求外,还有其他软硬方面的要求。
    的头像 发表于 12-20 09:10 1309次阅读

    fireflyROC-RK3308B-CC--启动模式说明

    ROC-RK3308B-CC 有着非常灵活的启动方式。一般情况下,除非硬件损坏,ROC-RK3308B-CC 主板是不会变砖的。
    的头像 发表于 12-20 09:20 2520次阅读

    fireflyROC-RK3308B主板CC升级固件简介

    本文介绍了如何将主机上的固件文件,通过 USB Type-C 线,烧写到开发板的emmc闪存中。
    的头像 发表于 12-20 09:29 1527次阅读

    fireflyROC-RK3308B主板CC教程简介

    确认主板配件连接无误后,通过 USB Type-C 线给 ROC-RK3308B-CC 供电。
    的头像 发表于 12-20 09:32 1954次阅读

    微雪电子RK3308主板CC启动模式介绍

    ROC-RK3308-CC 有着非常灵活的启动方式。一般情况下,除非硬件损坏,ROC-RK3308-CC 主板是不会变砖的。
    的头像 发表于 12-23 15:47 2030次阅读

    微雪电子RK3308主板CC上手介绍

    确认主板配件连接无误后,通过 USB Type-C 线给 ROC-RK3308-CC 供电。
    的头像 发表于 12-23 15:50 1962次阅读

    Core 3308Y固件ROC RK3308B CC PLUS Buildroot NoUI

    电子发烧友网站提供《Core 3308Y固件ROC RK3308B CC PLUS Buildroot NoUI.txt》资料免费下载
    发表于 09-13 10:01 1次下载
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308</b>B <b class='flag-5'>CC</b> PLUS Buildroot NoUI

    Core 3308Y固件ROC RK3308B CC PLUS Buildroot MiniGUI

    电子发烧友网站提供《Core 3308Y固件ROC RK3308B CC PLUS Buildroot MiniGUI.txt》资料免费下载
    发表于 09-13 10:00 3次下载
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308</b>B <b class='flag-5'>CC</b> PLUS Buildroot MiniGUI

    ROC RK3308B CC PLUS Buildroot QT Desktop固件

    电子发烧友网站提供《ROC RK3308B CC PLUS Buildroot QT Desktop固件.txt》资料免费下载
    发表于 09-13 10:08 0次下载
    ROC <b class='flag-5'>RK3308</b>B <b class='flag-5'>CC</b> PLUS Buildroot QT Desktop<b class='flag-5'>固件</b>

    Core 3308Y固件ROC RK3308B CC PLUS Ubuntu Desktop固件

    电子发烧友网站提供《Core 3308Y固件ROC RK3308B CC PLUS Ubuntu Desktop固件.txt》资料免费下载
    发表于 09-13 09:53 0次下载
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308</b>B <b class='flag-5'>CC</b> PLUS Ubuntu Desktop<b class='flag-5'>固件</b>

    Core 3308Y固件ROC RK3308B CC PLUS支持Docker固件

    电子发烧友网站提供《Core 3308Y固件ROC RK3308B CC PLUS支持Docker固件.txt》资料免费下载
    发表于 09-13 09:52 10次下载
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308</b>B <b class='flag-5'>CC</b> PLUS支持Docker<b class='flag-5'>固件</b>

    Core 3308Y固件ROC RK3308B CC Buildroot NoUI固件

    电子发烧友网站提供《Core 3308Y固件ROC RK3308B CC Buildroot NoUI固件.txt》资料免费下载
    发表于 09-13 09:51 0次下载
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308</b>B <b class='flag-5'>CC</b> Buildroot NoUI<b class='flag-5'>固件</b>

    ROC RK3308B CC Buildroot Qt Desktop固件

    电子发烧友网站提供《ROC RK3308B CC Buildroot Qt Desktop固件.txt》资料免费下载
    发表于 09-13 09:49 0次下载
    ROC <b class='flag-5'>RK3308</b>B <b class='flag-5'>CC</b> Buildroot Qt Desktop<b class='flag-5'>固件</b>