机器人的音频流和麦克风麦克风、机器人、音频

2023-09-05 05:03:07 作者:温瞳 Sou1ゝ

林相当新的Andr​​oid开发,但是从我读我是pretty的肯定是没有直接的API访问的通话音频流。我需要的东西非常接近应答机,所以我在想,如果有任何的API支持的audiostream传递给microhpone内部和使用,作为一个解决方法没有访问调用流。 IE有人呼吁,我们得到的答案,将麦克风静音,使他不能听到的环境,并通过替代audiostream(某种录音)麦克风同时静音......这是唯一的解决办法我能想到的和我不知道如果这样的事情是可能的,但我会AP preciate任何反馈。谢谢!

Im fairly new to Android development but from what I read I am pretty sure there is no direct API access to the in-call audio stream. I need to make something very close to an answering machine so I was wondering if there is any API support to pass an audiostream to the microhpone internally and use that as a workaround for not having access to the call stream. IE someone calls, we get the answer, mute the microphone so that he cant hear the environment and pass an alternative audiostream(some kind of recording) to the microphone while it is muted...That was the only workaround I can think of and I have no idea if something like that is possible, but I will appreciate any feedback. Thanks!

推荐答案

没有,Android不支持注入音频到语音呼叫上行。照片也有一些支持此功能的移动平台,但它不是东西是提供给应用程序开发者,因为有一个在地方,它没有API,无论你是使用Java API或本机API。

No, Android does not support injection of audio into the voice call uplink.There are some mobile platforms that support this functionality, but it's not something that's available to app developers since there's no API in place for it, regardless of whether you're using the Java APIs or the native APIs.