Go to advanced search

by Thursten
Wed Jan 24, 2018 3:10 pm
Forum: AIY Projects
Topic: Error running main.py
Replies: 2
Views: 608

Re: Error running main.py

Hi, Thanks for your reaction, Sorry for not responding sooner, had other priorities that needed attention! But I can already tell what the problem is than.. xD My Domotics is running on port 8080.. And it's on the same Pi. So if I would change the Domoticz port, would this issue be settled? Thanks i...
by Thursten
Fri Dec 08, 2017 10:10 am
Forum: AIY Projects
Topic: Error running main.py
Replies: 2
Views: 608

Error running main.py

Hello, So I've followed this guide: Guide: Google Assistant on Raspbian And when I'm trying to run it I get an error. (env) [email protected]:~/voice-recognizer-raspi $ python3 src/main.py Traceback (most recent call last): File "src/main.py", line 99, in <module> main() File "src/main.py", line 92, in...
by Thursten
Wed Sep 20, 2017 7:18 pm
Forum: AIY Projects
Topic: Multiple calendar support
Replies: 1
Views: 1380

Multiple calendar support

Hello!

I was wondering, since I can ask my assistant what's on the planning and it reads from my calendar used to create the API key, I believe..

How can I add several other Google Calendars or other Google accounts the calendars belong to?

Thanks in advance
Greetings,
Thursten
by Thursten
Fri Sep 01, 2017 9:05 am
Forum: AIY Projects
Topic: Conversation actions
Replies: 7
Views: 3430

Re: Conversation actions

Hi!
Glad I could help!

The only solution I found, is changing the command.. But that isn't so much fun! Although I like alot of the answers the "cloud girl" gives!

Did you get it to work? I hope my previous explanation was clear enough to be followed! =)
by Thursten
Wed Jul 26, 2017 8:31 pm
Forum: AIY Projects
Topic: Alsa config, usb soundcard
Replies: 3
Views: 1480

Re: Alsa config, usb soundcard

Okay the usb device is default and now number card 0.. Playback goes perfect, but arecord keeps giving me the same error as the last one in the screen shot mentioned in the post above.. Any ideas? What could be, googling didn't come up with much.. Please help me fix this, I really want and kinda nee...
by Thursten
Wed Jul 26, 2017 10:17 am
Forum: AIY Projects
Topic: Alsa config, usb soundcard
Replies: 3
Views: 1480

Re: Alsa config, usb soundcard

@ sheridat thanks again for your help! I think it's really great and I'm thankful that you are still willing to answer all of my N00b questions! So Thank you for that! And second, I will try that out, I guess I'm just going for some trial and error.. I'm using a rockband microphone from my wii now, ...
by Thursten
Tue Jul 25, 2017 8:05 pm
Forum: AIY Projects
Topic: Alsa config, usb soundcard
Replies: 3
Views: 1480

Alsa config, usb soundcard

Hey guys, I thought I try it here as well because it might be related to the assistant sdk.. I have a question.. I'm trying to use the Google Assistant through Alsa.. Now I have a USB sound card like the following: USB Soundcard But when I plug it in and try the following commands: aplay -l I get: t...
by Thursten
Tue Jul 25, 2017 5:30 pm
Forum: Graphics, sound and multimedia
Topic: Asound usb device
Replies: 0
Views: 408

Asound usb device

