# Google assistant on Balena

**URL:** <https://forums.balena.io/t/google-assistant-on-balena/15534>\
**Category:** Project help\
**Tags:** raspberrypi3, docker, docker-compose, dockerfile\
**Created:** [June 17, 2019, 8:03pm UTC](https://forums.balena.io/t/google-assistant-on-balena/15534 "2019-06-17T20:03:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/janvda/32/1271_2.png) [@janvda](https://forums.balena.io/u/janvda)\
**Post date:** [June 17, 2019, 8:03pm UTC](https://forums.balena.io/t/google-assistant-on-balena/15534/1 "2019-06-17T20:03:40Z")

</div>

I managed to install the [google assistant](https://github.com/janvda/balena-google-assistant/issues) client software on a raspberry pi 3 with balena. So I turned my pi in a kind of [google home](https://en.wikipedia.org/wiki/Google_Home) smart speaker.

The only extra hardware you need is an earphone (or headphone) that you plug into the audio jack of the raspberry pi and a USB microphone (or a USB webcam with microphone) that you plug into one of the USB ports of the pi.

All the required balena build files can be found in my github repository: [https://github.com/janvda/balena-google-assistant](https://github.com/janvda/balena-google-assistant). Especially have a look at the [Readme](https://github.com/janvda/balena-google-assistant/blob/master/README.md) of this repository.

Feel free to raise any questions or issues with respect to this project as a comment to this forum topic or directly as a [github issue on my repository](https://github.com/janvda/balena-google-assistant/issues).

kr  
Jan

---

<div class="post-metadata">

**Author:** ![chrisys](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/chrisys/32/1731_2.png) [@chrisys](https://forums.balena.io/u/chrisys)\
**Post date:** [June 17, 2019, 8:06pm UTC](https://forums.balena.io/t/google-assistant-on-balena/15534/3 "2019-06-17T20:06:08Z")

</div>

@janvda awesome work! I’m definitely going to give this a try. Thanks for sharing 🙂

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [June 18, 2019, 1:32pm UTC](https://forums.balena.io/t/google-assistant-on-balena/15534/5 "2019-06-18T13:32:31Z")

</div>

@janvda this is awesome I’ve tried it and it works great! Thank you for sharing this! 😃

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/janvda/32/1271_2.png) [@janvda](https://forums.balena.io/u/janvda)\
**Post date:** [June 24, 2019, 9:34pm UTC](https://forums.balena.io/t/google-assistant-on-balena/15534/6 "2019-06-24T21:34:38Z")

</div>

I have just released version [v1.1.0](https://github.com/janvda/balena-google-assistant/releases/tag/v1.1.0)

This version should make it easier to create the google credentials.  
More precisely you should no longer manually copy paste the google credentials and store them in the service variable `GOOGLE_ASSISTANT_CREDENTIALS`.

This version is backwards compatible with the previous version. So if the credentials are stored in this service variable, then these credentials will still be used as before.

---

<div class="post-metadata">

**Author:** ![ageis](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@ageis](https://forums.balena.io/u/ageis)\
**Post date:** [July 25, 2023, 9:52pm UTC](https://forums.balena.io/t/google-assistant-on-balena/15534/9 "2023-07-25T21:52:40Z")

</div>

google\_assistant /env/lib/python3.5/site-packages/google/auth/crypt/\_cryptography\_rsa.py:22: CryptographyDeprecationWarning: Python 3.5 support will be dropped in the next release of cryptography. Please upgrade your Python.  
google\_assistant import cryptography.exceptions  
google\_assistant device\_model\_id:  
google\_assistant device\_id:  
google\_assistant  
google\_assistant ON\_MUTED\_CHANGED:  
google\_assistant {“is\_muted”: false}  
google\_assistant ON\_MEDIA\_STATE\_IDLE  
google\_assistant ON\_START\_FINISHED

I get that on the balena dashboard when I started the service however  
when I say “hey google” or “ok google” nothing happens. I have tried saying either followed by what’s the weather like but I don’t get a response back.

I have executed the speaker test and I can confirm they’re working correctly.
