Cov txheej txheem:

Google AIY VoiceHAT rau Raspberry Pi Kit (MagPi 57 Version 2017): 6 Cov Kauj Ruam (nrog Duab)
Google AIY VoiceHAT rau Raspberry Pi Kit (MagPi 57 Version 2017): 6 Cov Kauj Ruam (nrog Duab)

Video: Google AIY VoiceHAT rau Raspberry Pi Kit (MagPi 57 Version 2017): 6 Cov Kauj Ruam (nrog Duab)

Video: Google AIY VoiceHAT rau Raspberry Pi Kit (MagPi 57 Version 2017): 6 Cov Kauj Ruam (nrog Duab)
Video: Google Assistant работает на Raspberry Pi 2? 2024, Kaum ib hlis
Anonim
Google AIY VoiceHAT rau Raspberry Pi Kit (MagPi 57 Version 2017)
Google AIY VoiceHAT rau Raspberry Pi Kit (MagPi 57 Version 2017)

Cov lus qhia los ua ke rau MagPi lub suab khoom tsis pom hauv cov ntawv qhia.

Kauj Ruam 1: AIY Cov Khoom Siv Dab Tsi? (MagPi Tsib Hlis 2017 Version)

Yuav muaj dab tsi tshwm sim thaum Google muab AI Voice rau Maker zej zog? Ua tiav cov khoom siv khoos phis tawj dawb DIY rau koj li Raspberry Pi 3 (tsis suav nrog) nrog qhov teeb meem 57 ntawm MagPi magazine! Nyeem ntxiv ntawm no https://www.raspberrypi.org/magpi/issues/57/ lossis hauv Google https:// aiyprojects. withgoogle.com * MagPi 2017 vs tshiab 2018 qhov sib piv los ntawm Alasdair Allan ntawm Medium.com Kuv pom cov khoom siv nag hmo thiab nws yog 'daim ncuav qab zib' los ua ke nws. Qhib lub npov, muab VoiceHAT board rau ntawm koj lub Raspberry, sib sau ua ke laub-rau-nug/qhib lub pob loj, kho cov hais lus xov tooj, txuas cov xov txuas rau khawm thiab Mic lub tso suab lub rooj tsavxwm, muab tso rau hauv lub thawv. Tau thiab nyem npaj OS nrog SDK cov duab rau SD daim npav, khau raj thiab teeb tsa software raws li cov lus qhia hauv cov ntawv xov xwm lossis los ntawm Google qhov project. Thiab nws yooj yim ua haujlwm!

* Kho qhov sau tseg: Kho dua tshiab thiab kho qhov twg MagPi version (txij lub Tsib Hlis 2017) txawv ntawm qhov hloov tshiab pom ntawm target.com (2018). Google kuj tau tshaj tawm Lub Zeem Muag Khoom nrog lub koob yees duab module (tsis suav nrog hauv Cov Khoom Siv Lub Suab). Rau cov lus qhia ntawm lwm qhov tsis yog los ntawm MagPi 2017 mus rau AIY Cov Haujlwm nrog Google.

Kauj Ruam 2: Mic Board

Mic Board
Mic Board
Mic Board
Mic Board
Mic Board
Mic Board

Mic pawg thawj coj saib. Ib qho khoom siv zoo kawg tab sis vim yog cov xaim xaim taw qhia nws yuav quav/poob rau hauv lub thawv. Qhov teeb meem no tuaj yeem ua rau muaj kev paub tsis zoo yog tias koj lub suab tsis tuaj yeem tshuaj xyuas tau zoo. Mic ua haujlwm tau zoo dua yog tias nws tau khov khov ncaj hauv lub hau ntawm lub npov hloov lub kaum sab xis. Txhim kho qhov no yooj yim los ntawm kev txiav ib txoj kab nyias nyias hauv cov duab los qhia lossis ua tsib qhov me me qhov twg cov koob txuas yuav haum. Tsuas yog tob txaus kom lub rooj tsavxwm yuav nyob tiaj tus tom qab kaw lub hau. Kuv siv daim ntawv dawb lub thawv ntawv los ntawm cov khoom siv los txhawb nqa kom lub rooj tsavxwm nyob hauv qhov chaw. Txiav daim ntawv ib nrab thiab quav nws ob lossis peb zaug. Muab nws ua tib zoo nyob tom qab ntawm tus neeg hais lus hauv qab Mic board thiab ua kom paub tseeb tias qhov txuas thiab cov kab txuas haum rau sab hauv thiab qhov kev txhawb nqa kiag li tsis txhob cuam tshuam nrog cov khoom siv saum npoo, lossis pawg thawj coj yuav raug puas tsuaj! Txhawm rau tsuas yog siv Scotch-daim kab xev raws li qhia hauv MagPi phau ntawv qhia yog tias koj tsis paub meej tias yuav tso qhov kev txhawb nqa li cas (lub ntsiab lus). Tsis txhob xav txog nws. Nws yuav ua haujlwm.

(Faj seeb: Xyoo 2018 Cov Khoom Siv tsis muaj Mic cais pawg! Txhua yam nyob ntawm ib lub Rooj Tswjhwm Lub Suab Bonnet.)

Kauj Ruam 3: Khawm Loj

Khawm loj
Khawm loj

Ib lub pob. Zoo, koj tuaj yeem tso LED tsis raug (tsuas yog rub nws tawm thiab thim rov qab los kho) thiab qhov hloov nws tus kheej yog qhov dav heev thiab xav tau lub kaum ntse ntse zoo kom tuaj yeem kaw lub hau (xoob, tig lub me ntsis, kho cov xov hlau los kho). Saib daim duab. Thaum haum qhov hloov mus rau hauv lub yas yas txuas, siv lub peg qis ua ntej thiab tom qab ntawv xaub mus rau qhov thib ob sab peg tej zaum yuav yooj yim me ntsis dua li thim rov qab. Kuj xyuas cov neeg sib txuas ntxiv kom paub tseeb tias cov xim los ntawm phau ntawv qhia phim koj li lub pob kom ua haujlwm.

