I'm developping an application that aims to record speech using a bluetooth headset microphone. I'm using Ionic 2 with this environment :
@ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.1.4
@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms : android 6.1.2
Ionic Framework : ionic-angular 2.2.0
System:
Node : v6.10.0
OS : Windows 10
npm : 3.10.10
I'm using cordova-plugin-audioinput to record the audio. I've tried to change the audio input source type of the configuration to VOICE_COMMUNICATION, MIC and DEFAULT. However, it's still recording with the device's microphone.
On Android, I've seen that MediaRecorder is used. I've tried to set the audioinput source to VOICE_CALL after reading it but the app crashed.
Finally, I found this link. I would like to know if there is any cordova plugin to do this? Is there a way to record audio from a bluetooth headset microphone using Ionic 2?
Thanks in advance