Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 49
  1. #21
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,318
    Per our PM, I cannot get the skill to query the audio, but I have a Bridge whose only job is to create a virtual player and make the content accessible through a webserver.
    So, I've used foobar2000 to tried that vs stream.mp3 method. It takes ~10s for playback to start with stream.mp3 method and it's immediate with the webserver bridge. I'm a bit surprised, but I've tested that enough times to be sure. It's the same whether foobar plays before playback is started on the virtual player in LMS or after.
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  2. #22
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,083
    Quick update ... there was a mistake in my code that meant things got confused when there was more than one user of this mechanism.
    That is now resolved and Philippe is able to use the hacky "skill" that I made.
    He has a prototype running of an alternative to the LMS stream.mp3 - but to have a basic standalone player you can still use the stream.mp3 method.
    I have had 1 additional request to try it out and have sent details to that person via an Amazon beta test invitation.

    My hope is that one of the builders of the existing Alexa skills takes this on board and includes it in their stuff rather than my hack but it is there for those that ask to try it.
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  3. #23
    Senior Member
    Join Date
    Feb 2008
    Posts
    4,826
    Thanks for the invite ... struggling with network/router issues a the moment, so can't try it yet.
    LMS server: Pi Zero

    Amp: Denon PMA-50

    Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Avantree Priva BT transmitter

    Brexit = ∞ stupidity


    ------------------------------------------------------------------------------------

  4. #24
    hmmm....Ill be watching this thread. I have been on the fence about picking up a smart speaker. My Squeezebox Boom has been sounding a little sickly as of late, so a smart speaker like the Amazon Echo is what I've been leaning towards but have been discouraged by the lack of support for a local music library. Being able to utilize LMS with Alexa would be awesome! Thanks for taking a stab at this!
    Buck
    "I have come to chew bubblegum and kick ass. And I am all out of bubblegum" - "Rowdy" Roddy Piper as John Nada in "They Live"

    Squeezebox v.1(x2)(retired),Squeezebox v.2, Squeezebox Boom, Squeezebox Controller, Squeezebox v.3, I use OrangeSqueeze for Android on Samsung Galaxy S8

  5. #25
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,083

    Using Amazon Alexa device as LMS player

    Send me a PM with your email address and I'll add you into the list of testers (when you get your Echo compatible device).
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  6. #26
    I will do that. It probably isn't going to be in the very near future. My Boom still is good at lower volumes. Its more for when we are outside and want a little higher volume of music around a fire pit that the sound deteriorates on it. I live in the State of Minnesota. The weather here has not been friendly to backyard fires lately. :-)

    Buck
    "I have come to chew bubblegum and kick ass. And I am all out of bubblegum" - "Rowdy" Roddy Piper as John Nada in "They Live"

    Squeezebox v.1(x2)(retired),Squeezebox v.2, Squeezebox Boom, Squeezebox Controller, Squeezebox v.3, I use OrangeSqueeze for Android on Samsung Galaxy S8

  7. #27
    Junior Member
    Join Date
    Mar 2019
    Posts
    3

    cutting corners

    I just read the thread and it inspired me to cut corners. I just hijacked a radio station on tune-in, that alexa knows and redirected it to the logitech stream url. It works and doesn't require any alexa skill. It suffers from the rather large delay due to buffering. But beside that, it works great.

    In a nutshell:

    If you say play "Lucky 7 Music Radio" the echo device plays http : //ic2514.c1916.fast-serv.com/stream.m3u (I'm not allowed to post links)
    So I changed to DNS entry for ic2514.c1916.fast-serv.com to point to a local lighthttp, just dropped a stream.m3u in the www-directory which contained one line: http : // lms-ip:9000/stream.mp3?player=Echo (remove blanks)

    It might not be as elegant as a custom skill, but it's good enough for me.

  8. #28
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,083
    Yep - that is broadly the same approach but does need the user to have ability to manipulate local DNS and run a web server (although I suppose it would be possible to use LMS itself as the dummy web server by putting in a tiny plug in).
    If you want to try my hack just PM me your email address.
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  9. #29
    Junior Member
    Join Date
    Mar 2019
    Posts
    3
    Quote Originally Posted by Paul Webster View Post
    Yep - that is broadly the same approach but does need the user to have ability to manipulate local DNS and run a web server (although I suppose it would be possible to use LMS itself as the dummy web server by putting in a tiny plug in).
    If you want to try my hack just PM me your email address.
    I will.

    Fiddling around with lms and the echo as a player, the latency is really a disaster. It's around 60 seconds here. I tried to reencode the lms stream.mp3 with ffmpeg to use HLS.
    Code:
    ffmpeg -fflags nobuffer -flags low_delay  -i http://192.168.1.78:9000/stream.mp3?player=Echo  -acodec aac -strict -2 -hls_time 1  -hls_wrap 6 -f hls stream.m3u8
    I hoped to decrease the buffer in the echo device through chunking, but it doesn't really work. I'm even considing streaming wav/pcm to the echo device, because the buffer could be set to a certain size and would be filled quickly with very few wav seconds... does anybody have a idea, how to reduce latency?

  10. #30
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,318
    Quote Originally Posted by malted View Post
    I will.

    Fiddling around with lms and the echo as a player, the latency is really a disaster. It's around 60 seconds here. I tried to reencode the lms stream.mp3 with ffmpeg to use HLS.
    Code:
    ffmpeg -fflags nobuffer -flags low_delay  -i http://192.168.1.78:9000/stream.mp3?player=Echo  -acodec aac -strict -2 -hls_time 1  -hls_wrap 6 -f hls stream.m3u8
    I hoped to decrease the buffer in the echo device through chunking, but it doesn't really work. I'm even considing streaming wav/pcm to the echo device, because the buffer could be set to a certain size and would be filled quickly with very few wav seconds... does anybody have a idea, how to reduce latency?
    I think the only option is to starve the player with pseudo-real-time stream. I did an Alexa version of my bridges and I discussed that with Paul. It works as well, but for me, the real showstopper is that you can’t really control it from LMS. We did not find a way for commands (play/pause/stop) to be relayed to a skill. So I can easily do the audio data ´starving’ but I don’t feel it will be a great solution anyway. In addition, in the tests I’ve done you can sent pcm to Alexa (in a wav or in an audio/L16 format) so the pseudo real-time will not be accurate. My bridge can decompress any stream on the fly to à given format amongst plain pcm, flac or mp3 so the only viable option would be mp3 at CBR and use that for throughput estimation ... not great anyway
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

Posting Permissions

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