Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Jun 2020
    Posts
    16

    no audio from squeezeLite

    Hello,

    I'm using LMS and SqueezeLite for a few years by now, but lately I changed some hardware and now there is no audio from my player.

    Server
    LMS is on Intel NUC, version 8.1.1 - 1610364019

    Player
    Player is on RPI 3B+ with Latest OS
    SqueezeLite firmware v1.8
    I also have Rhasspy for voice assistance, version 2.5.10

    Lately I replaced my 4-mic array microphone and aux connected speaker with Jabra Speak 510.
    But now I can hear when Rhasspy speaks, but can't hear music from SqueezeLite.

    When I add:
    Code:
    SL_SOUNDCARD="sysdefault:CARD=USB"
    I can hear music from SqueezeLite, and instead I can not hear when Rhasspy speaks.

    I searched on google with no luck.
    Would appreciate any help.

    On a side note, How can I upgrade SqueezeLite to version 1.9?
    I tried
    Code:
    sudo apt update
    and I get a message that there aren't any updates

    I installed it with this plain simple code:
    Code:
    sudo apt install squeezelite
    sudo apt install libflac-dev
    Last edited by dror_israel; 2021-06-01 at 23:49.

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,799
    LMS client using ALSA have exclusive access to audio - so if you want Rhasspy & squeezelite to output audio simultaneously - you probably need to use pulseaudio and pulseaudio build of squeezelite.
    If not simultaneous output - then use squeezelite option to close use of Alsa device if idle after x secs.

    The "apt install" version of Squeezelite is not maintained up to date. Use Ralphy's repo to get builds.

    https://sourceforge.net/projects/lms...s/squeezelite/

  3. #3
    Junior Member
    Join Date
    Jun 2020
    Posts
    16
    Thanks

    Quote Originally Posted by bpa View Post
    if you want Rhasspy & squeezelite to output audio simultaneously - you probably need to use pulseaudio and pulseaudio build of squeezelite.
    How can I do that?

    Quote Originally Posted by bpa View Post
    Use Ralphy's repo to get builds
    which file if for rpi 3b+ with buster?
    Last edited by dror_israel; 2021-06-02 at 02:13.

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,799
    Before looking at pulseaudio.

    Answer the basic question - do you NEED audio from both squeezelite and Rhasspy simultaneously. It may end up causing more problems if Rhasspy doesn't expect it.

    Quote Originally Posted by dror_israel View Post
    How can I do that?
    Depends on how you installed Buster and which package you used to install.
    Is pulseaudio installed and is there a pulseaudio process running ?

    And that?
    If using ALSA version then use the "-C" option with a value to set timeout for idle.

    To see all squeezelite command line option use the "-?" option.

    which file if for rpi 3b+ with buster?
    IIRC rpi 3+ is usually armhf.

    So look for file with "armhf" and "pulse"

    Uninstall the "apt" package before installing the Ralphy one to make no confusion.
    Last edited by bpa; 2021-06-02 at 02:16.

  5. #5
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,646
    @dror_israel

    On a side note, How can I upgrade SqueezeLite to version 1.9
    Not wishing to muddy the waters, nowadays I usually use either " sudo apt install squeezelite " or use the package manager in Buster Desktop to download and install.

    I check that it is working and then run the following to update squeezelite.

    Code:
    sudo /etc/init.d/squeezelite stop
    wget -O squeezelite.tgz https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1386-armhf.tar.gz
    sudo tar -C /usr/bin -zxvf squeezelite.tgz
    sudo chmod a+x /usr/bin/squeezelite
    sudo /etc/init.d/squeezelite start
    #If running with no sound, repeat

    Code:
    sudo /etc/init.d/squeezelite restart
    This is for the alsa package, you would need a different one (as per the advice from bpa) for pulse-audio.

    ronnie

  6. #6
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,799
    Rhasspy seems to be some sort of voice assistant - I think there could be difficulties if pulseaudio is used to mix audio (e.g. does rhasspy support pulseaudio ?) but also maybe difficulties if using "-C" to swap between LMS and Rhasppy on same speaker.

    In summary - do more research on Rhasspy before putting more energy into squeezelite solutions.

  7. #7
    Junior Member
    Join Date
    Jun 2020
    Posts
    16
    using "-C" to swap between LMS and Rhasppy on same speaker works.


    [CODE]
    sudo chmod a+x /usr/bin/squeezelite
    [/QUOTE]

    What is the meaning of: a+x?

  8. #8
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,799
    Quote Originally Posted by dror_israel View Post
    using "-C" to swap between LMS and Rhasppy on same speaker works.


    [CODE]
    sudo chmod a+x /usr/bin/squeezelite
    What is the meaning of: a+x?[/QUOTE]

    "+x" means make file "executable"
    "a" means for all users a = ugo owner (u) group (g) and others (o) )

Posting Permissions

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