brelto85 Active Member Licensed User Longtime User May 30, 2013 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User May 31, 2013 #2 You can use the emulator to test it on different Android versions. However for a feature such as voice recognition you will need a real device. Upvote 0
You can use the emulator to test it on different Android versions. However for a feature such as voice recognition you will need a real device.
brelto85 Active Member Licensed User Longtime User May 31, 2013 #3 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
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 ..
Erel B4X founder Staff member Licensed User Longtime User May 31, 2013 #4 Which library are you using? Can you post the relevant code? Upvote 0
brelto85 Active Member Licensed User Longtime User May 31, 2013 #5 Code: Sub Process_Globals ... Dim mActionVoiceRecogn As VoiceRecognition ... End Sub Code: 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: 436 Upvote 0
Code: Sub Process_Globals ... Dim mActionVoiceRecogn As VoiceRecognition ... End Sub Code: 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
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2013 #6 Are you checking that VoiceRecognition is supported (VR.IsSupported)? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2013 #8 If you have access to one of these devices then you should check the unfiltered logs. There might be more information there. Upvote 0
If you have access to one of these devices then you should check the unfiltered logs. There might be more information there.
brelto85 Active Member Licensed User Longtime User Jul 1, 2013 #9 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
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
Erel B4X founder Staff member Licensed User Longtime User Jul 2, 2013 #10 You can explicitly set the Language property to "en" (English). Otherwise the device default language is used and it might be unsupported. Upvote 0
You can explicitly set the Language property to "en" (English). Otherwise the device default language is used and it might be unsupported.
brelto85 Active Member Licensed User Longtime User Jul 2, 2013 #11 the language was set after Initialize() method how to use RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS to list languages? Upvote 0
the language was set after Initialize() method how to use RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS to list languages?
Erel B4X founder Staff member Licensed User Longtime User Jul 2, 2013 #12 It is currently not possible (without writing a library). Upvote 0
brelto85 Active Member Licensed User Longtime User Jul 2, 2013 #13 tips to solve the problem? the voice recognition on the smartphone (google search) works correctly Last edited: Jul 2, 2013 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 3, 2013 #14 You can explicitly set the language to "en". Upvote 0
brelto85 Active Member Licensed User Longtime User Jul 3, 2013 #15 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
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...
Erel B4X founder Staff member Licensed User Longtime User Jul 3, 2013 #16 Can you post the error message you get when the language is set to "en"? Upvote 0
brelto85 Active Member Licensed User Longtime User Jul 3, 2013 #17 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
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
Erel B4X founder Staff member Licensed User Longtime User Jul 4, 2013 #18 VoiceRecognition supports "en" for sure. I think that there is a problem with this device microphone which is not related to the language. Upvote 0
VoiceRecognition supports "en" for sure. I think that there is a problem with this device microphone which is not related to the language.
brelto85 Active Member Licensed User Longtime User Jul 4, 2013 #19 I agree with you. but how is it possible that the voice recognition google search works correctly with both languages? Upvote 0
I agree with you. but how is it possible that the voice recognition google search works correctly with both languages?
Erel B4X founder Staff member Licensed User Longtime User Jul 5, 2013 #20 I'm sorry but I do not know. Have you tried to reboot the device. Upvote 0