Announcement

Collapse
No announcement yet.

Android Squeezelite

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Android Squeezelite

    Install Termux


    Install Hackers Keyboard to provide CTRL key


    In Termux:

    apt-get update

    apt install squeezelite

    Better if you provide ip of server:

    eg
    squeezelite -s 192.168.1.100

    CTRL c to to exit


    For command line options:
    squeezelite --help

    Hope this is useful!
    Tony

  • #2
    Many thanks for posting this! This is very good news for anyone who has wanted to use an Android device as a player, without having access to the Google Play Store. I'll stick with SB Player on my phone, but I also have a few Android tablets and old phones that don't have access to the Play Store, and this is just what they have needed. The catch is that Termux only supports Android 7 and above, so some old devices will miss out.

    I just tried this on my current phone, and it works.

    Now, a few quibbles.

    The Termux readme at https://github.com/termux/termux-app#installation says,
    Termux and its plugins are no longer updated on Google Play Store due to android 10 issues and have been deprecated. The last version released for Android >= 7 was v0.101. It is highly recommended to not install Termux apps from Play Store any more.
    Current options are to install from F-Droid or Github, and directions are given at the URL posted above.

    Additionally, there was a change in Termux package management in May of 2021. Existing installations of Termux that have not already updated to the new package management mirrors since then will need to be updated before they can install Squeezelite. Details are at https://github.com/termux/termux-pac...age-Management .

    Also, Termux uses pkg commands instead of apt and apt-get. If the apt commands don't work for you, try pkg update, followed by pkg install squeezelite. That's what worked for me.

    One more thing: I like Hacker's Keyboard, but I usually prefer AnySoft keyboard with the SSH language pack. It also provides access to all ctrl and alt key combinations. However, Termux provides access to most of the extra keys you need, so it may not be necessary to switch away from your preferred keyboard.

    Enough quibbles! The important thing is that squeezelite is now available for many Android devices.
    Last edited by RobbH; 2022-10-31, 16:28. Reason: minor but crucial grammatical error. Install Termux from F-Droid OR Github!
    Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players. Occasionally using SB Radio, Boom or Classic.

    Comment


    • #3
      Also, Termux uses pkg commands instead of apt and apt-get. If the apt commands don't work for you, try pkg update, followed by pkg install squeezelite. That's what worked for me.
      I used the Play Store version and pkg could not find squeezelite, hence the instruction to use apt.

      Comment


      • #4
        Originally posted by Wiredcharlie
        I used the Play Store version and pkg could not find squeezelite, hence the instruction to use apt.
        Yes, I assumed it must have worked for you, but I couldn't get the apt commands to work in the current version. But I just checked and they seem to be working now. Anyway, the Play Store version hasn't been updated since September, 2020. The version on F-Droid was updated two weeks ago.
        Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players. Occasionally using SB Radio, Boom or Classic.

        Comment


        • #5
          That works pretty well!

          But I have 2 questions:
          1. is there anywhere/anyway that the filesystem in termux intersects with the one of Android? That would make it easier to transfer some files back and forth.

          2. when I run squeezelite as a 'task', and then exit the task, squeezelite keeps running. And I can't find how/where to kill it. Is there anywhere I can see this and kill the process?

          Thanks!

          Comment


          • #6
            Originally posted by nenu
            That works pretty well!

            But I have 2 questions:
            1. is there anywhere/anyway that the filesystem in termux intersects with the one of Android? That would make it easier to transfer some files back and forth.
            I haven't tested myself, but this is explained in the FAQ: https://wiki.termux.com/wiki/FAQ

            Scroll down to "How can I access device storage with Termux"

            2. when I run squeezelite as a 'task', and then exit the task, squeezelite keeps running. And I can't find how/where to kill it. Is there anywhere I can see this and kill the process?

            Thanks!
            What do you mean by running it as a "task"? Are you daemonizing it? I found it worked as Wiredcharlie (Tony) specified in the first post, just entering the command "squeezelite -s <IP of LMS>". When done, use ctrl-c to kill it.
            Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players. Occasionally using SB Radio, Boom or Classic.

            Comment


            • #7
              Originally posted by RobbH
              Scroll down to "How can I access device storage with Termux"

              Indeed, should have RTFM. It's not just giving Termux permission to use the storage, you need to run a command as well: https://wiki.termux.com/wiki/Interna...ternal_storage

              What do you mean by running it as a "task"? Are you daemonizing it? I found it worked as Wiredcharlie (Tony) specified in the first post, just entering the command "squeezelite -s <IP of LMS>". When done, use ctrl-c to kill it.
              using Termux:Widget and defining it as a 'task'. Which works well to start squeezelite, just not to stop it

              Comment


              • #8
                Originally posted by nenu
                using Termux:Widget and defining it as a 'task'. Which works well to start squeezelite, just not to stop it
                Sorry, I am not familiar with the widget. It appears that this version of squeezelite supports the -P option, so it may be that you can write its PID to a file and use that to kill it. I haven't tried it, so no guarantees, but maybe worth a try.

                I've just skimmed through the github page without close reading, but it appears to me that you have the option of running scripts in the foreground in a terminal. If you did that, ctrl-c should work.
                Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players. Occasionally using SB Radio, Boom or Classic.

                Comment


                • #9
                  This is really cool. I did not know about Termux, installed it from F-Droid, installed dropbear so I can ssh into Termux from my laptop, installed Squeezelite after that. It works! Impressive. The only output option however is to use OpenSL_ES_sink; maybe there are other options possible on a rooted phone. It would be even more useful if it were possible to use pulseaudio somehow, to output directly to a connected USB DAC. Both Neutron and USB Audio Player PRO can do this, but require UPnP for streaming from LMS.

                  The other cool thing, is that my VPN is accessible in Termux! I sure had fun playing with this over the past weekend; pkill can be used to kill Squeezelite, or just exit Termux.
                  Last edited by Ron F.; 2022-02-01, 08:30.
                  Living Room: SB Touch + DIY PSU > CI Audio VDA.2 DAC + VAC.1 PSU > VRX.1 cables > Emotiva XSP-1 Gen 2 preamp + XPA-DR2 amp > Blue Jeans cables > B&W 804 speakers
                  Laptop: System76 Galago + Ubuntu 18.04 + Squeezelite + Epiphany/Material Skin > Emotiva Little Ego DAC > Grado PS500 headphones
                  Bedroom: RPi Zero W + Squeezelite > miniBOSS DAC HAT > Bose SoundLink Revolve
                  Phone: Pixel 6a + Termux/Squeezelite + Material APK > Senn IE80 earbuds
                  Server: System76 Meerkat + Pop!_OS 22.04 + LMS 8.4

                  Comment


                  • #10
                    Termux/Squeezelite MAC Address

                    I turns out that at least on my Android phone, starting Squeezelite in Termux was resulting in LMS registering the player with an Eth MAC addr of 00:00:00:00:00:00. This seemed to work fine for weeks until today, when it failed to work at all ... I think I have multiple devices on my LAN with a MAC of all zeros. Anyway, the solution was simple, simply start Squeezelite with a nonzero MAC, choose a MAC that will be unique for your LAN, or use your Android phone's actual MAC addr which can be gotten from "About phone" under Settings.

                    squeezelite -n Termux -m ab:cd:ef:12:34:56 ...

                    Posting in case anybody else is/was temporarily flummoxed by this situation ... possibly it was just me.
                    Living Room: SB Touch + DIY PSU > CI Audio VDA.2 DAC + VAC.1 PSU > VRX.1 cables > Emotiva XSP-1 Gen 2 preamp + XPA-DR2 amp > Blue Jeans cables > B&W 804 speakers
                    Laptop: System76 Galago + Ubuntu 18.04 + Squeezelite + Epiphany/Material Skin > Emotiva Little Ego DAC > Grado PS500 headphones
                    Bedroom: RPi Zero W + Squeezelite > miniBOSS DAC HAT > Bose SoundLink Revolve
                    Phone: Pixel 6a + Termux/Squeezelite + Material APK > Senn IE80 earbuds
                    Server: System76 Meerkat + Pop!_OS 22.04 + LMS 8.4

                    Comment


                    • #11
                      repository issue...

                      hi, getting signed errors for repository when trying to download squeezelite on to my motorola droid

                      any ideas why please?

                      Comment


                      • #12
                        Originally posted by harrys
                        hi, getting signed errors for repository when trying to download squeezelite on to my motorola droid

                        any ideas why please?
                        How did you install Termux?
                        Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players. Occasionally using SB Radio, Boom or Classic.

                        Comment


                        • #13
                          Originally posted by RobbH
                          How did you install Termux?
                          just retried and its working fine now, must have been a glitch...

                          PS

                          Have just installed tailscale (overlay) vpn on my lms server and on my phone, easiest/simplest vpn ever!

                          Can now fire up squeezer on my phone, run squeezelite and listen away anywhere

                          Comment


                          • #14
                            Originally posted by harrys
                            just retried and its working fine now, must have been a glitch...
                            ....
                            Great that it's working for you!
                            Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players. Occasionally using SB Radio, Boom or Classic.

                            Comment


                            • #15
                              Works great with this https://f-droid.org/it/packages/com....smaterial.app/
                              Which allows to start and stop squeezelite.

                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