Just apt install squeezelite that’s all you need to play music.

Max2Play Home Forums Max2Play Projects and Builds Just apt install squeezelite that’s all you need to play music.

Viewing 2 posts - 1 through 2 (of 2 total)
  • 25. September 2024 at 12:16 #53224

    I got it working on a nano pi neo with a USB to audio.

    root@nanopineo:~# apt install squeezelite
    root@nanopineo:~# nano /etc/systemd/system/squeezelite.service

    In there paste this:

    [Unit]
    Description=Squeezelite music player
    After=network.target

    [Service]
    ExecStart=/usr/bin/squeezelite -o hw:CARD=Device,DEV=0
    Restart=always
    User=root

    [Install]
    WantedBy=multi-user.target

    root@nanopineo:~# systemctl daemon-reload
    root@nanopineo:~# systemctl enable squeezelite
    root@nanopineo:~# systemctl start squeezelite

    Then on your „Logitech Media Server“ on the top right can click down and see the name „nanopineo“ for me at lest.

    Can list your audio devise with this command:

    root@nanopineo:~# squeezelite -l

    To test if it works I did this command:

    root@nanopineo:~# squeezelite -o hw:CARD=Device,DEV=0

    Then have to press Crtl C to stop it.

    Here is a link to the USB audio I got and just plug it in and the squeezelite -l will see it.

    I got the USB audio from Amazon can’t put links in here but the name of it is:

    Plugable USB Audio Adapter with 3.5mm Speaker-Headphone and Microphone Jack, Add an External Stereo Sound Card to Any PC, Compatible with Windows, Mac, and Linux – Driverless

    I did not know you only have to install the squeezelite to play music from the Logitech Media Server. But there is no Max2Play web page like this but a lot easier to make it work.

    -Raymmond Day

    • This topic was modified 1 week, 4 days ago by Raymond Day.
    25. September 2024 at 14:32 #53226

    If you want to use a player name just add this to the end of the file like this line:

    ExecStart=/usr/bin/squeezelite -o hw:CARD=Device,DEV=0 -n nanopineo

    So I got mine named nanopineo

    Then restart it.

    root@nanopineo:~# systemctl restart squeezelite

    Right away the name will switch on the LMS.

    -Raymond Day

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Register here