(Faj seeb: Xyoo 2018 Cov Khoom Siv muaj lub pob "luv" tshiab tsis muaj cov khoom siv yas hloov pauv. Tsuas yog ntsaws thiab ua si.)

Kauj Ruam 4: Tsis muaj daim npav rho nyiaj, Tsis muaj Google API?

Teeb tsa API tom qab khau raj, tsis muaj daim npav rho nyiaj. Koj tsuas yog ua raws cov kauj ruam hauv phau ntawv qhia (nplooj 28 kuv cov ntawv xov xwm) thiab rov ua dua lawv thiab txheeb xyuas peb zaug yog tias koj tsis siv los ua ib puag ncig hauv OS. Step 6 yog me ntsis ntawm qhov tsis zoo qhov twg koj tsuas xav tau dawb "Google Assistant API" dawb, tsis txhob thab nrog "Speech API" uas yuav tsum tau sau npe daim npav rho nyiaj. Txoj haujlwm ua haujlwm tag nrho nrog ib qho API dawb, ua tsaug ntau ntau Google. Qhov "theej thiab paste code" hauv Kauj Ruam 14 tsis xav tau rau kuv yog li yog tias koj tau txais cov lus zoo siab thiab tsis muaj tus lej hauv browser, tsis txhob txhawj xeeb. Phau ntawv qhia tsis raug, tsis yog Google.

(Nco tseg: Alasdair Allan ntawm Medium.com tau suav nrog cov ntaub ntawv qhia tau zoo yuav ua li cas teeb tsa Cov Khoom Siv nrog Google Cloud Platform tus lej rau nws 2018 version ntawm Cov Khoom Siv Suab. Ntawm no yog MagPi qhov teeb meem 57 (2017).)

Kauj ruam 5: Tham nrog Google Assistant

Tham nrog Google Assistant
Tham nrog Google Assistant

Lub VoiceHAT yog los ntawm nws tus kheej ib pawg tswj hwm zoo rau ib qho Raspberry Pi nrog lub taub hau txuas rau. Muaj cov ntaub qhwv tsis tau muag rau I2C, SPI, ib tus neeg hais lus xaiv tau ntau dua, plaub tus neeg tsav tsheb thiab rau rau tus neeg pabcuam nrog mosfets, lub qhov hluav taws xob sab nraud, thiab qee qhov tsis paub txuas nrog lossis tsis txuas nrog cov hlua txuas txuas tsis tau txuas. Nws yog ntau ntau bang rau cov nyiaj ntau dua li tsuas yog muab Lub Suab rau Google. Element 14 tus neeg siv Shabaz tau sim xam tawm cov lej thiab cov khoom. (Kho kom raug: tam sim no yog "tus tswv cuab nkaus xwb" tsab xov xwm, Kuv tshem tawm http txuas los ntawm cov ntawv.) Qee tus txawm tias ua tiav nrog Googles 'SDK ua haujlwm ntawm lub rooj xoom me me*. Nws yuav ua haujlwm tab sis Pi 3 yog txoj hauv kev zoo tshaj plaws mus rau cov khoom siv no. Tshwj xeeb tshaj yog tias koj txiav txim siab siv servos lossis tsav tsheb nrog qib siab (12 lub hlis sim) "Speech API" rau kev ua lag luam. Tus hais lus loj heev thiab muab AI lub suab zoo tiag tiag. Koj tuaj yeem txo lub suab hauv OS los ntawm kev kho lub suab hais lus. Lub neej ntawd 'lo lus nug tsis paub' - sim dua - lub suab tawm tswv yim muaj qhov vwm tsis zoo tab sis tsis txhob txhawj, cov lus teb rau koj cov lus nug yuav suab zoo ib yam yog tias txhua yam ua haujlwm raug. Nco ntsoov tias tus hais lus tau teeb tsa ua lub hauv paus hauv AIY cov duab ua rau lub suab HDMI tso tawm, nws tsis yog kab laum. Nws nug cov lus nug zoo li no; "Soylent Green ua los ntawm dab tsi?". Mus ceev:)

(* Nco tseg: Tus tshiab 2018 version ntawm Lub Suab Khoom tam sim no suav nrog RaspberryPi Zero WiFi board!)

Kauj Ruam 6: Dab Tsi Ntxiv?

Tam sim no koj muaj lub hauv paus ntawm Googles AI thiab Kev pabcuam huab hauv ib lub thawv. Txhua lub tswv yim yuav tsum muaj peev xwm ua nrog qee qhov khawv koob AI thiab Tensor Flow. Kuv xav tias txuas nrog Oled zaub lossis LEDmatrix los tso tawm kev xav zoo li hauv zaj yeeb yaj kiab "Moon" yuav lom zem. Qhov teb encoder yuav muaj txiaj ntsig los kho tus neeg hais lus ntim. Tom qab ntawd muab nws tso rau ntawm lub log kom ua rau txaj muag lossis pop-up ad bot zoo li hauv "Zero Theorem". Los yog vim li cas ho tsis tshem tag nrho cov nyees khawm thiab tswj txhua yam hla BT? Kuv xav tias kuv yuav tsum nug Google ib zaug ntxiv … Nws yog kev quav yeeb quav tshuaj. Cov nraub qaum rau kuv qhov kev sib sau Nug-Txhua Yam-Khawv Koob-Lub Suab-Box cov duab yog phooj ywg LP tus uas haum haum cov ncauj lus qhia no, saib thib ob.

Pom zoo: