发送录制的音频作为麦克风输入 [英] Send recorded audio as microphone input

查看:120
本文介绍了发送录制的音频作为麦克风输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该写些什么才能以编程方式将录制的音频文件作为麦克风中的麦克风输入发送出去?

What must I write to send a recorded audio file as the microphone input in android programmatically?

示例:

用户记录"hello world".

User records "hello world".

然后他可以在通话中播放录音.

He can then play the recording in a call.

推荐答案

一旦您有了录制的文件,就可以将其作为InputStream或其他任何方式打开. 但是,如果您特别希望将音频注入到正在运行的通话中,那么这是不可能的.它是受保护的操作系统级别.

once you have a recorded file, you can open it as a InputStream, or any other way. BUT if you specifically looking for something like injecting the audio into a running call, then this is not possible. it's protected OS-level.

除非您要处理自定义ROM和修改的内核.这不是官方的

unless you are dealing with custom ROMs and modified kernels. which is not official

这篇关于发送录制的音频作为麦克风输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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