Comments (5)
Thanks for such a detailed reply. I will have a good play with the gain controls and read #47.
If we were able to trigger the assistant by GPIO as well as by hotword we can solve most of the issues.
Some of us are already using scripts to trigger the assistant by manipulating GPIO pin 23. A good example is using a dash button which when pressed fires up the assistant. See post "https://www.raspberrypi.org/forums/viewtopic.php?f=114&t=184283".
In my case when I was using the default GPIO trigger and playing music, I used to get the assistant to fire up by running a python script that muted/unmuted my music player using a toggle. and then set GPIO 23 as per the post above. I would ask the assistant whatever and then when ready ask it to play music again. Rather than a dash button - I triggered my script by IR remote but I've also used ssh to run it and well the possibilities open up to solve things like this if we can use an alternative trigger when we have set the default to ok-google.
As an aside - I've just been to my local electronic shop and bought everything to make an "ir blaster" so by teatime I should be able to say "ok google TV volume up" and so on. I love this thing - it has really captured my imagination.
from aiyprojects-raspbian.
I agree there should be multiple triggers available. I think the Google Home device does trigger on both the OK Google hotword as well as the button on the back, from what I read in places online.
But note: if the Voice Kit/Google Home device can't hear your "Ok Google" - which has gone through very rigorous pattern matching across many dialects and age groups, it most likely won't understand what you say next after triggering it with such loud volumes of music.
Just saying.
One thing to play with is the Gain controls of the mic input. As noted in #47 , the gain control with the AIY Projects SD Card image is set too high and distorts (clips) the input if too close/too loud.
We (my family) have seen this a lot.
I can be in the next room and speak with just a slight kick in my voice, and the Voice Kit will hear my "Ok Google" and trigger and pick up what I am asking it. Again, from another room! Very very sensitive!
On the other hand, with my 5 year daughter standing right next to it and saying, "Ok Googles" in the normal kids-slightly-higher-volume tone - it never triggers. I ask her to speak much quieter (knowing the gain is really high), and then it triggers.
Same goes with me. If I am speaking slightly higher, say over a boiling teapot, the Voice Kit never triggers with the OK Google hotword. If I tone it down, to a "it should never be able to hear me at this volume, in the kitchen, on the other side of a wall, with a boiling teapot" - it triggers and hears me!!!!!
I've been tweaking the gain to +10 as noted in #47 and it works, with her speaking pretty loud next to it and I can speak up and it hears me. But I now kind of miss the sensitivity I had before. I got back and forth. Right now, it is set to 30 because I like to be able to ask it a question from the next room (about 40 feet away). Our house is very quiet.
from aiyprojects-raspbian.
@sckam please use a new ticket for new issues. In your cases GpioWrite(17 & 27, True) does not do what you think it would. GpioWrite can only affect a single pin. You are invoking a bitwise operator: https://wiki.python.org/moin/BitwiseOperators. Conicidentially 17 & 27 is still 17 (all the bits set in 17 are also set in 27). The easiest fix is to duplicated the add_keyword lines for each pin.
from aiyprojects-raspbian.
@sckam please create a new Issue. this issue is for something totally different.
i have suggestions, but they don't belong here.
from aiyprojects-raspbian.
There's an example for multiple triggers in the new assistant_library_with_button_demo.py.
from aiyprojects-raspbian.
Related Issues (20)
- AIY python package version HOT 2
- GET request in Robot framework using AWS credentials HOT 4
- say and play_wav failing after invoking CloudSpeechClient client.recognize method
- AYI-vision: Unit joy_dection_demo.service could not be found HOT 3
- AIY-voice: problems encountered by assistant_grpc_demo.py after some time of use HOT 3
- Python package install fails on raspbian
- aiy-python-wheels fails to get installed on raspbian bullseye on rpi4 HOT 4
- Pico TTS not installable (Bullseye)
- Voice Bonnet drivers not installed (HACKING.md instructions) HOT 1
- No sound input/output on Raspbian Bullseye HOT 1
- Huge delay in voice recording. HOT 1
- 500 error code HOT 3
- No microphone as user Pi on version 20210402
- Not working with Raspbian Bullseye HOT 1
- Voice Bonnet not working with Pi 4 HOT 1
- Pi Zero 2 W?
- Voice Kit Google - Failed (src/examples/voice/assistant_grpc_demo.py)
- post-installation script subprocess returned error exit status 6 HOT 3
- Voice kit google (/lib/arm-linux-gnueabihf/libc.so.6: version 'GLIBC_2.34' not found (required by /lib/arm-linux-gnueabihf/libgcc_s.so.1))
- Sound driver for AIY Voice Kit V1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiyprojects-raspbian.