Cov txheej txheem:

MATRIX Lub Suab thiab MATRIX Tus Tsim Khiav Alexa (C ++ Version): 7 Kauj Ruam
MATRIX Lub Suab thiab MATRIX Tus Tsim Khiav Alexa (C ++ Version): 7 Kauj Ruam

Video: MATRIX Lub Suab thiab MATRIX Tus Tsim Khiav Alexa (C ++ Version): 7 Kauj Ruam

Video: MATRIX Lub Suab thiab MATRIX Tus Tsim Khiav Alexa (C ++ Version): 7 Kauj Ruam
Video: Finance with Python! Portfolio Diversification and Risk 2024, Kaum ib hlis
Anonim

Los ntawm MATRIX_CreatorFollow Ntau los ntawm tus sau:

Rasberry PI Universal IR Chaw Taws Teeb Nrog MATRIX Tus Tsim
Rasberry PI Universal IR Chaw Taws Teeb Nrog MATRIX Tus Tsim
Rasberry PI Universal IR Chaw Taws Teeb Nrog MATRIX Tus Tsim
Rasberry PI Universal IR Chaw Taws Teeb Nrog MATRIX Tus Tsim

Txog: MATRIX Tus Tsim yog lub cim ntim ntim khoom siv rau Raspberry Pi uas tso cai rau koj tsim koj li IoT cov tswv yim. Xav paub ntau ntxiv txog MATRIX_Creator »

Yuav tsum tau kho vajtse

Ua ntej pib, cia peb tshuaj xyuas yam koj xav tau.

  • Raspberry Pi 3 (Pom Zoo) lossis Pi 2 Qauv B (Txhawb Nqa).
  • MATRIX Lub Suab lossis MATRIX Tus Tsim - Raspberry Pi tsis muaj lub microphone built -in, MATRIX Lub Suab/Tus Tsim muaj 8 mic array - Yuav MATRIX Voice/MATRIX Creator.
  • Micro-USB lub zog hloov pauv rau Raspberry Pi.
  • Micro SD Card (Yam tsawg kawg 8 GB) - Yuav tsum siv lub tshuab ua haujlwm kom pib. Koj tuaj yeem rub tawm Raspbian Stretch thiab siv etcher.io txhawm rau teeb duab rau hauv koj daim npav SD.
  • Tus Hais Lus Sab Nraud nrog 3.5 hli suab cable.
  • USB Keyboard & Mouse, thiab sab nraud HDMI Saib - peb kuj pom zoo kom muaj USB keyboard thiab nas ntxiv nrog rau HDMI saib tau yooj yim. Koj tseem tuaj yeem siv Raspberry Pi nyob deb, saib phau ntawv qhia no los ntawm Google.
  • Kev sib txuas Internet (Ethernet lossis WiFi)
  • (Tsis teb los tau) WiFi Wireless Adapter rau Pi 2. Nco tseg: Pi 3 muaj WiFi built-in.

Thaum koj muaj Raspberry Pi khiav nrog koj lub MATRIX board thiab SD daim duab, peb yuav tsum tso npe tawm ntaus nrog Amazon tus tsim tawm tus lej.

Kauj Ruam 1: Sau npe Cov Khoom hauv Amazon Tus Tsim Tawm

Koj yuav tsum tau sau npe lub cuab yeej thiab tsim cov ntaub ntawv ruaj ntseg hauv Amazon tus tsim tawm lub vev xaib. Yog tias koj twb muaj cov khoom lag luam uas koj tuaj yeem siv rau kev sim, xav tias yuav hla mus tom ntej. Yog tsis yog, ua raws cov lus qhia ib qib zuj zus ntawm no. Cov theem hauv qab no yuav qhia koj yuav ua li cas rau nruab thiab sib txuas koj li Raspberry Pi nrog koj nyuam qhuav sau npe Amazon Alexa Device.

TSEEM CEEB

  • Rau Kev tso cai keeb kwm siv: https:// localhost: 3000 thiab https:// localhost: 3000
  • Rau Kev Tso Cai Rov Qab URLs siv https:// localhost: 3000/authresponse thiab https:// localhost: 3000/authresponse

