Android Example Offline Continuous Speech Recognition

stevel05

Expert
Licensed User
Longtime User
Sorry guys, I lost my internet for a week, then I've been in the studio rehearsing and recording, so haven't been able to get on the site.

@petr4ppc

Without rewriting the app (this was a proof of concept after all) I think you will either have to move the initialize statement to Activity_Resume, or only call stop if the app is user closed, then test if it's running in Activity resume before running the initialize. It really depends on how you want the recognizer to work, and to clean up after itself when it goes into the background.
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
steveI05 and Erel, thank you for your answers.....

Please for advice:

1) if recognition is started then I get sometime this error:
java.lang.RuntimeException: Object should first be initialized (JavaObject).
why please? I am using program as is...

2)
As wrote David about obfuscation mode
It is possible to change something in the app for using it in obfuscation mode?

Thank you very much
best regards
p4ppc
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

MaFu, thank you,

I change the
Private Sub Configurerecognizer
to
Private Sub Configure_recognizer

Now B4A can compile the program,

but I get new message:
Failed to initialize recogniser Exception : Field: _keyphrase not found in: BA.bfa.bfatry.speechrecognizer

If I try run program in standard Release mode (without obfuscation) everything is OK.

Please, why?

Thank you very much
p4ppc
 

brelto85

Active Member
Licensed User
Longtime User
the library works very well
i've these question:

1- this library, works also with screen off? is possible to run it in the service
2- this library suffer the Automatic Gain Control (AGC) of device? the voice recognition standard library suffer of AGC
 

stevel05

Expert
Licensed User
Longtime User
I think it should run in a service, you'll need to rewrite the Gui interaction.
The AGC will be hardware dependent, so there would be no difference using this or the standard library.
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Love this idea and thanks stevel05.
But for me it is just not reliable. Works great for a few minutes and just stops working
 

carchek

Member
Licensed User
Longtime User
I'm having problems. I try to run your example but I get Failed to initialize recogniser reference: null
Using android 2.3.4
 

stevel05

Expert
Licensed User
Longtime User
I can't find any reference on their web site to a minimum Android requirement, but I'm afraid I don't have a device running Android 2 to try it on. This was done 18 months ago as an experiment, I'm sure their software has moved on since then.

Maybe someone has created a more up to date version that would like to share.
 

trueboss323

Active Member
Licensed User
Longtime User
Hello,
I am also having some problems. I run the app in Release mode and I get stuck on the "computer" screen. Nothing happens after I say "computer"
 

stevel05

Expert
Licensed User
Longtime User
According to the web site it does.
 

Licht2002

Member
Licensed User
Longtime User
Hi,

do someone know - how to change the language?


Only copy the files do not work...

Thx Tom
 

supriono

Member
Licensed User
Longtime User
i have same error like this
private TH As Thread

missing library...
can same one help me.where to download library for thread..

i am use b4a v4
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…