Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1

    Issue streaming VoiceRSS mp3 content to piCorePlayer

    I'm working to integrate spoken notifications into the Squeezebox binding (http://docs.openhab.org/addons/bindi...ox/readme.html) in the openHAB2 home automation platform (http://www.openhab.org/). I've run into a problem with the piCorePlayer that I'm not seeing with SqueezePlay, and/or other Squeezebox devices, such a Receivers, Booms, etc.

    The idea is that the openHAB system will generate a spoken notification that will be streamed to a Squeezebox player. openHAB uses a variety of TTS services to generate the speech content (MaryTTS, VoiceRSS, etc.). I'm currently using VoiceRSS. openHAB is configured to use 44kHz 16 bit mono sampling from VoiceRSS.

    Here's a high-level view of how a notification works. A Squeezebox player is configured in openHAB to receive TTS notifications. The openHAB TTS functionality does a transaction with VoiceRSS to get the mp3 content, then exposes that mp3 content with a local URL that's served up by the openHAB built in web server. The Squeezebox binding in openHAB pauses the player, adds the URL to the squeezebox player's playlist, plays the notification playlist entry, then deletes the notification playlist entry.

    This works well when using Squeezebox devices (Receivers, Booms, etc.), as well as SqueezePlay running on Windows or Mac systems. However, when using the piCorePlayer, the notification is not playing.

    Here are the versions in use:
    piCorePlayer version 3.02
    SqueezeLite v1.8.5-823
    HiFiBerry DAC+ Light (problem also occurs with analog outputs)
    LMS version 7.9.0 - 1483028105 @ Thu Dec 29 17:25:39 UTC 2016

    Funny thing is... If I copy the VoiceRSS mp3 content (it's cached locally on disk by openHAB), and add that to the LMS music library, it'll play fine through the piCorePlayer. It's only when openHAB streams it that it doesn't play on the piCorePlayer, even though it plays fine when streaming to all the other players.

    Does anyone have any thoughts on where I should start looking for the root cause of the problem?

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,758

    Issue streaming VoiceRSS mp3 content topiCorePlayer

    In a similar thread related to openhab (iirc) there was an issue with
    the generated mp3 file, and the streaming server's header. Can you tell
    us what those headers are, and what the final file really is?
    --

    Michael

  3. #3
    Thanks for the help, Michael. Let me know if this is helpful.

    Here's the request header to the openHAB web server:
    GET /audio/4143be14-784e-4a88-817b-99aceaafd4fe.mp3 HTTP/1.0
    Cache-Control: no-cache
    Connection: close
    Accept: */*
    Host: 192.168.1.60:7000
    User-Agent: iTunes/4.7.1 (Linux; N; Debian; armv7l-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/7.9.0/1483028105
    Icy-Metadata: 1
    And the response header from the openHAB http server:
    HTTP/1.1 200 OK
    Date: Mon, 02 Jan 2017 00:05:19 GMT
    Content-Type: audio/mpeg
    Content-Length: 14636
    Server: Jetty(9.2.19.v20160908)
    And the mp3 file from the openHAB cache.
    https://drive.google.com/file/d/0Bwm...ew?usp=sharing

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,235
    Is this a https vs http problem ?

  5. #5
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,758

    Issue streaming VoiceRSS mp3 content topiCorePlayer

    Wasn't there a problem with low-bitrate streams on squeezelite reported
    in that other thread? Your file isn't 128kbps, but only 56:

    Time: 00:02 MPEG1, Layer III [ 56 kb/s @ 44100 Hz - Mono ]


    --

    Michael

  6. #6
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,235
    Quote Originally Posted by mherger View Post
    Wasn't there a problem with low-bitrate streams on squeezelite reported
    in that other thread? Your file isn't 128kbps, but only 56:

    Time: 00:02 MPEG1, Layer III [ 56 kb/s @ 44100 Hz - Mono ]


    --

    Michael
    That problems was traced sdown to a bad build of squeezelite 1.8 ( see http://forums.slimdevices.com/showth...l=1#post870856 ) as old version1.5 of squeezelite was ok .

    Perhaps it is the same issue as problem is only with squeezelite.

  7. #7
    Quote Originally Posted by bpa View Post
    That problems was traced sdown to a bad build of squeezelite 1.8 ( see http://forums.slimdevices.com/showth...l=1#post870856 ) as old version1.5 of squeezelite was ok .

    Perhaps it is the same issue as problem is only with squeezelite.
    Is it possible to install the older 1.5 rev of squeezelite on piCorePlayer? Or, run an older version of piCorePlayer with the 1.5 rev of squeezelite to test your theory?

  8. #8
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,235
    Quote Originally Posted by mhilbush View Post
    Is it possible to install the older 1.5 rev of squeezelite on piCorePlayer? Or, run an older version of piCorePlayer with the 1.5 rev of squeezelite to test your theory?
    Yes but getting 1.5 of squeezelite may be hard. Read the rest fo the solution as I think Ralphy did a new build of squeezelite and/or go to the PCP thread for help on hwo to update it.

  9. #9
    Quote Originally Posted by bpa View Post
    Read the rest fo the solution as I think Ralphy did a new build of squeezelite and/or go to the PCP thread for help on hwo to update it.
    Thanks. The last post was this, which does include directions on how to build 1.5. I'll pick it up from here to see if I can test on 1.5.

    Thanks for the help.

  10. #10
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,778
    Quote Originally Posted by bpa View Post
    That problems was traced sdown to a bad build of squeezelite 1.8 ( see http://forums.slimdevices.com/showth...l=1#post870856 ) as old version1.5 of squeezelite was ok .

    Perhaps it is the same issue as problem is only with squeezelite.
    I don't think that the problem is a bad build of 1.8 as the same problem occurs when the forum member built 1.8 on the problem machine.

    The mp3 code was modified by Triode right after 1.5 was released to add support for readling local files for the local player plugin.

    Also the problem mp3 stream in the thread above was 1 channel, 16000Hz not sure of the mp3 bit rate yet, as I've requested a file to test with from them but have had no response as yet.
    Last edited by ralphy; 2017-01-02 at 11:35.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

Posting Permissions

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