Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Junior Member thouky's Avatar
    Join Date
    Dec 2010
    Location
    Cottenham, England
    Posts
    27
    Quote Originally Posted by chill View Post
    Thank you - got it now. I thought I'd followed the steps, but at one point my phone told me that it couldn't install the shortcut because it's from an untrusted source - but it seemed to skip past that when I clicked 'Add to Siri'. That was clearly the wrong thing to do.

    In their infinite wisdom Apple don't let you see the option to allow untrusted shortcuts until you first install and run a shortcut from their gallery. I'm slow to criticise Apple, but that's just dumb, sorry.*

    So after allowing untrusted shortcuts, I was able to complete the installation as intended. It's working well now.
    Great to hear that you got it working. Hopefully you will find it useful once you get your voice back.

    I have added a couple of notes to the installation instructions to highlight the Add to Siri and Allow Untrusted Shortcuts issues.

  2. #12
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,315

    Control via sirs / Siri shortcuts(Pengsupport for Siri shortcuts?)

    Thanks for the insights! I'll certainly play with it - once I find some
    time to do so...

    > However, this touches on a problem with my script in its current form.
    > Siri's speech recognition attempts to apply its own sense of context to
    > what it hears... which the script then supplies to LMS as the search:
    > parameter of the genres, artists, albums, and/or titles commands. Unless
    > Siri ended up with precisely the same spelling the server obviously
    > won't provide a match. It works most of the time for me, but there are a
    > few artist and album names that rarely, if ever, work.


    It's an issue I've seen with many voice control systems: while we would
    like to talk in German (or whatever other language) to those systems,
    many of our artists' names are English. Even worse so album or track
    titles. Those systems are still struggling dealing with mixed languages
    ("spiel mir Them Changes von Thundercat"). This is particularly true
    when the voice recognition system doesn't know the context of the
    utterance. I'll see.

    --

    Michael

  3. #13
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,315

    Control via sirs / Siri shortcuts(Pengsupport for Siri shortcuts?)

    Ok, so I had some fun with Siri. Mostly because of her poor accent when
    reading the English responses in German...

    One major flaw I see in your code: you expect players to be in sync
    gropus. Without a sync group the script would fail badly. Line 597 would
    crash the script.

    After I added a condition in front of it (if (result.syncgroups_loop))
    it did work. Though I'd often get errors due to unknown sync groups. Eg.
    "undefined now paused".

    Overall I'd need to spend a lot of effort to localize this. Which brings
    me to the next question: what's a usable workflow? I didn't find any
    search feature in scriptable's editor, nor line numbers. Which makes
    navigating difficult. How did you write all that code?
    --

    Michael

  4. #14
    Junior Member thouky's Avatar
    Join Date
    Dec 2010
    Location
    Cottenham, England
    Posts
    27
    Quote Originally Posted by mherger View Post
    One major flaw I see in your code: you expect players to be in sync
    gropus. Without a sync group the script would fail badly. Line 597 would
    crash the script.
    Yes, all my players are always in a single sync group, so I missed that the server omits the syncgroups_loop variable in that case. It should be fixed in the latest version.

    Someone else reported the same problem:
    https://github.com/thoukydides/siri-...ntrol/issues/1

    Though I'd often get errors due to unknown sync groups. Eg.
    "undefined now paused".
    I’ve seen that once, but haven’t been able to reproduce it.

    I will investigate...

    Which brings
    me to the next question: what's a usable workflow? I didn't find any
    search feature in scriptable's editor, nor line numbers. Which makes
    navigating difficult. How did you write all that code?
    I do everything on my iPad Pro with external keyboard. For debugging I make do with Scriptable’s built-in editor, but for anything non-trivial I use Textastic:
    https://apps.apple.com/gb/app/textas...8/id1049254261

    It can access the Scriptable folder on iCloud Drive directly. No need to explicitly upload/download or otherwise sync the file.

  5. #15
    Junior Member thouky's Avatar
    Join Date
    Dec 2010
    Location
    Cottenham, England
    Posts
    27
    Quote Originally Posted by mherger View Post
    One major flaw I see in your code: you expect players to be in sync
    gropus. Without a sync group the script would fail badly. Line 597 would
    crash the script.

    After I added a condition in front of it (if (result.syncgroups_loop))
    it did work. Though I'd often get errors due to unknown sync groups. Eg.
    "undefined now paused".
    That should now be fixed by:
    https://github.com/thoukydides/siri-...83af87ee2bb8fc

    I had forgotten to set a groupname for players that weren't in a sync group.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •