It doesn’t work that way.
The StopASR () method stops listening to speech. Speech captured so far will be recognized as if the user had stopped speaking at this point. However, it occurs in a parallel process. And the user must wait until the action is complete before calling a new recognizer. Upon StopASR () invocation clients must wait until AfterGettingText() or OnError () (In the case of a user who has remained silent) are invoked before calling GetText() again. Otherwise such an attempt would be rejected by recognition service.
Conclusion: Since recognition is implemented in a parallel process, it must always be synchronized with your main process.
You rock, so I’ll put the option to use offline before any recognition and try.
Big thanks
A domingo, 10/10/2021, 16:23, ScorpioNormal via Kodular Community Email <[email protected]> escreveu:
It’s enough to do this:
Then the PreferOffLine option will be selected automatically at the next GetText() startup. There is no need to stop the continuosly recognition.
hola, es una extension muy buena! gracias por su creacion! en vez de poner los bloques en el inicio de aplicacion yo lo he puesto en un sensor de tiempo con 4 segundos y con la palabra clave “escucha” y solo deja de escuchar si dejo de hablarle durante unos 30 segundos aprox… y para que me escuche solo tengo que decirle “escucha” y vuele a escuchar todo lo que le diga hasta volver a dejar de hablarle… y no se pierde ninguna palabra escuchando un numero considerable de palabras hasta hacer una pausa!!! la solucion esta en probar todas las formas posibles y la que mejor se adapta a lo que esperabas pues aceptas ese resultado hasta lograr ir aprendiendo a crear metodos mejores! ahora solo faltaria algo parecido pero para la vision artificial!!!
Translation added by Mod
hello, it’s a very good extension! thanks for your creation! Instead of putting the blocks at the beginning of the application, I have put it in a time sensor with 4 seconds and with the keyword “listen” and it only stops listening if I stop talking to you for about 30 seconds … and for you to listen, I just have to say “listen” and listen to everything I say until you stop talking to him again … and you don’t miss a word listening to a considerable number of words until you pause! The solution is to try all the possible ways and the one that best suits what you expected because you accept that result until you learn to create better methods! now only something similar would be missing but for artificial vision !!!
Welcome @HerenWorld_I_A to the community. Official language here is English. Since this is your first visit I edited your post but next time please follow the rules.
#offtopic I recall you had a topic about that robot in AppyBuilder’s community
Yes, unfortunately this forum is not available at the moment.
Hi, can you send me the unupdated add-on version, please, the problem is in the update you made, I guess it doesn’t work in campanion because of the last update, but the apk that I use the old add-on works without any problems.
I can make a detailed video about it if you want.
ScSpeechRecognizerV7.aix (20.0 KB)
ScSpeechRecognizerV8.aix (20 KB)
ScSpeechRecognizerV9.aix (20.1 KB)
still not working
Can you review the video I posted, the first application is the old version, the second application is the new version, but in the new version, google does not work without dialogue, while it works in the old version, my phone android 11, I could not understand 🤦
I have already suggested 3 possible solutions before
The last solution is the most optimal
I have decompiled the apk created with apk studio, added the queries, and compiled again. But it’s not working. Should we do more?
Great extension!
link does not work. How can we manage to change input language? does it auto detect? or do we have to add extralanguage block before getting text?
You must change the Language property before getting text.
Suggests the language to use for recognizing speech. An empty string (the default) will use the system’s default language.
Language is specified using a language tag with an optional region suffix, such as en or es-MX. The set of supported languages will vary by device.
For offline recognition, the required language engine must be installed in the device.
You mean this block? Right? Its a little bit confusing because its name is “extralanguage”. I downloaded v9_1 and there is only this. No other language option?
Yes. this block
hello, I’m asking for help.
is there a newer version of Voice Recognition extension without Google Dialogue ?