Home of the Squeezebox™ & Transporter® network music players.
Page 10 of 10 FirstFirst ... 8910
Results 91 to 92 of 92
  1. #91
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,898
    Maybe I was thinking incorrectly ... so re-reading ...
    "It works great, for the most part. However, there is one issue. If I do something like "resume living room music", rhasspy will detect that and try to continue playback on the relevant player. However, it will also send a "request recognized" sound to the squeezebox using aforementioned rhasspy plugin that uses this LMS plugin.

    This will end up in a race condition where the announce sound is what's happening while the play command comes in and so nothing really happens. The notification sound finishes playing and after that, the music still won't play."
    Instead of issuing the resume why not insert the "request recognized" sound as the first item in the playlist and shuffle everything else down by one ... and then issue the resume?
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin, AllZIC Radio, Caroline Flashback, Cesky rozhlas, Dandelion Radio, Europa Radio Jazz, Frequence3, FSK, JukeRadio, KlassikRadio.de, Linn Radio, Mother Earth, Naim Radio, Nova.fr, RadioBlues Flac, Radio Espace, Radio Swiss, RTE Ireland, Somehow Jazz, Supla Finland

  2. #92
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    1,236
    Quote Originally Posted by Paul Webster View Post
    Instead of issuing the resume why not insert the "request recognized" sound as the first item in the playlist and shuffle everything else down by one ... and then issue the resume?
    I still don't understand what the playlist has to do with anything.
    See post #86 for an analysis of the issue.

    The simplest solution is for rhasspy to first send the "play" command, and then send the "announce" command (if rhasspy can do this). Otherwise, just disable the announcement for this specific scenario.
    Various SW: Web Interface | Text Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Posting Permissions

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