termux-packages
termux-packages copied to clipboard
[Bug]: minimodem fails to record audio
Problem description
minimodem on termux does not request mic permissions and fails to record audio.
there is a workaround, following the same steps as in https://github.com/termux/termux-api/issues/450
in the file $PREFIX/etc/pulse/default.pa, add this line:
load-module module-sles-source
restart termux, and now minimodem will be able to receive audio from the microphone.
What steps will reproduce the bug?
install minimodem:
pkg install minimodem
try to receive some audio:
minimodem -q --rx 300
notice that there is no output, and Android does not notify you that an app is using the microphone.
What is the expected behavior?
Android should notify you that the mic is in use, just like it does with termux-microphone-record, and minimodem should begin to output bytes to the screen.
System information
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=8330
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirror.quantum5.ca/termux/termux-main stable main
Updatable packages:
apt/stable 2.7.14-1 aarch64 [upgradable from: 2.7.12]
bash-completion/stable 2.14.0 all [upgradable from: 2.13.0]
bash/stable 5.2.26-1 aarch64 [upgradable from: 5.2.26]
c-ares/stable 1.33.0 aarch64 [upgradable from: 1.28.1]
ca-certificates-java/stable 1:2024.07.02 all [upgradable from: 1:2024.03.11-2]
ca-certificates/stable 1:2024.07.02 all [upgradable from: 1:2024.03.11-2]
clang/stable 18.1.8 aarch64 [upgradable from: 18.1.4]
command-not-found/stable 2.4.0-35 aarch64 [upgradable from: 2.4.0-22]
curl/stable 8.9.1 aarch64 [upgradable from: 8.7.1]
debianutils/stable 5.20 aarch64 [upgradable from: 5.17]
dpkg/stable 1.22.6 aarch64 [upgradable from: 1.22.2]
fish/stable 3.7.1-1 aarch64 [upgradable from: 3.7.1]
git/stable 2.46.0 aarch64 [upgradable from: 2.45.0]
glib/stable 2.80.4 aarch64 [upgradable from: 2.80.0-1]
gpgv/stable 2.4.5-1 aarch64 [upgradable from: 2.4.4]
gradle/stable 1:8.9 all [upgradable from: 1:8.7]
krb5/stable 1.21.3 aarch64 [upgradable from: 1.21.2]
less/stable 661 aarch64 [upgradable from: 633-1]
libandroid-shmem/stable 0.5 aarch64 [upgradable from: 0.4]
libandroid-support/stable 29 aarch64 [upgradable from: 28-3]
libassuan/stable 2.5.7 aarch64 [upgradable from: 2.5.6]
libcompiler-rt/stable 18.1.8 aarch64 [upgradable from: 18.1.4]
libcurl/stable 8.9.1 aarch64 [upgradable from: 8.7.1]
libedit/stable 20240517-3.1-0 aarch64 [upgradable from: 20221030-3.1-0]
libgcrypt/stable 1.10.3-1 aarch64 [upgradable from: 1.10.3]
libgnutls/stable 3.8.5 aarch64 [upgradable from: 3.8.3]
libgpg-error/stable 1.49 aarch64 [upgradable from: 1.48]
libidn2/stable 2.3.7 aarch64 [upgradable from: 2.3.4]
libjpeg-turbo/stable 3.0.3 aarch64 [upgradable from: 3.0.2]
libllvm/stable 18.1.8 aarch64 [upgradable from: 18.1.4]
libltdl/stable 2.4.7-4 aarch64 [upgradable from: 2.4.7-1]
liblz4/stable 1.10.0 aarch64 [upgradable from: 1.9.4]
liblzma/stable 5.6.2 aarch64 [upgradable from: 5.6.1+really5.4.5]
libmp3lame/stable 3.100-5 aarch64 [upgradable from: 3.100-4]
libnghttp2/stable 1.62.1 aarch64 [upgradable from: 1.61.0]
libnghttp3/stable 1.4.0 aarch64 [upgradable from: 1.2.0]
libopus/stable 1.5.2 aarch64 [upgradable from: 1.4]
libsoxr/stable 0.1.3-6 aarch64 [upgradable from: 0.1.3-5]
libsqlite/stable 3.46.0 aarch64 [upgradable from: 3.45.2]
libtirpc/stable 1.3.5 aarch64 [upgradable from: 1.3.4]
libunbound/stable 1.20.0-1 aarch64 [upgradable from: 1.19.3]
libvorbis/stable 1.3.7-2 aarch64 [upgradable from: 1.3.7-1]
libx11/stable 1.8.10 aarch64 [upgradable from: 1.8.9]
libxml2/stable 2.13.3 aarch64 [upgradable from: 2.12.6]
lld/stable 18.1.8 aarch64 [upgradable from: 18.1.4]
llvm/stable 18.1.8 aarch64 [upgradable from: 18.1.4]
nano/stable 8.0 aarch64 [upgradable from: 7.2]
ncurses-ui-libs/stable 6.4.20231001-4 aarch64 [upgradable from: 6.4.20231001-3]
ncurses-utils/stable 6.4.20231001-4 aarch64 [upgradable from: 6.4.20231001-3]
ncurses/stable 6.4.20231001-4 aarch64 [upgradable from: 6.4.20231001-3]
nodejs/stable 22.5.1 aarch64 [upgradable from: 21.6.2-2]
openjdk-17-x/stable 17.0-34 aarch64 [upgradable from: 17.0-31]
openjdk-17/stable 17.0-34 aarch64 [upgradable from: 17.0-31]
openssh-sftp-server/stable 9.8p1-4 aarch64 [upgradable from: 9.7p1]
openssh/stable 9.8p1-4 aarch64 [upgradable from: 9.7p1]
openssl/stable 1:3.3.1 aarch64 [upgradable from: 1:3.2.1-1]
patch/stable 2.7.6-4 aarch64 [upgradable from: 2.7.6-3]
pcre2/stable 10.44 aarch64 [upgradable from: 10.43]
python-ensurepip-wheels/stable 3.11.9-3 all [upgradable from: 3.11.8]
python-numpy/stable 1.26.5 aarch64 [upgradable from: 1.26.4-1]
python-pip/stable 24.2 all [upgradable from: 24.0-1]
python/stable 3.11.9-3 aarch64 [upgradable from: 3.11.8]
readline/stable 8.2.10 aarch64 [upgradable from: 8.2.1]
rust-std-aarch64-linux-android/stable 1.80.0 all [upgradable from: 1.77.2]
rust/stable 1.80.0 aarch64 [upgradable from: 1.77.2]
termux-keyring/stable 3.12-1 all [upgradable from: 3.11-1]
termux-tools/stable 1.43.2 all [upgradable from: 1.42.0]
unbound/stable 1.20.0-1 aarch64 [upgradable from: 1.19.3]
wget/stable 1.24.5 aarch64 [upgradable from: 1.21.4-1]
xz-utils/stable 5.6.2 aarch64 [upgradable from: 5.6.1+really5.4.5]
termux-tools version:
1.42.0
Android version:
13
Kernel build information:
Linux localhost 4.19.191-gb5b29b2ff195 #1 SMP PREEMPT Thu Jun 20 08:28:18 CDT 2024 aarch64 Android
Device manufacturer:
motorola
Device model:
moto g stylus (2023)
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51