Rub Tawm Duab (Pom Zoo) Phau ntawv teeb tsa hauv qab no yuav siv sijhawm li ib teev kom tiav yog li peb tau muab cov duab rub tawm ntawm no nrog txhua yam ua ntej teeb tsa. Koj tuaj yeem siv etcher.io txhawm rau teeb duab rau hauv koj daim npav SD. Hla mus rau Kauj Ruam 4 yog tias koj siv peb daim duab.

Kev Nruab Nrab Cov kauj ruam hauv qab no cim nrog (Phau Ntawv Qhia) tsuas yog xav tau yog tias koj rub tawm lub Raspbian Stretch lub neej qub.

Kauj Ruam 2: Txhim Kho MATRIX Software (Phau Ntawv Qhia)

Txhawm rau Alexa Lub Suab Pabcuam siv lub microphones ntawm MATRIX Tus Tsim lossis MATRIX Lub Suab, koj yuav tsum teeb tsa cov hauv qab no:

# Ntxiv repo thiab tus yuam sij

curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt -key ntxiv -ncha "deb https://apt.matrix.one/doc/apt-key.gpg $ (lsb_release -sc) lub ntsiab" | sudo tee /etc/apt/sources.list.d/matrixlabs.list # Hloov kho pob khoom thiab teeb tsa sudo apt-tau hloov tshiab sudo apt-tau hloov tshiab # Reboot sudo reboot

Tom qab reboot txuas dua thiab khiav:

# Hloov tshiab dua

sudo apt-tau hloov tshiab # Nruab MATRIX Pacakages sudo apt nruab matrixio-creator-init # Nruab kernel modules pob sudo apt nruab matrixio-kernel-modules # Reboot sudo reboot

Tos me ntsis thiab rov txuas dua.

Kauj Ruam 3: Rub Alexa SDK Cov Ntawv Sau (Phau Ntawv)

Download tau lub install script. Peb pom zoo kom ua cov lus txib no los ntawm cov npe hauv tsev (~/) lossis Desktop, txawm li cas los xij, koj tuaj yeem khiav tsab ntawv nyob txhua qhov chaw.

wget https://raw.githubusercontent.com/matrix-io/avs-device-sdk/yc/sensory-support/tools/RaspberryPi/setup.sh && wget https://raw.githubusercontent.com/matrix-io/ avs-device-sdk/yc/sensory-support/cov cuab yeej/RaspberryPi/config.txt

Kauj Ruam 4: Sau Koj Li Pi Raws Li Alexa Device

Nrog rau txhua qhov kev teeb tsa pib rub tawm, txhua yam uas tshuav yog teeb tsa koj li Raspberry Pi kom nws tau txheeb xyuas los ntawm Amazon ua Alexa ntaus ntawv koj tau sau npe hauv qib 1.

Qhib cov ntaub ntawv hauv tus kws kho thiab siv Client ID, Khoom ID thiab Client Secret los ntawm cov npe sau los sau cov ntawv config.txt. Txheeb ntawm no yog tias koj xav tau kev pab kho cov ntaub ntawv.

Kauj Ruam 5: Txhim Kho Alexa SDK

Tsab ntawv teeb tsa no yuav hla koj lub cuab yeej teeb tsa mus rau Amazon thiab teeb tsa qhov kawg kev vam khom. Nco tseg, kev teeb tsa no yuav siv sijhawm li ib teev yog tias koj tsis siv peb cov duab ua ntej.

bash setup.sh config.txt

Kauj Ruam 6: Txuas Koj Lub Ntaus Ntawv rau Koj Tus lej Amazon

Tom qab teeb tsa tsab ntawv tau ua tiav, koj yuav tsum tsim kom muaj kev tso cai token. Khiav qhov lus txib no, thiab qhib koj lub browser thiab mus rau https:// localhost: 3000. Nkag mus nrog koj daim ntawv pov thawj Amazon thiab ua raws cov lus qhia muab:

tsoo startauth.sh

Nco tseg: Cov neeg siv siv ntu ssh tuaj yeem thauj lub vev xaib hauv lawv lub davhlau ya nyob twg los ntawm kev siv

txuas https:// localhost: 3000

Kauj ruam 7: Khiav Alexa

Cia peb ua Tus Qauv App:

bash pib piv txwv.sh

Koj lub cuab yeej Alexa yuav tsum tau khiav thiab zoo mus!