dicio-android icon indicating copy to clipboard operation
dicio-android copied to clipboard

How can I implement this into my android keyboard?

Open dessalines opened this issue 2 years ago • 3 comments

Hi, I'm the creator of a custom android keyboard called thumb-key, and I'd love to implement this into the keyboard.

IE, have a button that loads the dicio speech to text activity, and then sends its results back to the keyboard (to fill in the current text box).

Can anyone help me figure out this flow?

dessalines avatar Sep 24 '23 02:09 dessalines

Hi! You basically just need to use the standard Android intent RecognizerIntent.ACTION_RECOGNIZE_SPEECH, see the documentation here. Let me know if it works.

Stypox avatar Sep 24 '23 07:09 Stypox

That's using the system's built in recognizer tho, which is always google's. I want to use dicio-android to recognize the speech.

Does dicio have an intent that I can open and receive data from?

dessalines avatar Sep 25 '23 18:09 dessalines

That's the intent Dicio reacts to. Currently the user is unable to set dicio as the system default voice assist due to https://github.com/Stypox/dicio-android/issues/126, but you can try manually setting the package of the intent.

Stypox avatar Sep 25 '23 21:09 Stypox