termux / termux/termux-api-package

How to use TTS in termux without delay

Open
#148 2 comments 0 reactions 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

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.