需要播放音频给调用者 [英] Need to play audio to the caller

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

问题描述

有关我的应用程序,我需要播放录制的消息给调用者pre。说,如果有人叫我的电话,我让应用程序应该播放音频,使主叫方听到它。我尝试设置流STREAM_DTMF,STREAM_VOICE_CALL ......(试过所有的人),但毫无效果。 STREAM_MUSIC通过一位发言者的音频播放,但没有这样的呼叫者会听到...

For my app I need to play a pre recorded message to the caller. Say if someone calls my phone and I enable the app it should play back the audio such that the caller hears it. I tried setting the stream STREAM_DTMF,STREAM_VOICE_CALL ... (tried all of them) but nothing worked. STREAM_MUSIC made the audio play through the speaker but was not such that the caller could hear it ...

试图寻找周围,但没有找到任何答案了......真的AP preciate如果有人能做出反应!

Tried searching around but have not found any answer yet ... would really appreciate if someone can respond !

推荐答案

这是不能直接在目前的Andr​​oid手机,作为呼出音频不通过应用处理器上的Linux和Android上运行。

This is not directly possible on current android phones, as the outgoing call audio does not pass through the application processor on which linux and android run.

这篇关于需要播放音频给调用者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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