Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RecognitionService, so Dicio appears under Voice Input #227

Merged
merged 5 commits into from
Jul 28, 2024

Conversation

Stypox
Copy link
Owner

@Stypox Stypox commented Jul 26, 2024

This PR implements a RecognitionService, which provides support to other applications to recognize audio in the background. This is done by adding <meta-data name="android.speech"/> and <intent-filter><action name="RecognitionService"/> under the service definition in the manifest. The service implementation is pretty straightforward and simply uses the currently configured STT input device (only Vosk is available at the moment) to recognize speech.

The work in this PR was heavily inspired by #161, but this PR only provides a really barebone implementation, which will need to be improved in the future (see the TODOs at the top of SttService). Thank you @nebkrid!

I tested with Koñele and the service works.

Closes #126.

Testing APK: https://github.com/Stypox/testing-apks/releases/download/4/app-debug.apk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dicio Not Listed As Voice Input
1 participant