0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

fireflyROC-RK3308B主板CC固件簡(jiǎn)介

firefly ? 來源:firefly ? 作者:firefly ? 2019-12-19 17:09 ? 次閱讀
Amazon Alexa
參考固件

固件:ROC-RK3308B-CC Alexa

Amazon授權(quán)

使用 Alexa Voice Service,首先你需要注冊(cè)一個(gè)Amazon賬號(hào),向 Amazon 注冊(cè)你的產(chǎn)品,并對(duì)你的 alexa client 進(jìn)行授權(quán)。

第一步,按照官方指導(dǎo),仔細(xì)的按照步驟,注冊(cè)你的產(chǎn)品,并創(chuàng)建安全配置文件。

第二步,得到你的 Client ID 和 Product ID

獲取 Product ID:

獲取 Client ID:

使用流程

注意:Alexa Voice Service 不支持中文。

● 上電開機(jī),如果沒有配置網(wǎng)絡(luò),先進(jìn)行配網(wǎng)。

● 將上面獲得的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"},

● 執(zhí)行下面命令啟動(dòng) Alexa

SampleApp /oem/AlexaClientSDKConfig.json /oem/resources/

● 第一次啟動(dòng)需要進(jìn)行認(rèn)證授權(quán),按提示打開對(duì)應(yīng)網(wǎng)頁,輸入驗(yàn)證碼進(jìn)行認(rèn)證即可

################################### NOT YET AUTHORIZED #################################################################################################################################### To authorize, browse to: 'https://amazon.com/us/code' and enter the code: AT4HLU ################################################################################################################################################### Checking for authorization (1)... ##################################################

● 認(rèn)證過程中,稍等幾分鐘后,就可以與 Alexa 進(jìn)行對(duì)話,可通過呼叫“alexa”喚醒,不過大部分交互體驗(yàn)都要通過命令行引導(dǎo)。

+----------------------------------------------------------------------------+|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 沒有自啟動(dòng)入口,需要進(jìn)入系統(tǒng)后自己手動(dòng)啟動(dòng)Alexa,方法如上一節(jié)。如果需要自啟動(dòng),則可以參考DuerOS。

編譯方法

● 編譯之前,亦可將上面獲得的Client ID 和 Product ID填入SDK/device/rockchip/rk3308/alexa/AlexaClientSDKConfig.json的deviceInfo屬性,這樣固件就默認(rèn)的帶有了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"},

● 甚至可以從已經(jīng)認(rèn)證過的設(shè)備中,拷貝/oem/application-necessities/cblAuthDelegate.db到SDK中device/rockchip/rk3308/alexa/application-necessities/cblAuthDelegate.db,這樣Alexa就會(huì)跳過認(rèn)證,直接開始對(duì)話。

● 編輯 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

進(jìn)入圖形選擇界面,輸入/,跳出搜索界面如下,輸入BR2_PACKAGE_ALEXACLIENTSDK,按回車進(jìn)行搜索

選擇[1],然后按空格選擇上alexaclientsdk

前面有[*]號(hào),表示已經(jīng)選上,然后保存,并退出圖形界面,輸入配置保存命令:

make savedefconfig

保存配置,不保存的話,會(huì)在一鍵編譯腳本中被重置

● 在編譯前,如果當(dāng)前倉庫不是第一次編譯,需要執(zhí)行:

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

● 最后全部編譯

./build.sh

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • 嵌入式主板
    +關(guān)注

    關(guān)注

    7

    文章

    6081

    瀏覽量

    34942
  • Firefly
    +關(guān)注

    關(guān)注

    2

    文章

    538

    瀏覽量

    6930
  • RK3308
    +關(guān)注

    關(guān)注

    1

    文章

    39

    瀏覽量

    1047
