tom-archer / gmusicaiy Goto Github PK
View Code? Open in Web Editor NEWGoogle Music action for Google AIY Voice Kit
Google Music action for Google AIY Voice Kit
Line 64 should be 'event_manager = self.player.event_manager()'
On a playlist with 4 items, the first item plays, the second item starts playing but the action aborts and the remaining 2 items do not play.
With the 'self' added all 4 items play OK
Hi
Would you be able to share your hardware set up using the AIY kit and scroll phat?
looking to create something similar and wondered what the best was was?
thanks
can I install it without aiy kit? I have raspberry pi 3 and microphone and speaker
Creating the issue since the AIY project has been updated and removed the action.py and main.py. Now the example code in the readme is out dated, I have attempted without testing to create a small example based on your code example and the assistant_library_with_local_commands_demo.py
from playscroll import Player
if text == 'play (your playlist)':
assistant.stop_conversation()
playlist = text.replace("play","").strip()
if Player.load_playlist(playlist) is not None:
aiy.audio.say("Playing " + playlist)
Player.start_playlist()
RPi.GPIO.setmode(RPi.GPIO.BCM)
RPi.GPIO.setup(23, RPi.GPIO.IN)
# Wait for button press to stop
while Player.playing and RPi.GPIO.input(23):
time.sleep(1)
Player.stop()`
There might be a better way to do it but as a quick example that is what I have come up with. Again I have not tested this but I don't see why it wouldn't work.
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.