机器人的音频流和麦克风 [英] Android audio stream and microphone

查看:188
本文介绍了机器人的音频流和麦克风的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

林相当新的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.

这篇关于机器人的音频流和麦克风的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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