termux-api-package icon indicating copy to clipboard operation
termux-api-package copied to clipboard

How to use TTS in termux without delay

Open aniket16122004 opened this issue 3 years ago • 1 comments

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 ?

aniket16122004 avatar Mar 07 '22 10:03 aniket16122004

H

aniket16122004 avatar Mar 08 '22 02:03 aniket16122004