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

查看:28
本文介绍了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(上面的例子)它将压缩的音频保存到一个文件中.

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天全站免登陆