Giter Club home page Giter Club logo

Comments (22)

forslund avatar forslund commented on June 15, 2024

Hmmm, works for me. What does your Play.voc look like and what does your Phrase.rx look like? And what phrase are you trying with?

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

phrase.rx:
play (?P.)
spil (?P.
)
start (?P.)
bork (?P.
)

Play.voc:
spil
start
bork
play

The strange thing is it works useing play XXXX but not spil XXXX

from skill-playback-control.

forslund avatar forslund commented on June 15, 2024

Did github eat part off your phrase.rx?

This is what the Swedish looks like right now:
phrase.rx

spela upp (?P<Phrase>.*)
starta (?P<Phrase>.*)
bork (?P<Phrase>.*)

Play.voc:

spela upp
starta
bork

I'll check with your values, and I'll assume the regex was eaten by github

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

Yah he tok some thing away....

play (?P<Phrase>.*)
spil (?P<Phrase>.*)
start (?P<Phrase>.*)
bork (?P<Phrase>.*)

from skill-playback-control.

forslund avatar forslund commented on June 15, 2024

Weird, exactly those works for me when I insert them into the swedish translation :/

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

Then I try copying swedish and see what happens :)

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

No dosnt work....

I try with the tune in skill and "spil dr p1 med tune in" wich dosnt work, but "play dr p1 med tune in does"
And can se in log that the fist dosnt rip the spil but second does rip play.....

strange

from skill-playback-control.

forslund avatar forslund commented on June 15, 2024

Just to verify: your lang is set to danish and not still on english?

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

it seems that it is related to spil as if I add ostemad to Play.voc and Phrase.rx and use "ostemad dr p1 med tune in" it does work.....
And yes language is set to da-dk and when copying the sv-se I got funny talk from mycroft when testing :)

from skill-playback-control.

forslund avatar forslund commented on June 15, 2024

Verified the phrase and it works here... Very strange....

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

Ohhh the funnytalk is in english....but he resads the da play.voc and phrase.rx as ostemad did work.....
and the skill replyes in danish as everything else does....

from skill-playback-control.

forslund avatar forslund commented on June 15, 2024

Do you have other skills that reacts to "spil" that may override the playback control skill?

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

could it be related to resolve_resource_file on line 58 pyflaxe says it is undefined ?

image

I can se in the log that it is the common play skill that handles and it is the tune in that replyes.....

from skill-playback-control.

forslund avatar forslund commented on June 15, 2024

That is an issue but it isn't used here (it's old backwards compatibility code I think)

The splitting should be handled here: https://github.com/MycroftAI/skill-playback-control/blob/19.02/__init__.py#L137

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

Ill put in som log lines and see what happens around line 137

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

I see this

[0:07] Decoding of A03H.mp3 finished.
18:08:28.245 - Playback Control Skill - INFO - utterance
18:08:28.246 - Playback Control Skill - INFO - Spil
18:08:28.247 - Playback Control Skill - INFO - Resolving Player for: spil p1 med tune in
18:08:33.037 - Playback Control Skill - INFO - Playing with: mycroft-skill-tunein
18:08:40.129 - Playback Control Skill - INFO - utterance
18:08:40.130 - Playback Control Skill - INFO - play
18:08:40.130 - Playback Control Skill - INFO - Resolving Player for: dr p1 pƄ tune in
18:08:45.090 - Playback Control Skill - INFO - Playing with: mycroft-skill-tunein

What i notise is that Spil is capitalised even though I entered spil in the cli.....

I put in to loglines - one for utterance and one for self.log.info(message.data['Play']) to se what it hold...

from skill-playback-control.

forslund avatar forslund commented on June 15, 2024

Oh that is strange. But it would explain the issue. Can you try adding the capitalized Spil to the voc?

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

did try that and did try adding message.data['Play'].lower() in line 139 to make sure it used lower letters.
Nothing helps.....Other words does but not spil ;)

afspil works.....but not spil realy strange.

from skill-playback-control.

penrods avatar penrods commented on June 15, 2024

Slight tangent, but in the same area:

I realized a few days ago that I left "bork" in there accidentally from early testing -- I needed something that was distinct from Play before CommonPlay had been implemented. Whoops!

I was also talking to the skills team about removing "start" and just using "play" as the trigger on this. Any strong feelings from you two?

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

I never have strong feelings ;)
It is still strange that all words works except "spil" :)

from skill-playback-control.

forslund avatar forslund commented on June 15, 2024

start isn't a phrase I ever use so I'm fine with removing it.

from skill-playback-control.

andlo avatar andlo commented on June 15, 2024

You never guess - today spil works.....Cant see any changes but it works. And it isnt because of changes to my voice, as I always test using the cli.
But it do work - really strange.

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.