termux / termux-api

Termux add-on app which exposes device functionality as API to command line programs.
https://f-droid.org/en/packages/com.termux.api/
2.3k stars 454 forks source link

[Bug]: termux-speech-to-text get freez #616

Open anishdevtech opened 1 year ago

anishdevtech commented 1 year ago

Problem description

So i am using termux-speech-to-text in starting it ork very good but now it is getting freez I dont what is reason because i am not familiar with it i.e

What steps will reproduce the bug?

Running command again and again

What is the expected behavior?

To send the text what i have speak

System information

termux-info:

Termux Variables:
TERMUX_API_VERSION=0.50.0
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=8861
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://mirrors.bfsu.edu.cn/termux/apt/termux-main stable main
# root-repo (sources.list.d/root.list)
deb https://mirrors.bfsu.edu.cn/termux/apt/termux-root root stable
# sources.list.d/pointless.list
deb https://its-pointless.github.io/files/21 termux extras
Updatable packages:
clang/stable 16.0.6-1 arm [upgradable from: 16.0.6]
cmake/stable 3.26.4-1 arm [upgradable from: 3.26.4]
dbus/stable 1.15.6-1 arm [upgradable from: 1.15.6]
gettext/stable 0.21.1-1 arm [upgradable from: 0.21.1]
libarchive/stable 3.6.2-2 arm [upgradable from: 3.6.2-1]
libcompiler-rt/stable 16.0.6-1 arm [upgradable from: 16.0.6]
libllvm/stable 16.0.6-1 arm [upgradable from: 16.0.6]
libunbound/stable 1.17.1-2 arm [upgradable from: 1.17.1-1]
libxml2/stable 2.11.4-2 arm [upgradable from: 2.10.3-1]
lld/stable 16.0.6-1 arm [upgradable from: 16.0.6]
llvm/stable 16.0.6-1 arm [upgradable from: 16.0.6]
python-ensurepip-wheels/stable 3.11.4-2 all [upgradable from: 3.11.4-1]
python/stable 3.11.4-2 arm [upgradable from: 3.11.4-1]
unbound/stable 1.17.1-2 arm [upgradable from: 1.17.1-1]
termux-tools version:
1.38.3
Android version:
11
Kernel build information:
Linux localhost 4.4.177-21848546 termux/termux-packages#1 SMP PREEMPT Wed Jul 13 14:26:29 KST 2022 armv8l Android
Device manufacturer:
samsung
Device model:
SM-A105F
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:50
anishdevtech commented 1 year ago

![Uploading Screenshot_20230703-220807_Termux.jpg…]()

0m364 commented 1 year ago

with the text to speech there is sometimes a delay if that delay takes too long it times out.. this issue is more on how android handles phantom processes I think rather than the API itself.. I can recreate your issue on my totally stock Samsung s21 but on my one plus 10 I can not (I also can not launch the hui on my Samsung and can on my OnePlus but that is a different issue entirely but still with phantom processes)

anishdevtech commented 1 year ago

Its not delay some it just freez like for 'hi' too but it randomly get fixed too sus