Skip to main content
22 events
when toggle format what by license comment
Aug 22 at 16:12 comment added MRule I'm struggling to reproduce this on a Samsung Galaxy S21-U running Android 14 in Termux 0.118.1 retrieved from F-Droid on 2024.08.22, with TigerVNC 1.10.1-41. The first minor deviation is that there is no root by default, so the pulseaudio config files are at ~/../usr/etc/pulse/ instead. The second difference is that pactl list produces different output; the device auto_null.monitor is SUSPENDED. After completing the configuration, I can see that some sound is being played as the xfce4 volume control panel shows variations in volume. But, no sound comes from the phone speakers.
Jun 5, 2021 at 10:13 comment added Irfan Latif @user3123159 actually the question is: How to Play Sound from commandline when using Linux on Android device?. So anything specific to Termux is not a solution. But you can add the answer if you want to, with some explanation.
Jun 5, 2021 at 8:52 comment added user3123159 The question title seems high level - how-to-play-sound-from-termux-when-using-linux but the question itself seems low level;) So my comment with play-audio is high level as you correctly state - it might be worth a separate answer?
Jun 4, 2021 at 12:53 comment added Irfan Latif @user3123159 play-audio is a Termux package, so it addresses the first half of the question: How to Play Sound from Termux..., not the second half: ... when using Linux?. ALSA and PA in a Linux environment give low level control to audio framework, though one may opt to use high level library like OpenSL ES (which play-audio uses).
Jun 4, 2021 at 6:55 comment added user3123159 There is play-audio, please see
Mar 11, 2020 at 15:26 history edited Irfan Latif CC BY-SA 4.0
added 253 characters in body
Oct 12, 2019 at 11:42 history edited Irfan Latif CC BY-SA 4.0
added 514 characters in body
Dec 26, 2018 at 11:54 comment added Maher_2000 I've got the ISSUE discussed on the GITHUB platform on this subject github.com/CypherpunkArmory/UserLAnd/issues/135
Dec 26, 2018 at 11:50 comment added Irfan Latif @Maher_2000 yes because there is no X11 server running on Android in which PulseAudio is published: freedesktop.org/wiki/Software/PulseAudio/Documentation/User/… And also if you want to run media from Linux environment, PulseAudio should also be run from Linux. Media player running on Linux and PulseAudio running on Android won't work.
Dec 26, 2018 at 11:46 history edited Irfan Latif CC BY-SA 4.0
added 114 characters in body
Dec 26, 2018 at 9:17 comment added Maher_2000 Just to point out, the pactl list works on Termix directly without rooting, but the start-pulseaudio-x11 command does not work on it
Dec 26, 2018 at 8:51 comment added Maher_2000 I'm sorry I made a mistake writing the order here because I write quickly and I agree with you that the proot has few powers , Anyway, thank you for helping me
Dec 26, 2018 at 8:45 comment added Irfan Latif @Maher_2000 it's not ptcl, it's pactl list. And if it doesn't work, you won't be able to get source of audio stream and it won't work for you definitely. I haven't tried this all in proot, so I'm afraid I won't be able to help you. You'll have to trace the causes of permission denied.
Dec 26, 2018 at 8:40 comment added Maher_2000 Or these two methods only Note when playing pulseaudio On xsdl the sound works well but in the browser it is intermittent and also the sound does not work except on the computer root
Dec 26, 2018 at 8:39 comment added Maher_2000 Yes I enter it correctly as below (127.0.0.1) but do not work with me and show me errors in some commands when executed like the command pctl list which tells me to reject the permission request and it works if you enter the Termux directly and not on the distribution installed on Termux but The problem here is that there is no start-pulseaudio-x11 with the pulseaudio package for Termux and it does not work. Are there other ways to run over TCP if it is receiving streaming audio from the browser directly or other applications?
Dec 26, 2018 at 8:28 comment added Irfan Latif @Maher_2000 are you sure you entered IP, port, bitrate correctly in Simple Protocol Player? If so, the problem is with your Linux configuration. Execute all commands and edit files with great care. Sometimes bad permissions set on files may cause such problems. Since you are not running as root, there is possibility that that you lack permissions for certain tasks. SELinux can be a reason, set it permissive if you can, or view avc denials.
Dec 25, 2018 at 22:44 comment added Maher_2000 Unfortunately, I tried several times to play the sound on a simple protocol player but the sound does not work and the application shows me the message "unable to stream" and also made a mistake in pulseaudio I do not know what the reason and I tried on Termux and Useland but anyway thank you for helping me , Note : I'm new to using Linux and I use the languages translator to speak with you in English so you will notice that my English is not good or understandable for you
Dec 25, 2018 at 15:44 comment added Irfan Latif @Maher_2000 I tested LinuxDeploy and a few other apps but not UserLAnd. I have developed a Linux environment myself in chroot and namespaces, and I use through ssh and Termux.
Dec 25, 2018 at 15:24 comment added Maher_2000 Do you also work on Userland ? ... Or just on Termux
Dec 25, 2018 at 14:59 vote accept Maher_2000
Dec 25, 2018 at 13:45 history edited Irfan Latif CC BY-SA 4.0
added 116 characters in body
Dec 25, 2018 at 13:39 history answered Irfan Latif CC BY-SA 4.0