termux / termux/termux-api-package

termux-speech-to-text buffers progressive output

Open
#137 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
1.7k
Forks
523
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with termux-speech-to-text -p and the /data/data/com.termux/files/usr/libexec/termux-api SpeechToText entry point named in the report. Trace where progressive output is buffered; done when each newly recognized line is emitted promptly during the command, rather than in larger chunks.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, shell
Domain
cli, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.