Speech to text service, also available to other apps#109
Conversation
Added prompt message + preference for Auto-finish
|
Is there an example of starting this activity using |
|
@sudomain, that's best asked at https://github.com/Stypox/dicio-android/discussions/new?category=q-a |
|
@sudomain I have no experience with am, but guessing from |
|
Rather than a wakeword, I'd like to set up Dicio to start listening when I hit the Bixby button on my S10+. I've installed Button Mapper Pro and run the required ADB steps to allow it to control that button. Could someone help me figure out what fields to enter below to trigger the correct Dicio intent? |
|
The activity you need to start is https://github.com/Stypox/dicio-android/blob/master/app%2Fsrc%2Fmain%2Fkotlin%2Forg%2Fstypox%2Fdicio%2Fio%2Finput%2Fstt_popup%2FSttPopupActivity.kt, so I think you just need to put |

Speech to text service
This PR implements a Speech To Text service available to apps, fixing #54. Here is a preview of the feature, after pressing on the microphone button in Google Maps:
It is possible to also open the service from Dicio's navigation drawer, allowing the user to take dictation, copy to clipboard and share, fixing #33.
Testing APK
app-debug.zip
Technical details
This PR supersedes #100 by @nebkrid. #100 implemented the service as a skill, while this PR implements it as its own activity. The research done in #100 was really helpful though! I also kept the TODOs left behind there for later: for example, the result intent from the activity might contain multiple speech interpretations each with some different accuracy, and while Vosk does provide such information, it is currently not added to the result intent for simplicity.
This PR includes #111, thanks to @nebkrid again :-)
This PR also fixes a random crash when cleaning up Vosk, and sets the theme color used in e.g. button texts to a sensible value.