Go to advanced search

by groundcontroltom
Tue Nov 07, 2017 1:07 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

I'm pretty sure I had this working (albeit slowly) on a Pi Zero way back when it first came out. Though I have noticed some references to Pi Zero incompatibility in the new AIY software. Haven't had time to check it out.
by groundcontroltom
Sat Nov 04, 2017 10:42 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

It seems the AIY API (and hence Raspbian image) have moved on significantly since I created this example. Hopefully I'll be able to find the time to grab the latest AIY image and check out the latest docs. In the mean time keep an eye out here for any progress: https://github.com/Tom-Archer/gmusicai...
by groundcontroltom
Tue Oct 03, 2017 4:16 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

I only have a free account ;)
by groundcontroltom
Fri Sep 15, 2017 7:59 am
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

Yeah, you'd just have to hook in the appropriate code. E.g. if it fails to find a playlist that matches, look for a station, otherwise look for a matching song.
by groundcontroltom
Fri Sep 15, 2017 6:44 am
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

If I recall correctly the API supports searching for and playing individual songs.
by groundcontroltom
Tue Jun 06, 2017 1:34 pm
Forum: AIY Projects
Topic: 3D printed case
Replies: 22
Views: 3087

Re: 3D printed case

No worries, would love to see photos once it's assembled!
by groundcontroltom
Sun May 28, 2017 12:48 pm
Forum: AIY Projects
Topic: 3D printed case
Replies: 22
Views: 3087

Re: 3D printed case

Only a slot for the power, I run headless so have no need for USB/Ethernet access.
by groundcontroltom
Sat May 27, 2017 7:24 am
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

I think you have an older version of my code with a bug in. Might be easiest to grab the latest code from my GitHub page.
by groundcontroltom
Wed May 24, 2017 6:45 am
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

Any errors being output on the terminal?
by groundcontroltom
Tue May 23, 2017 8:42 pm
Forum: AIY Projects
Topic: AIY speaker not working
Replies: 12
Views: 6649

Re: AIY speaker not working

Jeez, surely you could have bought a Pi3 and the individual parts for the same price? The email address is: [email protected]
by groundcontroltom
Tue May 23, 2017 6:28 pm
Forum: AIY Projects
Topic: AIY speaker not working
Replies: 12
Views: 6649

Re: AIY speaker not working

Don't see why not, they didn't ask for proof of purchase. Hope you didn't pay too much!
by groundcontroltom
Tue May 23, 2017 5:53 pm
Forum: AIY Projects
Topic: AIY speaker not working
Replies: 12
Views: 6649

Re: AIY speaker not working

They did, but in return for me shipping back the kit I had (they would have covered postage).
by groundcontroltom
Mon May 22, 2017 1:17 pm
Forum: AIY Projects
Topic: AIY speaker not working
Replies: 12
Views: 6649

Re: AIY speaker not working

Get in touch with Google, they offered to send me a new kit to replace the missing cardboard box, but since I'd already printed a case I turned them down.
by groundcontroltom
Wed May 17, 2017 5:55 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

Not sure how that's possible - seems to work fine on my side.
by groundcontroltom
Wed May 17, 2017 4:09 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

It's only polled every second so you may have to hold it longer. Easy to adjust!
by groundcontroltom
Wed May 17, 2017 12:34 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

You shouldn't need to enable 'Cloud Voice', not sure how much of an effect that will have. With the 'sys.path.append', if you've copied the gmusicaiy files to the same place as 'action.py' you don't need it. Otherwise you need to point to where you've put them. Regarding your specific error of "Name...
by groundcontroltom
Wed May 17, 2017 6:47 am
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

According to the API docs:
This is not stored locally, and is sent securely over SSL.
by groundcontroltom
Tue May 16, 2017 4:47 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

You can always strip any extra words off in the 'run' method of PlayAction with:

Code: Select all

playlist = voice_command.replace("play","").strip()
by groundcontroltom
Tue May 16, 2017 4:27 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

Do you have the "looking for..." line? At a guess it's searching for "Music Now 96" and not finding a match.
by groundcontroltom
Tue May 16, 2017 4:06 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

Could you post the debug output? You should get something like this: [2017-05-16 20:29:12,158] INFO:speech:transcript: play perturbator Looking for... perturbator Found playlist data. Found... Gym Found... Modern Synthesis Found match... Perturbator @ Scala Make sure you've got the latest copy of th...
by groundcontroltom
Tue May 16, 2017 3:09 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

The display I'm using is I2C so I soldered the 5 pin header onto the Google board and hooked it up with some jumper cables.

For LEDs you should be ok connecting them up to the Servo or Driver pins which are routed back to the RPi GPIO.
by groundcontroltom
Tue May 16, 2017 3:05 pm
Forum: AIY Projects
Topic: 3D printed case
Replies: 22
Views: 3087

Re: 3D printed case

Nice idea, not sure how printers would deal with it, but I'll certainly take a look.
by groundcontroltom
Tue May 16, 2017 5:58 am
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

Glad you got it working, I only put together the playlist example as a proof of concept, hopefully it's enough for you to take forward and extend!
by groundcontroltom
Mon May 15, 2017 8:44 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

I've pushed an updated version to the repository, if you get to the point where it's searching for playlists, it should give some more useful text: [2017-05-16 20:29:12,158] INFO:speech:transcript: play perturbator Looking for... perturbator Found playlist data. Found... Gym Found... Modern Synthesi...
by groundcontroltom
Mon May 15, 2017 7:46 pm
Forum: AIY Projects
Topic: Google AIY & Google Music
Replies: 50
Views: 12793

Re: Google AIY & Google Music

In the console window you should see a load of debug coming out from the gmusicapi with things like whether you're logged in etc. Any of those? According to the API docs, if you're using two-factor you need to replace your account password with a app-specific password. If you use the gmusic web-app ...

Go to advanced search