termux / termux/termux-api-package
How to use TTS in termux without delay
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 1.7k
- Forks
- 523
- PR merge metrics
- No merged PRs in 30d
Description
I want to create a python speak() function by termux-tts-speech but there is a delay because the engine is restarting every time I call the function.
def speak(text):
subprocess call(["termux-tts-speak",f"{text}])
Problem description
Whenever I call the function there also comes a delay caused by the TTS engine to start .
Is there any way to fix it ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue identifies a Python speak() function that invokes the termux-tts-speak entry point; start by reproducing the delay across repeated calls and inspect how that command starts the TTS engine. Done means establishing whether the command can avoid restarting the engine or documenting that it cannot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python, shell
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100