Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Make Your Raspberry Pi into Alexa Device

Make Your Raspberry Pi into Alexa Device

Alexa for Device Maker

Ryan Chung

March 07, 2019

Transcript

29 slides
  1. Alexa for Device – [email protected] Alexa for Device Makers 為你的設備加上AI對話式介面

    Ryan Chung III Digital Education Institute 1 Source: developer.amazon.com
  2. Alexa for Device – [email protected] 為什麼要加上對話式介面 • 利用已成熟發展的Amazon Alexa技術 •

    提供使用者更自然、更直接接觸的互動體驗 2 Source:normfeuticartoons.com
  3. Alexa for Device – [email protected] 兩種建立方式 • 內建 (alexa built-in)

    – 裝置本身直接內建Amazon Alexa – Alexa Voice Service • 連接 (works with alexa) – 使用者必須同時擁有Amazon Alexa裝置 – Alexa Connected Devices 3
  4. Alexa for Device – [email protected] 常見應用裝置 4 音響喇叭 與 擴大機

    耳機 汽車面板 各式電子零件 攝影機 / 視訊鏡頭 電燈開關
  5. Alexa for Device – [email protected] 設定帳號與產品資訊 • 建立 Amazon Developer帳號

    – 右上角 Sign In – 然後點擊Create your Amazon Developer account 6 https://developer.amazon.com
  6. Alexa for Device – [email protected] 設定帳號與產品資訊 • 點擊 CREATE NEW

    PROFILE 14 https://developer.amazon.com/alexa/console/avs/securityProfile
  7. Alexa for Device – [email protected] 設定帳號與產品資訊 • 切換至 Other devices

    and platforms • 輸入Client ID name,按下 GENERATE ID • 產生完成後,下方 I agree打勾、按下FINISH 16 https://developer.amazon.com/alexa/console/avs/securityProfile
  8. Alexa for Device – [email protected] Lab:利用樹莓派結合Alexa Device SDK • 硬體準備

    – Raspberry Pi 3 – 8/16/32GB microSD Card – USB Mic – 3.5mm compatible earbuds or speaker 18
  9. Alexa for Device – [email protected] 下載 AVS Device SDK •

    sudo apt-get upgrade • wget https://raw.githubusercontent.com/alexa/avs- device-sdk/master/tools/Install/setup.sh \wget https://raw.githubusercontent.com/alexa/avs- device-sdk/master/tools/Install/genConfig.sh \wget https://raw.githubusercontent.com/alexa/avs- device-sdk/master/tools/Install/pi.sh 20
  10. Alexa for Device – [email protected] Download your credentials • 回到Amazon

    Developer開發站 • Alexa Voice Service -> Product • Product Details -> Security Profile • Other devices and platforms • DOWNLOAD • 下載至 home/pi 資料夾中 21
  11. Alexa for Device – [email protected] Build the AVS Device SDK

    • cd /home/pi • sudo bash setup.sh config.json [-s {{1234}}] • AGREE • 安裝流程約20分鐘(會有幾次需要按下Return、YES) • 若當機了就重開再執行一次 22
  12. Alexa for Device – [email protected] Get a Refresh Token •

    先確認喇叭、USB麥克風都接上了 • cd /home/pi/ • sudo bash startsample.sh 24
  13. Alexa for Device – [email protected] 開始進行測試! • 大聲說Alexa,what time is

    it? • 會看到Listening....Thinking....Speaking 聽到報時 27
  14. Alexa for Device – [email protected] 設定時區 • Settings -> 找到該裝置(AVS

    Tutorials Project) • General -> Device time zone -> Asia, Taipei • 再次測試報時是否正確 28 https://alexa.amazon.com

More Decks by Ryan Chung

Other Decks in Technology