termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.28k stars 3.06k forks source link

[Question] How to use the host device microphone in Audacity #19679

Closed hansm629 closed 2 weeks ago

hansm629 commented 7 months ago

Screenshot_2024-04-06_03-11-39

Can Audacity installed on Termux use the host device's microphone?

Since termux-api supports termux-microphone-record, I think there must be some way.

I wonder if it is possible.

twaik commented 7 months ago

AFAIK microphone might be recorded with regular SLES, no need to fall into termux-api. But currently there is no one who can fix it (Audacity).

twaik commented 3 weeks ago
  1. Current version of portaudio (used in audacity as audio backend) does not support pulseaudio or sles. #21824 fixes it.
  2. You must grant Termux:API microphone access to let apps running in termux record sound.
hansm629 commented 3 weeks ago

@twaik Sorry for the late reply. I installed the package in the pull request, but I couldn't run audacity.

Did I miss something? (termux-api's microphone permission has already been enabled.)

$ audacity
CANNOT LINK EXECUTABLE "audacity": cannot locate symbol "sqlite3_trace" referenced by "/system/lib64/libandroid_runtime.so"...
twaik commented 3 weeks ago

Probably you should do LD_PRELOAD=/system/lib64/libsqlite.so audacity.

hansm629 commented 3 weeks ago

@twaik thank you! It works perfectly, from microphone recording to mp3 saving! Screenshot_2024-10-18_01-55-49

twaik commented 3 weeks ago

Good. It seems like I found a sqlite3 problem source, trying to fix it.

twaik commented 3 weeks ago

Ok, I fixed a sqlite problem.