i want to use pocketsphinx in my app while recording audio in the background (unrelated to the speech recognition - as part of a video recording).
while trying to do so i constantly get the exception:
ErrorFailed to start recording. Microphone might be already in use.
I understand that in android two different activities cannot share the mic (Pocketsphinx Android demo error: "Failed to init recognizer java.io.IOException: Failed to initialize recorder. Microphone might already be in use.")
, but since i'm using a different audio source i was hoping there is a way to overcome this problem.
From what i saw pocketsphinx is using an AudioRecorder
with a AudioSource=VoiceRecognition
.
Since i'm using a different audio source for the audio recording, i hope there is a way to avoid this exception.
Any other solutions/workarounds would also be helpful.
Thanks!