Is there is any android code to pick the voice from the other side in the call? meaning while I'm speaking with another person in my Phone I can Play a speaker that picks the voice, can I direct this voice to my application to record, recognize it, or convert to text? Since my target is to convert the voice in the call to text.
Thanks in advance.
Use Broadcast Receiver to handle calls
public void onReceive(Context context, Intent intent) {
String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
if(state.equals(TelephonyManager.EXTRA_STATE_RINGING)){
}else if(state.equals(TelephonyManager.EXTRA_STATE_OFFHOOK){
//apply recording here
}else if (state.equals(TelephonyManager.EXTRA_STATE_IDLE)){
//stop recording
}
}
To convert Voice to Text Follow this Link