But that means the end user needs to go through that process to make the offline mode work. I want it to be included with my app so it is easy for the user. Is there some way to download the english language pack to package with the app for offline mode?
How do I stop the speech recogniser with a button? So press mic button to start and then press button to stop. On / Off button in effect. I tried using the StopASR but it is still listening. I can’t figure out what the IsListening does, as there is no True / False option to change this setting. Any ideas? Thanks.
The StopASR method should work without problems. I improved the break method in version 9: ScSpeechRecognizerV9_1.aix (20.1 KB)
IsListening is a read-only property.
A user who wishes to apply the offline recognition can be given instructions directly in the application and open the system language settings screen.
This post was flagged by the community and is temporarily hidden.
@AL-HANOOF_18 please do not spam communities. Solution was provided in MIT App Inventor’s community
I am Srikar
Can I use scSpeechRecognizerV9 extension for MIT App Inventor Appathon For Good 2021
On my part, there are no restrictions on the use of this extension. If you talk about it
I am using android 10 and set continuoslyRecognitionEnabled to true but speech recognition action is stopping after I am mute
The voice recognition process continues until the system recognizes the first phrase. Further, it is assumed that the user will process the received information and start the recognition service again.
But I noticed some problems:
- StopASR - StopASR does not stop listening immediately.
- Clicking Stop and then restarting returns an error frequently (this did not happen in version 6):
I didn’t have such a problem. Does this error occur in the compiled and installed application too?
There is an error in your plugin. Without google dialog, the codes work in campanion but not in apk app. This error occurs only when google dialog is closed, please fix it
If you think this problem is caused by my application, don’t worry, I tried it in the applications I created from scratch, but the problem was still there.
I tested it on different devices - the apk works. What version of android API do you have?
I’m using Android version 11 but I don’t think this will happen because I found the apk of the old first version of my same application and tested it. It only works in campanion.
i am trying to make an artificial intelligence based assistant and this plugin is really important to me
Version 11 (API 30) may have new security requirements. I have not tested the work of my extension on this version of Android. Companion differs in that it gets all possible system permissions during installation.
hmm ok, I tried giving all permissions and it didn’t work
The problem is this:
For apps targeting Android 11 (API level 30) interaction with a speech recognition service requires element to be added to the manifest file:
<queries> <intent> <action android:name="android.speech.RecognitionService" /> </intent> </queries>
I don’t know yet how to do this from an extension. Perhaps more experienced developers can tell me.
Could the coders team help with this?