B4A Library SpeechRecognitionNoUI - Google Speech Recognition Without Popup

Hello
thank you
I tried this library and sample on two friends. Works on Samsung phone without any problems, but does not work on Lenovo Android 7 tablet. There is no response when the volume button is pressed at the bottom of the page, but on this device the speech engine works perfectly on Google's own text.
where is the problem from?
 

free2end

Member
Licensed User
Hi, Biswajit
many thanks for your effort!

1. PartialResults (Texts As List): always have only one item with all the spoken words spaced.
2. StopListening As String: please give an example of syntax
3. BufferReceived(buffer() As Byte): please give an example of syntax

best wishes!
 

Biswajit

Active Member
Licensed User
Hi, Biswajit
many thanks for your effort!

1. PartialResults (Texts As List): always have only one item with all the spoken words spaced.
2. StopListening As String: please give an example of syntax
3. BufferReceived(buffer() As Byte): please give an example of syntax

best wishes!
1. you have to set partial result = true then starting the listerner StartListening("en_US", true, false)
2. call this if you want to stop the listener just like sr.StopListening
3. there is no guarantee that this method will be called. (As per the Android documentation)
 

free2end

Member
Licensed User
1. you have to set partial result = true then starting the listerner StartListening("en_US", true, false)
allready done it but at PartialResults (Texts As List): always have only one list item with all the spoken words spaced... not a List with the recognized words as seperate items
 

Biswajit

Active Member
Licensed User
allready done it but at PartialResults (Texts As List): always have only one list item with all the spoken words spaced... not a List with the recognized words as seperate items
PartialResults doesn't mean you will get all the words separately.

Check the android documentation for better understanding.
 

Dave O

Active Member
Licensed User
Ideally I'd like to be able to do speech to text and also save the voice recording. This isn't possible with XSpeechRecognizer (because of a Google limitation for Android 4.1 and later?), but wondering if this library offers anything extra that way?

Thanks.
 

Biswajit

Active Member
Licensed User
Ideally I'd like to be able to do speech to text and also save the voice recording. This isn't possible with XSpeechRecognizer (because of a Google limitation for Android 4.1 and later?), but wondering if this library offers anything extra that way?

Thanks.
No. This is actually not a custom voice recognition library. It's a bridge between your app to the inbuilt android speech recognizer.
 
Top