Hey guys, I have a question.. I'm trying to use the Google Assistant through Alsa.. Now I have a USB sound card like the following: USB Soundcard But when I plug it in and try the following commands: aplay -l I get: that the card is 2 and the device is 0 But with arecord -l it's the same case! =( Wh...
by Thursten
Mon Jul 24, 2017 9:08 pm
Forum: AIY Projects
Topic: AIY Voice Kit with Snowboy (Without HAT)
Replies: 4
Views: 1797

Re: AIY Voice Kit with Snowboy (Withou HAT)

I did have it working on a Pi W with the AIY kit a couple of months back. I remember following http://docs.kitt.ai/snowboy/ I did find it picked up a lot of false positives and after 10 minutes reverted to the original image and went back to pressing the button. there is also a youtube vid that mig...
by Thursten
Mon Jul 24, 2017 7:46 pm
Forum: AIY Projects
Topic: Conversation actions
Replies: 7
Views: 3430

Re: Conversation actions

For anyone interested in this I've found a solution! Put this in your actions.py at the custom actions part: class <Part A>(object): """Welcome Home Conversation""" def __init__(self, say, command): self.say = say self.command = command def run(self, voice_command): import random <Part B> = ["Answer...
by Thursten
Mon Jul 24, 2017 7:28 pm
Forum: AIY Projects
Topic: AIY Voice Kit with Snowboy (Without HAT)
Replies: 4
Views: 1797

Re: AIY Voice Kit with Snowboy (Withou HAT)

Anyone? Can anyone explain me how to make snowboy work with Google Assistant? I found some weird, hard-to-understand video, but it's for an older custom version of the google assistant sdk. I figured it couldn't be that hard and I've seen it being mentioned several times, but never a clear tutorial ...
by Thursten
Mon Jul 24, 2017 3:10 pm
Forum: AIY Projects
Topic: Syntax error actor.add voice commands
Replies: 5
Views: 583

Re: Syntax error actor.add voice commands

Look at the line before actor.add_keyword(_("I can't see my keyboard anymore"), LightCtrlLiving(say, 'On') actor.add_keyword(_("I can't read like this"), LightCtrlLiving(say, 'On')) It is missing the final close bracket. Thanks, I totally missed that! :D @Sheridat It's nice to share a laugh! ;) @Sc...
by Thursten
Mon Jul 24, 2017 12:28 pm
Forum: AIY Projects
Topic: Syntax error actor.add voice commands
Replies: 5
Views: 583

Syntax error actor.add voice commands

I have another problem I'm sorry.. I'm trying to add different keywords for the same action. But when I'm trying to launch main.py I get an error about syntax error.. Here are the voice commands: actor.add_keyword(_("We're leaving"), LightCtrlLiving(say, 'Off')) actor.add_keyword(_("I'm leaving"), L...
by Thursten
Mon Jul 24, 2017 11:39 am
Forum: AIY Projects
Topic: Actions Domoticz link
Replies: 13
Views: 2854

Re: Actions Domoticz link

Okay so I tried it, your command works! =D So I changed it a little! it's now called LightCtrlLiving, and that still works! So I copied and pasted that part of code and changed the above part to LightCtrlBed, and copied and pasted the voice commands and also changed LightCtrlLiving to LightCtrlBed b...
by Thursten
Mon Jul 24, 2017 10:58 am
Forum: AIY Projects
Topic: Conversation actions
Replies: 7
Views: 3430

Re: Conversation actions

Okay, thanks for your reply! But I'm actually looking for a solution to add actions to the GoogleAssistant through for example actions.py. Just programming answers/replies to my spoken words/questions. And if possible to pick one of for example 3 different kind of answers in random.. For example: I ...
by Thursten
Mon Jul 24, 2017 9:18 am
Forum: AIY Projects
Topic: Audio related error on launching main.py
Replies: 1
Views: 262

Re: Audio related error on launching main.py

I fixed it again by changing all the asound config files!! :D :D :D
by Thursten
Mon Jul 24, 2017 9:17 am
Forum: AIY Projects
Topic: Conversation actions
Replies: 7
Views: 3430

Conversation actions

Hey guys, Is anybody good at programming this thing? I'm not.. :oops: But I would like to get some sort of template on how I can make conversation actions. I would like to have a piece of code in which I need to change a few things to make it suit my needs, and of course it should be repeatable so I...
by Thursten
Mon Jul 24, 2017 9:03 am
Forum: AIY Projects
Topic: Actions Domoticz link
Replies: 13
Views: 2854

Re: Actions Domoticz link

Okay, forgive me, but how do I exactly do this? :oops:

Ooh and how can I make her say nice and funny stuff back? Waht do I change, because I believer that when she says On that is also the parameter used in cmd variable, is that right?
by Thursten
Mon Jul 24, 2017 8:45 am
Forum: AIY Projects
Topic: Actions Domoticz link
Replies: 13
Views: 2854

Re: Actions Domoticz link

Wow! Thanks for sharing! I'm currently fighting with getting the sound to work so I can test it! =) But I could repeat your code for all lamps, adjusting the def ids and stuff, right? =) Thanks again! =D EDIT: Okay so she's listening again and talking back! I tried your code, insterted it in action....
by Thursten
Sun Jul 23, 2017 6:50 pm
Forum: AIY Projects
Topic: Audio related error on launching main.py
Replies: 1
Views: 262

Audio related error on launching main.py

Hello guys, Here I am again with some problem.. So I'm tryimg to use the assistant through the pis sound card, the bcm2835.. Now I edited the asound conf files and the .arsound or something like that.. And I still get the following error.. https://preview.ibb.co/maP7aQ/IMG_20170723_201421.jpg Now I ...
by Thursten
Fri Jul 21, 2017 2:59 pm
Forum: AIY Projects
Topic: Actions Domoticz link
Replies: 13
Views: 2854

Re: Actions Domoticz link

God***it.. I keep getting a spacing error... I'm just gonna go ahead and paste the code here.. # ====================================================== # Light Control: Control Bedroom and Livingroom lights. # ====================================================== # Turns on or off the lights in hou...
by Thursten
Fri Jul 21, 2017 1:59 pm
Forum: AIY Projects
Topic: Actions Domoticz link
Replies: 13
Views: 2854

Re: Actions Domoticz link

You don't need to use urllib or urllib2 if you use requests. Your code is far too complicated. I have no idea why you are using subprocess.call either... You should just be able to do something like if self.command == "livingroom_on": self.say("Lights are on now, Sir") r = requests.get('http://192....
by Thursten
Fri Jul 21, 2017 12:18 pm
Forum: AIY Projects
Topic: Actions Domoticz link
Replies: 13
Views: 2854

Re: Actions Domoticz link

I found this somewhere I can't test it now, but would it work? At the top of the script i put: import urllib import urllib2 import json import requests And I've got this as action: # ====================================================== # Light Control: Control Bedroom and Livingroom lights. # ====...
by Thursten
Fri Jul 21, 2017 10:18 am
Forum: AIY Projects
Topic: Actions Domoticz link
Replies: 13
Views: 2854

Actions Domoticz link

Hello, I am trying to make a custom voice command/action I want to turn my Hue lights on through Domoticz. Practically what it should do is I say: "Hey google, Living room light on" and it should go to a link like this: http://<Domoticz-ip:port>/json.htm?type=command¶m=switchlight&idx=10&switchc...
by Thursten
Thu Jul 20, 2017 3:28 pm
Forum: AIY Projects
Topic: AIY Voice Kit with Snowboy (Without HAT)
Replies: 4
Views: 1797

AIY Voice Kit with Snowboy (Without HAT)

Hello Guys, I was wondering if anyone had a tutorial on how to change the hotword/wake word.. I've read it is easiest done with Snowboy but I couldn't find a tutorial on how to do that, especially with a existing image and configuration. I used the tutorial on Android Authority and some update artic...

Go to advanced search