recorded audio into a voice call
The question have been asked before ( How to play an audio file on a voice call in android, play an audio file on a voice call etc), but I will ask it anyway: Is it possible to play an audio file into an ongoing voice call. I know the short answer is "No", but i haven't figured it out why it is so.
I know the SDK doesn't has any support for it, but would it by any chances be possible in some way to write your own code that handles this, maybe with help from C/C++ code (using the NDK). Do anyone have any ideas on how to solve this? Or is the answer a strict "no, you can't play pre-recorded audio into a voice call"?
I don't really care if the solution doesn't work on all devices out there as longest I can find some devices that supports the solution, and I can consider the get root access if that is needed.
I used Audiotrack to play audio with stream set to STREAM_VOICE_CALL during voice call on my One-Plus(Test Device) and it worked perfectly, however the audio which I speak is heard clearly and the music played is not heard. Probably because of the noise cancellation feature applied. I used Lollipop based Rom for this.So the answer is yes we can play.
链接地址: http://www.djcxy.com/p/75458.html上一篇: 发送语音留言给来电
下一篇: 录制音频到语音通话中