Giter VIP home page Giter VIP logo

Comments (2)

pixelherodev avatar pixelherodev commented on June 19, 2024 1

You can use "resume", or "resume music".

My question here is whether "play music" should resume - or rather, whether it should only resume. Here's my idea of how this should be implemented:

IF A SKILL IS PAUSED:
    RESUME
ELSE
    SELECT FALLBACK MUSIC SKILL, START PLAYING

For instance, I could set Pandora as my default music skill, so if I say "Play music" and nothing is already playing, it'll launch Pianobar, which - importantly - will resume from the last station unless otherwise configured.

from skill-playback-control.

JarbasAl avatar JarbasAl commented on June 19, 2024

#35 integrates the new CPS_track_status mechanism, which allows to know what track is supposed to be on and current playback status

"play music" with #32 becomes media type MUSIC and phrase is "" empty string

i'd argue that condition is enough for this skill to also be a common play skill, and handle that case for resuming playback

it could be used check condition above

IF STATUS == PAUSED:
    RESUME
ELSE
    ALLOW OTHER SKILL TO HANDLE QUERY

maybe we need yet another status in the Enum? (Done MycroftAI/mycroft-core#2674)

the concept of a default music skill can be tackled after this

from skill-playback-control.

Related Issues (6)

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.