I successfully built the pokectSphinx android demo on my phone, but I want to recognize my speech by using bluetooth headset, which means mute my phone micphone and just use the bluetooth headset.
I cannot find where I should modify in the android demo project.
Can somebody help me?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried your code, no error, no warning, but I can't use my bluetooth headset with my PocketSphinx application.
It still works for my phone's microphone however.
I also tried to mute my phone's mic and then, the sound goes to my bluetooth headset, but both of my mics (phone and headset) can't be used.
Could you please helping me ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It depends a lot on your phone model. You need to make sure audio recording from bluetooth works, it is not related to pocketsphinx at all. You might also get additional details from logcat.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I.e. bluetooth framework functions differently on different phones. You need to try on different phone models first maybe to see if it works somewhere.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I successfully built the pokectSphinx android demo on my phone, but I want to recognize my speech by using bluetooth headset, which means mute my phone micphone and just use the bluetooth headset.
I cannot find where I should modify in the android demo project.
Can somebody help me?
1) Register receiver to get notified about bluetooth connections:
2) When connection is active start Bluetooth SCO:
That should make recorder get audio from Bluetooth.
Thank you very much!
I will try.
Hi Nickolay,
I tried your code, no error, no warning, but I can't use my bluetooth headset with my PocketSphinx application.
It still works for my phone's microphone however.
I also tried to mute my phone's mic and then, the sound goes to my bluetooth headset, but both of my mics (phone and headset) can't be used.
Could you please helping me ?
It depends a lot on your phone model. You need to make sure audio recording from bluetooth works, it is not related to pocketsphinx at all. You might also get additional details from logcat.
I.e. bluetooth framework functions differently on different phones. You need to try on different phone models first maybe to see if it works somewhere.
Okay, thank's for your answer, it's working fine today for my bluetooth headset with MODE _IN_COMMUNICATION.