收藏 人收藏

    評(píng)論

    相關(guān)推薦

    fireflyROC-RK3308B-CC固件編譯工具簡(jiǎn)介

    Docker鏡像內(nèi)配置好了編譯SDK所需的依賴環(huán)境,無需在本地配置編譯環(huán)境,進(jìn)入對(duì)應(yīng)的docker容器內(nèi)進(jìn)行SDK編譯即可。 目前暫時(shí)只支持ROC-RK3308B-CC Buildroot SDK
    的頭像 發(fā)表于 12-20 09:30 ?1893次閱讀

    fireflyROC-RK3308B主板CC固件編譯簡(jiǎn)介

    固件編譯 準(zhǔn)備工作 開發(fā)環(huán)境搭建 除了系統(tǒng)要求外,還有其他軟硬方面的要求。
    的頭像 發(fā)表于 12-20 09:10 ?1526次閱讀

    fireflyROC-RK3308B-CC--啟動(dòng)模式說明

    ROC-RK3308B-CC 有著非常靈活的啟動(dòng)方式。一般情況下,除非硬件損壞,ROC-RK3308B-CC 主板是不會(huì)變磚的。
    的頭像 發(fā)表于 12-20 09:20 ?2795次閱讀

    fireflyROC-RK3308B主板CC升級(jí)固件簡(jiǎn)介

    本文介紹了如何將主機(jī)上的固件文件,通過 USB Type-C 線,燒寫到開發(fā)板的emmc閃存中。
    的頭像 發(fā)表于 12-20 09:29 ?1829次閱讀

    fireflyROC-RK3308B主板CC教程簡(jiǎn)介

    確認(rèn)主板配件連接無誤后,通過 USB Type-C 線給 ROC-RK3308B-CC 供電。
    的頭像 發(fā)表于 12-20 09:32 ?2233次閱讀

    Core 3308Y固件ROC RK3308B CC PLUS Buildroot NoUI

    電子發(fā)燒友網(wǎng)站提供《Core 3308Y固件ROC RK3308B CC PLUS Buildroot NoUI.txt》資料免費(fèi)下載
    發(fā)表于 09-13 10:01 ?1次下載
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b> PLUS Buildroot NoUI

    Core 3308Y固件ROC RK3308B CC PLUS Buildroot MiniGUI

    電子發(fā)燒友網(wǎng)站提供《Core 3308Y固件ROC RK3308B CC PLUS Buildroot MiniGUI.txt》資料免費(fèi)下載
    發(fā)表于 09-13 10:00 ?3次下載
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b> PLUS Buildroot MiniGUI

    ROC RK3308B CC PLUS Buildroot QT Desktop固件

    電子發(fā)燒友網(wǎng)站提供《ROC RK3308B CC PLUS Buildroot QT Desktop固件.txt》資料免費(fèi)下載
    發(fā)表于 09-13 10:08 ?0次下載
    ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b> PLUS Buildroot QT Desktop<b class='flag-5'>固件</b>

    Core 3308Y ROC RK3308B CC PLUS Ubuntu Minimal固件

    電子發(fā)燒友網(wǎng)站提供《Core 3308Y ROC RK3308B CC PLUS Ubuntu Minimal固件.txt》資料免費(fèi)下載
    發(fā)表于 09-13 09:55 ?0次下載
    Core <b class='flag-5'>3308</b>Y ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b> PLUS Ubuntu Minimal<b class='flag-5'>固件</b>

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

    電子發(fā)燒友網(wǎng)站提供《Core 3308Y固件ROC RK3308B CC PLUS Ubuntu Desktop固件.txt》資料免費(fèi)下載
    發(fā)表于 09-13 09:53 ?0次下載
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b> PLUS Ubuntu Desktop<b class='flag-5'>固件</b>

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

    電子發(fā)燒友網(wǎng)站提供《Core 3308Y固件ROC RK3308B CC PLUS支持Docker固件.txt》資料免費(fèi)下載
    發(fā)表于 09-13 09:52 ?10次下載
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b> PLUS支持Docker<b class='flag-5'>固件</b>

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

    電子發(fā)燒友網(wǎng)站提供《Core 3308Y固件ROC RK3308B CC Buildroot NoUI固件.txt》資料免費(fèi)下載
    發(fā)表于 09-13 09:51 ?0次下載
    Core <b class='flag-5'>3308</b>Y<b class='flag-5'>固件</b>ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b> Buildroot NoUI<b class='flag-5'>固件</b>

    ROC RK3308B CC Buildroot Qt Desktop固件

    電子發(fā)燒友網(wǎng)站提供《ROC RK3308B CC Buildroot Qt Desktop固件.txt》資料免費(fèi)下載
    發(fā)表于 09-13 09:49 ?0次下載
    ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b> Buildroot Qt Desktop<b class='flag-5'>固件</b>

    IoT四核64位開源主板ROC RK3308B CC規(guī)格書

    電子發(fā)燒友網(wǎng)站提供《IoT四核64位開源主板ROC RK3308B CC規(guī)格書.pdf》資料免費(fèi)下載
    發(fā)表于 09-13 09:35 ?1次下載
    IoT四核64位開源<b class='flag-5'>主板</b>ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b>規(guī)格書

    四核64位開源主板ROC RK3308B CC Plus規(guī)格書

    電子發(fā)燒友網(wǎng)站提供《四核64位開源主板ROC RK3308B CC Plus規(guī)格書.pdf》資料免費(fèi)下載
    發(fā)表于 09-13 09:33 ?0次下載
    四核64位開源<b class='flag-5'>主板</b>ROC <b class='flag-5'>RK3308B</b> <b class='flag-5'>CC</b> Plus規(guī)格書