Hi,
I' ve notice an anomaly in the VoiceRecognition
My scenario is this:
- 1 Activity
- 1 Service
In the activity i' ve a button that start the service
In the Service_Create method i've initialized the AudioRecorder library to check the level of audio
...and works fine.
The problem is that if i starting the VoiceRecognition during service run, after the Listen() method, returns instantly a message like "I did not understand. try to say it again"
If i've stop the service, the VoiceRecognition works correctly
Is probably that the AudioRecorder and VoiceRecognition library are in conflict?
thanks
Alberto
I' ve notice an anomaly in the VoiceRecognition
My scenario is this:
- 1 Activity
- 1 Service
In the activity i' ve a button that start the service
In the Service_Create method i've initialized the AudioRecorder library to check the level of audio
B4X:
mAudioRecorder.Initialize()
mAudioRecorder.AudioSource = mAudioRecorder.AS_MIC
mAudioRecorder.OutputFormat = mAudioRecorder.OF_THREE_GPP
mAudioRecorder.AudioEncoder = mAudioRecorder.AE_AMR_NB
mAudioRecorder.setOutputFile("","/dev/null")
mAudioRecorder.prepare
mAudioRecorder.Start
...and works fine.
The problem is that if i starting the VoiceRecognition during service run, after the Listen() method, returns instantly a message like "I did not understand. try to say it again"
If i've stop the service, the VoiceRecognition works correctly
Is probably that the AudioRecorder and VoiceRecognition library are in conflict?
thanks
Alberto