ElishaAz / Sayboard

An open-source on-device voice IME (keyboard) for Android using the Vosk library.
GNU General Public License v3.0
380 stars 23 forks source link

Add option to record audio while waiting for recognizer #79

Open VeH-c opened 5 months ago

VeH-c commented 5 months ago

To mitigate waiting on "preparing the recognizer" and reduce the delay to use by amending the option "listen immediately" to "start listening (recording) immediately when invocted & process the voice when the recognizer is ready. This should be much faster than waiting for the recognizer by starting to record before the recognizer is ready. (On my Google Pixel 3 Sayboard takes about 2 seconds to "prepare the recognizer" every time I invoke it, but Googles "Recorder" and "Voice input" are ready very fast.)

This could be done in the back round and would probably be fairly seamless as the model would catch up to real time quickly.

Would help mitigate https://github.com/ElishaAz/Sayboard/issues/30