在Android的实时音频处理实时、音频处理、Android

2023-09-12 22:33:46 作者:诺言丶颠覆这宇宙

我试图找出如何编写一个应用程序,可以解除对飞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.