{"id":1264,"date":"2018-06-24T22:01:53","date_gmt":"2018-06-25T06:01:53","guid":{"rendered":"https:\/\/www.nicknguyen.com\/?p=1264"},"modified":"2019-11-16T15:24:42","modified_gmt":"2019-11-16T23:24:42","slug":"get-10-google-aiy-version-1-working","status":"publish","type":"post","link":"https:\/\/nicknguyen.com\/old\/get-10-google-aiy-version-1-working\/","title":{"rendered":"Get $10 Google AIY Version 1 working"},"content":{"rendered":"<p>So I bought this $10 Google Assistant from Amazon Prime.\u00a0 Only to find out it doesnt work as easily as advertised.\u00a0 \u00a0It comes with a modified Raspian distro.\u00a0 Here are the latest steps I did to get mine to work.\u00a0 I spent a half a day muddling through commands,\u00a0 so im not sure if previous steps might have led to it working but hope this helps someone&#8230;Note the audio volume in the navigation is disabled, but the google voice does work (when I did get the audio driver working, the google voice via python was not)<\/p>\n<p>cd ~\/AIY-projects-python<\/p>\n<p>sudo scripts\/install-alsa-config.sh<\/p>\n<p>Outputted:<\/p>\n<p>Renaming \/home\/pi\/.asoundrc to \/home\/pi\/.asoundrc.bak&#8230;<br \/>\nRenaming \/etc\/asound.conf to \/etc\/asound.conf.bak&#8230;<br \/>\nInstalled voiceHAT ALSA config at \/etc\/asound.conf<br \/>\nInstalled voiceHAT ALSA config at \/home\/pi\/.asoundrc<\/p>\n<p>I tried:\u00a0 python checkpoints\/check_audio.py<\/p>\n<p>Outputted:<\/p>\n<p>ImportError: No module named aiy.audio<\/p>\n<p>python3 checkpoints\/check_audio.py<\/p>\n<p>Worked&#8230;Playing test sound&#8230;.<\/p>\n<p>So the module only works when you declare the Python3&#8230;..<\/p>\n<p>before this i did compile the drivers by going to the \/home\/pi\/drivers-raspi folder, and ran<\/p>\n<p>sudo .\/build.sh<\/p>\n<p>the script appears to compile the drivers and created a boot\/config.txt file&#8230;.I believe the parameters in the config.txt file are run when the image boots up&#8230;here is a copy of mine in case anyone else may need to compare:<\/p>\n<p>I added\u00a0dtoverlay=googlevoicehat-soundcard to mine, I also added\u00a0dtparam=audio=on but the driver script appears to have commented\u00a0dtparam=audio=on\u00a0 out to\u00a0#dtparam=audio=on<\/p>\n<p># For more options and information see<br \/>\n# http:\/\/rpf.io\/configtxt<br \/>\n# Some settings may impact device functionality. See link above for details<\/p>\n<p># uncomment if you get no picture on HDMI for a default &#8220;safe&#8221; mode<br \/>\n#hdmi_safe=1<\/p>\n<p># uncomment this if your display has a black border of unused pixels visible<br \/>\n# and your display can output without overscan<\/p>\n<p># uncomment the following to adjust overscan. Use positive numbers if console<br \/>\n# goes off screen, and negative if there is too much border<br \/>\n#overscan_left=16<br \/>\n#overscan_right=16<br \/>\n#overscan_top=16<br \/>\n#overscan_bottom=16<\/p>\n<p># uncomment to force a console size. By default it will be display&#8217;s size minus<br \/>\n# overscan.<br \/>\n#framebuffer_width=512<br \/>\n#framebuffer_height=384<\/p>\n<p># uncomment if hdmi display is not detected and composite is being output<br \/>\nhdmi_force_hotplug=1<\/p>\n<p># uncomment to force a specific HDMI mode (this will force VGA)<br \/>\nhdmi_group=2<br \/>\nhdmi_mode=35<\/p>\n<p># uncomment to force a HDMI mode rather than DVI. This can make audio work in<br \/>\n# DMT (computer monitor) modes<br \/>\n#hdmi_drive=2<\/p>\n<p># uncomment to increase signal to HDMI, if you have interference, blanking, or<br \/>\n# no display<br \/>\n#config_hdmi_boost=4<\/p>\n<p># uncomment for composite PAL<br \/>\n#sdtv_mode=2<\/p>\n<p>#uncomment to overclock the arm. 700 MHz is the default.<br \/>\n#arm_freq=800<\/p>\n<p># Uncomment some or all of these to enable the optional hardware interfaces<br \/>\ndtparam=i2c_arm=on<br \/>\ndtparam=i2s=on<br \/>\n#dtparam=spi=on<\/p>\n<p># Uncomment this to enable the lirc-rpi module<br \/>\ndtoverlay=googlevoicehat-soundcard<\/p>\n<p># Additional overlas and parameters are documented \/boot\/overlays\/README<\/p>\n<p># Enable audio (loads snd_bcm2835)<br \/>\n#dtparam=audio=on<br \/>\n# dtoverlay=dwc2<br \/>\nstart_x=0<br \/>\ngpu_mem=128<br \/>\n#scaling_kernel=8<br \/>\nenable_uart=1<br \/>\n#dtoverlay=w1-gpio<br \/>\nstart_x=1<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I bought this $10 Google Assistant from Amazon Prime.\u00a0 Only to find out it doesnt work as easily as advertised.\u00a0 \u00a0It comes with a modified Raspian distro.\u00a0 Here are the latest steps I did to get mine to work.\u00a0 I spent a half a day muddling through commands,\u00a0 so im not sure if previous&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1398,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Get $10 Google AIY Version 1 working","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[151,162],"tags":[166,165,167],"class_list":["post-1264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-technology","tag-google-ai","tag-raspberry-pi","tag-tutorial"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/media.nicknguyen.com\/wp-content\/uploads\/2018\/12\/27202156\/86ba212a-867e-4a9e-8600-69699bfbb7dd-14cf956a-b516-40f3-abd1-77fb953f382f-v1.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/posts\/1264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/comments?post=1264"}],"version-history":[{"count":1,"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/posts\/1264\/revisions"}],"predecessor-version":[{"id":1265,"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/posts\/1264\/revisions\/1265"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/media\/1398"}],"wp:attachment":[{"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/media?parent=1264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/categories?post=1264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nicknguyen.com\/old\/wp-json\/wp\/v2\/tags?post=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}