Voice recognition issues

rboeck

Well-Known Member
Licensed User
Longtime User
Hi,

since android 4 i think that the voice recognition is much better then ever. I try to use it as alternative input method in an app. The recognition (german) words are now to 90 % ok, but comma, point and newline are written as words. What i try to solve, is change this words on the fly. When i use the text_change event, the program crashes, because this could lead to an endless loop.
So i watched the log unfiltered and found:

Not real code, but better to read:
B4X:
#onInProgressPartialResults
onEndOfSpeech
 AudioFocus  abandonAudioFocus() from android.media.AudioManager@411d1db8
Will wait for final result for:78479192
GC_CONCURRENT freed 150K, 11% free 7489K/8327K, paused 3ms+2ms
#close - audio release
SRS_Processing - RecordThread - InNotify_Exit: 0x17bf530 TID 4516
PIN -1, 0x17bf530, 0
State change: RECOGNIZING -> RECOGNIZED
Final state: RECOGNIZED

The best time to change the edittext would be after recognition; but how can i use the log in an B4A app?

Thanks for your interest,
Reinhard
 

rboeck

Well-Known Member
Licensed User
Longtime User
I used the voice recognition button on android keyboard. In this project i want to get floating text for notes etc. and only care for better optic of the text.
 
Upvote 0
Top