I am developing an application that is designed to record speech using the microphone of a bluetooth headset. I am 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 use cordova-plugin-audioinput to record audio. I tried changing the type of configuration input audio source to VOICE_COMMUNICATION, MIC and DEFAULT. However, it is still being recorded using the device’s microphone.
On Android, I saw MediaRecorder being used. I tried to set the audio input source to VOICE_CALL after reading it , but the application crashed.
Finally, I found the link. I would like to know if there is any cordova plugin for this? Is there a way to record sound from the microphone of a bluetooth headset using Ionic 2?
Thanks in advance