Test another android version

brelto85

Active Member
Licensed User
Longtime User
hi,

Some users complain that the voice recognition doesn't work
In particular i have received reports from users with Acer Liquid z110 and Huawei with Android 4.0.4

How to test my app using different android version?

Thanks
Alberto
 

brelto85

Active Member
Licensed User
Longtime User
Ok, thanks
I really have to test the voice recognition.
Do you have any idea why on some devices goes wrong speech recognition?
that library should be standard ..
 
Upvote 0

brelto85

Active Member
Licensed User
Longtime User
B4X:
Sub Process_Globals
    ...
    Dim mActionVoiceRecogn As VoiceRecognition 
    ...
End Sub


B4X:
Sub ImageView1_Click
    mActionVoiceRecogn.Prompt = Preference.mTrans.GetText("Tell me...")
    mActionVoiceRecogn.Listen
End Sub

The object mActionVoiceRecogn initialized in a common module

In phones where there is the anomaly appears the window of speech recognition but you do not have the time to talk.
The error appears immediatly and is "Audio Problem"

I use Phone library v2.01
 

Attachments

  • Cattura.JPG
    20.8 KB · Views: 298
Upvote 0

brelto85

Active Member
Licensed User
Longtime User
Hi,

I was able to run the test with a device that has the problem
Here is the log when i start the voice recognition with Acer Z110
Android 2.3

getDefaultSim is no sim
getDefaultSim is no sim
getDefaultSim is no sim
create GsmCellLocation
CellLocation is null
unknown language requested in voice recognition intent: it (use RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS to retrieve a list of supported languages)
Could not get audio input for record source 6
Error creating AudioRecord instance: initialization check failed.
[ android.media.AudioRecord ] Error code -20 when initializing native AudioRecord object.
Audio error
java.io.IOException: not open
at com.google.android.voicesearch.endpointer.MicrophoneInputStream.<init>(MicrophoneInputStream.java:65)
at com.google.android.voicesearch.speechservice.MicrophoneManagerImpl.getMicInputStream(MicrophoneManagerImpl.java:107)
at com.google.android.voicesearch.speechservice.MicrophoneManagerImpl.setupMicrophone(MicrophoneManagerImpl.java:95)
at com.google.android.voicesearch.speechservice.RecognitionControllerImpl.startRecognition(RecognitionControllerImpl.java:361)
at com.google.android.voicesearch.speechservice.RecognitionControllerImpl.access$100(RecognitionControllerImpl.java:82)
at com.google.android.voicesearch.speechservice.RecognitionControllerImpl$1.handleMessage(RecognitionControllerImpl.java:251)
at android.os.Handler.dispatchMessage(Handler.java:130)
at android.os.Looper.loop(SourceFile:351)
at android.os.HandlerThread.run(HandlerThread.java:91)
ERROR_AUDIO
unknown stream type
unknown stream type
unknown stream type
Ongoing Scan action...
create GsmCellLocation
CellLocation is null
setParameters still have param.size() = 1
unknown stream type
unknown stream type
unknown stream type
unknown stream type
unknown stream type
 
Upvote 0

brelto85

Active Member
Licensed User
Longtime User
the language was set after Initialize() method
how to use RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS to list languages?
 
Upvote 0

brelto85

Active Member
Licensed User
Longtime User
tips to solve the problem?
the voice recognition on the smartphone (google search) works correctly
 
Last edited:
Upvote 0

brelto85

Active Member
Licensed User
Longtime User
you mean the Language property of the voicerecognition class?
in this case i have the same error

the strange behavior is that the google search with voice recognition works perfectly with all language...
 
Upvote 0

brelto85

Active Member
Licensed User
Longtime User
getDefaultSim is no sim
getDefaultSim is no sim
getDefaultSim is no sim
create GsmCellLocation
CellLocation is null
unknown language requested in voice recognition intent: en (use RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS to retrieve a list of supported languages)
Could not get audio input for record source 6
Error creating AudioRecord instance: initialization check failed.
[ android.media.AudioRecord ] Error code -20 when initializing native AudioRecord object.
Audio error
java.io.IOException: not open
at com.google.android.voicesearch.endpointer.MicrophoneInputStream.<init>(MicrophoneInputStream.java:65)
at com.google.android.voicesearch.speechservice.MicrophoneManagerImpl.getMicInputStream(MicrophoneManagerImpl.java:107)
at com.google.android.voicesearch.speechservice.MicrophoneManagerImpl.setupMicrophone(MicrophoneManagerImpl.java:95)
at com.google.android.voicesearch.speechservice.RecognitionControllerImpl.startRecognition(RecognitionControllerImpl.java:361)
at com.google.android.voicesearch.speechservice.RecognitionControllerImpl.access$100(RecognitionControllerImpl.java:82)
at com.google.android.voicesearch.speechservice.RecognitionControllerImpl$1.handleMessage(RecognitionControllerImpl.java:251)
at android.os.Handler.dispatchMessage(Handler.java:130)
at android.os.Looper.loop(SourceFile:351)
at android.os.HandlerThread.run(HandlerThread.java:91)
ERROR_AUDIO
unknown stream type
unknown stream type
unknown stream type
setParameters still have param.size() = 1
Ongoing Scan action...
create GsmCellLocation
CellLocation is null
unknown stream type
unknown stream type
unknown stream type
unknown stream type
unknown stream type
[DVM] mmap return base = 47c45000
 
Upvote 0

brelto85

Active Member
Licensed User
Longtime User
I agree with you. but how is it possible that the voice recognition google search works correctly with both languages​​?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…