warchildmd / google-assistant-hotword-raspi Goto Github PK
View Code? Open in Web Editor NEWSimple Google Assistant with hotword activation from Snowboy setup for my Pi Zero W.
License: MIT License
Simple Google Assistant with hotword activation from Snowboy setup for my Pi Zero W.
License: MIT License
Is it possible to add custom voice commands with internal action rather than needing iftt?
When trying to run a command
python -m googlesamples.assistant
I get error
/home/pi/env/bin/python: No module named googlesamples.assistant.main; 'googlesamples.assistant' is a package and cannot be directly executed
Any advice please?
When I run the gassistant.py file I just get
Traceback (most recent call last):
File "gassistant.py", line 33, in <module>
assistant = Assistant()
File "/home/pi/Hotwordy/assistant.py", line 84, in __init__
self.assistant = embedded_assistant_pb2.EmbeddedAssistantStub(self.grpc_channel)
AttributeError: module 'google.assistant.embedded.v1alpha1.embedded_assistant_pb2' has no attribute 'EmbeddedAssistantStub'
Do you have any idea why this happens?
Hello, I tried to run your project but I think that something has changed in the Google SDK system.
When I try to run a sample I receive the following error:
/usr/bin/python: No module named googlesamples.assistant.auth_helpers
Is there any solution?
Thank you for the attention
Can anyone help me??
Hello,
I was looking at your project and I found it really cool!
I was thinking about using it in the Pirate Radio from Pimoroni, but I noticed that you don't have a license in the repo? Would you mind adding one?
It's really quick and easy :)
Thanks!
When i run python gassistant.py models/ok_google.pmdl
,
i got the importerror, how to fix this?
Hello, when i use
python gassistant.py models/ok_google.pmdl
I get:
AttributeError: module 'google.assistant.embedded.v1alpha1.embedded_assistant_pb2' has no attribute 'EmbeddedAssistantStub'
PS: i had to install libpython3.4
It should be corrected from this:
self.conversation_stream = audio_helpers.ConversationStream(
source=self.audio_source,
sink=self.audio_sink,
iter_size=self.audio_iter_size,
)
to this:
self.conversation_stream = audio_helpers.ConversationStream(
source=self.audio_source,
sink=self.audio_sink,
iter_size=self.audio_iter_size,
sample_width=self.audio_sample_width
)
(env) pi@raspberrypi:~/google-assistant-hotword-raspi $ python gassistant.py models/ok_google.pmdl
(env) pi@raspberrypi:~/google-assistant-hotword-raspi $ python gassistant.py models/ok_google.pmdl
Traceback (most recent call last):
File "/home/pi/google-assistant-hotword-raspi/snowboydetect.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
File "<frozen importlib._bootstrap>", line 539, in _check_name_wrapper
File "<frozen importlib._bootstrap>", line 1715, in load_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
ImportError: dynamic module does not define init function (PyInit__snowboydetect)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "gassistant.py", line 1, in <module>
import snowboydecoder
File "/home/pi/google-assistant-hotword-raspi/snowboydecoder.py", line 5, in <module>
import snowboydetect
File "/home/pi/google-assistant-hotword-raspi/snowboydetect.py", line 21, in <module>
_snowboydetect = swig_import_helper()
File "/home/pi/google-assistant-hotword-raspi/snowboydetect.py", line 20, in swig_import_helper
return importlib.import_module('_snowboydetect')
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: dynamic module does not define init function (PyInit__snowboydetect)
Hey, not an issue parse but anyway you can add triggers for GPIO control.
example 1 "Google, turn on LED" and it connects to GPIO that has the LED?
example 2 "Google, open switch" and it turns the servo on given GPIO
python gassistant.py models/ok_google.pmdl results in error
"Illegal instruction". I suspect this is due to the update to the latest SDK wich does not support ARMv6.
Can anyone verify this?
If so, can we fix this, or at least give a hint in the readme that this will not work for the Pi Zero/W
After I ran gassistant.py I got the following error. Any suggestion?
I ran it on Pi Zero W, python 2.7.9
Traceback (most recent call last):
File "gassistant.py", line 6, in <module>
from assistant import Assistant
File "/home/pi/google-assistant-hotword-raspi-master/assistant.py", line 9, in <module>
from googlesamples.assistant import (
ImportError: cannot import name assistant_helpers
`ERROR (ReadToken():snowboy-io.cc:131) Fail to read token in ReadToken(), position -1
terminate called after throwing an instance of 'std::runtime_error'
what(): ERROR (ReadToken():snowboy-io.cc:131) Fail to read token in ReadToken(), position -1
[stack trace: ]
./_snowboydetect.so(_ZN7snowboy13GetStackTraceEv+0x34) [0xb637bb40]
./_snowboydetect.so(_ZN7snowboy13SnowboyLogMsgD1Ev+0x4b8) [0xb637c180]
./_snowboydetect.so(_ZN7snowboy9ReadTokenEbPSsPSi+0x12c) [0xb637e1d4]
./_snowboydetect.so(ZN7snowboy14PipelineDetect14ClassifyModelsERKSsPSsS3+0x20c) [0xb636fb34]
./_snowboydetect.so(_ZN7snowboy14PipelineDetect8SetModelERKSs+0x158) [0xb6370020]
./_snowboydetect.so(ZN7snowboy13SnowboyDetectC1ERKSsS2+0x88) [0xb6365ec8]
./_snowboydetect.so(+0x1ad18) [0xb6362d18]
Aborted`
The latest SDK has hotword function build in, so we wouldn't need Snowboy anymore.
Will there be any update for this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.