Git Product home page Git Product logo

Comments (5)

sheridat avatar sheridat commented on April 28, 2024 3

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.

eduncan911 avatar eduncan911 commented on April 28, 2024

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.

ensonic avatar ensonic commented on April 28, 2024

@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.

eduncan911 avatar eduncan911 commented on April 28, 2024

@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.

drigz avatar drigz commented on April 28, 2024

There's an example for multiple triggers in the new assistant_library_with_button_demo.py.

from aiyprojects-raspbian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.