在Android的实时音频处理 [英] Real-time audio processing in Android

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

问题描述

我试图找出如何编写一个应用程序,可以解除对飞code音频莫尔斯code。我发现本文,说明如何记录从Android中的麦克风音频。我想知道的是,是否有可能从麦克风或者是否已被写入/读取一个文件访问原始输入。

I'm trying to figure out how to write an app that can decode audio morse code on the fly. I found this document which explains how to record audio from the microphone in Android. What I'd like to know is whether it's possible to access the raw input from the microphone or whether it has to be written/read to a file.

感谢。

推荐答案

如果您使用 MediaRecorder (本例中,上图)将COM pressed音频保存到文件中。

If you use MediaRecorder (the example, above) it will save compressed audio to a file.

如果您使用 AudioRecord ,你可以直接得到的音频采样。

If you use AudioRecord, you can get audio samples directly.

是的,你想做的事是可能的。

Yes, what you want to do should be possible.

这篇关于在Android的实时音频处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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