Android能够管理麦克风/输入音量吗? [英] Is Android capable of managing microphone/input volume?

查看:658
本文介绍了Android能够管理麦克风/输入音量吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我到处都有搜索,包括RootTools源.除了完全静音之外,我找不到任何可以管理麦克风的东西.而且AudioRecorder.setMicrophoneMute(bool)方法内部也没有任何提示...

I've searched everywhere, including the RootTools source. I can't find anything that manages the microphone, apart from muting it altogether. And there are no hints inside the AudioRecorder.setMicrophoneMute(bool) method either...

关于此问题的帖子很少,但都没有到任何地方(没有操作人员的过错).是否有可能(合法地)改写操作系统并直接使用麦克风硬件或其他东西?

There are a few posts about this issue, but none of them ever go anywhere (through no fault of OPs'). Is it (legally) possible to override the OS and get to the mic hardware directly or something?

谢谢,
-tre

Thanks,
-tre

推荐答案

您不能直接 设置录音音量,但是可以更改对从AudioRecord获得的字节数据的处理方式(看一下AudioTrack类以减少音轨的音量)

You can't directly set the recording volume, but you can change what you do with the byte data you get from AudioRecord (look at the AudioTrack class for reducing the volume of the track)

我忘了提一下,如果您在音量峰值方面遇到麻烦,可以看看自动增益控制.某些设备会自动激活它,但是您可以手动启用它.

I forgot to mention that if you're having trouble with volume spikes you can look at automatic gain control. Some devices activate it automatically, but you can manually enable it.

这篇关于Android能够管理麦克风/输入音量吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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