上的语音呼叫播放音频文件 [英] play an audio file on a voice call

查看:129
本文介绍了上的语音呼叫播放音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个相当棘手的问题,这个时候。
我想知道如何在通话过程中注入音频麦克风源。
我知道,我看过许多在这里的主题,并没有指出这是不可能的,不打扰等。
但也有我们开发的搭载Android的工作人员取得了不可能的事情,而我们总是设法拿出一个解决方法 - 它。
例如,这个时候最容易的解决办法是通过扬声器最大音量播放音频,做噪声消除和最好的希望。 ;)

I have a rather tricky question this time.
I want to know how to Inject audio to microphone source during a call.
I know I have read dozens of topics here and there that states "it's not possible", "don't bother" etc..
But there are many things made impossible for us dev's by Android staff and we always managed to come up with a work-around-it.
For example, this time the easiest solution would be to play the audio via speaker with max volume, do a noise cancellation and hope for the best. ;)

推荐答案

从官方文档:

请注意:您可以播放音频数据只到标准输出设备。目前,这是在移动设备的扬声器或一蓝牙耳机。在通话过程中无法播放的谈话音频声音文件。

Note: You can play back the audio data only to the standard output device. Currently, that is the mobile device speaker or a Bluetooth headset. You cannot play sound files in the conversation audio during a call.

我能想到的唯一的事情是莫名其妙地交织通话的声音,你要播放的声音,但你没有直接控制呼叫的声音,所以这很可能是不可能的。

The only thing I could think of would be to somehow interleave the call sound and the sound you want to play, but you don't have direct control over the call sound, so this is likely impossible.

它看起来像这样在3.3可能会改变,但它目前还没有可以做到不使用NDK和/或写你自己的Andr​​oid的发行版。

It looks like this may change in 3.3, but it's currently not possible to do without using the NDK and/or writing your own distro of Android.

抱歉! :(

这篇关于上的语音呼叫播放音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