Comments (2)
From the Kõnele perspective it would be best if you implemented a separate app that wraps the vosk-api into an implementation of Android's RecognitionService (https://developer.android.com/reference/android/speech/RecognitionService). Once this app is installed on the device, Kõnele will be able to list it as one of the available services and the Kõnele user can select it as one of its default services. Here are some examples of RecognitionService implementations:
- https://github.com/Kaljurand/speechdemo1 (just a demo but shows the basic structure of such an app)
- https://github.com/Kaljurand/speech-trigger (offline service based on PocketSphinx, I never got it to fully work though)
- https://github.com/Kaljurand/K6nele-service (service that uses an online server for the recognition; the same code is also part of Kõnele itself, it was mainly split off into a separate app just to debug some Android 11 issues)
So you could fork one of the above projects and try to inject the vosk-api java code (or its Android demo) into this fork. I have no experience with Vosk, so cannot help further with that.
from k6nele.
Great explanation! Thank you.
from k6nele.
Related Issues (20)
- Dynamically Enable/Disable Rewrite Rules via Buttons HOT 3
- Remove need for QUERY_ALL_PACKAGES
- Mic icon goes black, no speech transcribed, no errors HOT 3
- Material design 3 HOT 1
- If Kõnele is launched through AnySoftKeyboard dictation, it opens a web search instead of inputting text HOT 3
- Other similar projects to collaborate with.
- New way to select and configure services
- konele's text doesn't stay in input box after MIUI 14 update HOT 8
- Recognition mostly fails with "general app error" / "not connected to the recognition service" (error 5) in recent Android v14 updates
- F-Droid can't build HOT 9
- [FR] Web Speech API HOT 1
- android 11 insufficient permissions HOT 11
- Screenshots for F-Droid HOT 1
- Fail to compile the source code, too many errors, please fix them. HOT 1
- Checkbox does not disable after on-screen rotation. HOT 2
- Microphone stays active after using Kõnele in Android 12 HOT 1
- Build error HOT 1
- Android TV 13: RecognitionService: caller doesn't have permission:android.permission.RECORD_AUDIO HOT 15
- Searching recognition results via launcher icon fails on Android 13 HOT 2
- Temporarily disabling "Microphone access" centrally breaks access to Kõnele services HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k6nele.