Stypox / dicio-android

Dicio assistant app for Android
GNU General Public License v3.0
644 stars 63 forks source link

How can I implement this into my android keyboard? #195

Open dessalines opened 9 months ago

dessalines commented 9 months ago

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?

Stypox commented 9 months ago

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.

dessalines commented 9 months ago

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?

Stypox commented 9 months ago

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.