termux / termux-api-package

Termux package containing scripts to call functionality in Termux:API.
MIT License
994 stars 314 forks source link

termux-speech-to-text buffers progressive output #137

Open yesco opened 2 years ago

yesco commented 2 years ago

Problem description termux-speech-to-text -p

doesn't print progressive output as it comes, but seems to buffer it. It comes out in a larger chunk.

Steps to reproduce Run the command

termux-speech-to-text -p

speak a lot, watch as no output comes until either the end, or when enough has buffered up.

Expected behavior I'd expect it to output each line as each new word is recognized. That's what progressive means.

Additional information I've tried to see if it's the terminal or script that buffers, so I wrapped the execution in:

stdbuf -i0 -o0 /data/data/com.termux/files/usr/libexec/termux-api SpeechToText

But there is no difference.