Hi everyone, i'm using the speechtotext library by @Biswajit (thanks)
i noticed that once i ported it to B4XPages it started throwing this errors in the logs... actually the sub exsists and infact then it works... but it does not seems to be a stable things, it has already happened that the app crashed on "PrepareMicrophone" method without any exception to read at..
except for the unfiltered logs:
any idea on what's the problem? Maybe because it in debug mode?
Edit:
I tried in Release mode and the the message this time didn't show, it is any good?
also i still notice pretty long delay between "PrepareMicrophone" and "_ReadyToListen"... on example app it does not seems to be present
i noticed that once i ported it to B4XPages it started throwing this errors in the logs... actually the sub exsists and infact then it works... but it does not seems to be a stable things, it has already happened that the app crashed on "PrepareMicrophone" method without any exception to read at..
except for the unfiltered logs:
B4X:
Unexpected event (missing RaiseSynchronousEvents): stt_readytolisten
Check the unfiltered logs for the full stack trace.
standby()
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1368)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:314)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at com.biswajit.vosk.SpeechToText.prepareMicrophone(SpeechToText.java:111)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:6659)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Skipped 30 frames! The application may be doing too much work on its main thread.
any idea on what's the problem? Maybe because it in debug mode?
Edit:
I tried in Release mode and the the message this time didn't show, it is any good?
also i still notice pretty long delay between "PrepareMicrophone" and "_ReadyToListen"... on example app it does not seems to be present
Last edited: