提高 Android 录音质量? [英] Improve Android Audio Recording quality?

查看:42
本文介绍了提高 Android 录音质量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法录制高质量的音频?

Is there any way to record audio in high quality?

我如何阅读用户所说的信息?在录音应用程序中,您可以看到这样的指示器(我不知道它的正确名称).

And how can I read information that user is saying something? In Audio Recording application you can see such indicator (I don't know the right name for it).

推荐答案

对于录音和监听:您可以使用录音机活动.下面是一段代码:

For recording and monitoring: You can use the sound recorder activity. Here's a snippet of code:

Intent recordIntent = new Intent(
                MediaStore.Audio.Media.RECORD_SOUND_ACTION);
            startActivityForResult(recordIntent, REQUEST_CODE_RECORD);

有关如何录制包含输入监视器的音频的完美示例,请下载开源 Ringdroid 项目:https://github.com/google/ringdroid

For a perfect working example of how to record audio which includes an input monitor, download the open source Ringdroid project: https://github.com/google/ringdroid

查看屏幕截图,您会看到监视器.

Look at the screenshots and you'll see the monitor.

为了使音频质量更高,您需要更好的麦克风.内置麦克风只能捕获这么多(这不是很好).再次查看 ringdroid 项目,从那里收集一些信息.那时您可以实施一些标准化和放大例程来改善声音.

For making the audio higher quality, you'd need a better mic. The built in mic can only capture so much (which is not that good). Again, look at the ringdroid project, glean some info from there. At that point you could implement some normalization and amplification routines to improve the sound.

这篇关于提高 Android 录音质量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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