Git Product home page Git Product logo

gmusicaiy's People

Contributors

tom-archer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rdugue kriziaf

gmusicaiy's Issues

playscroll.py, missing self in end_callback line 64

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

Hardware Setup

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

AIY project update no action.py

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.

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.