java - Android Visualizer 立体捕捉

标签 java android audio visualizer

我想使用 Visualizer 类以特定格式捕获系统范围的音频。 (44.1khz,16 位,立体声)

我不知道如何请求将某种格式返回给我。我可以在 Gingerbread 和更早的版本中进行修改,以返回 16 位格式的音频,但仍然没有立体声。 StackOverflow 有什么想法吗?

最佳答案

作为Visualizer documentation说:

It is not an audio recording interface and only returns partial and low quality audio content.

Two types of representation of audio content can be captured:
  • Waveform data: consecutive 8-bit (unsigned) mono samples by using the getWaveForm(byte[]) method
  • Frequency data: 8-bit magnitude FFT by using the getFft(byte[]) method

无需修改 Android 本身,您就可以掌握例如展示台的输入缓冲区我不明白如何获得具有更高采样率/更多 channel 数的数据。

关于java - Android Visualizer 立体捕捉,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14371608/

相关文章:

java - 主线程和当前线程

java - 为什么不能在 jmock 中模拟 Pattern.class ?

java - java的继承与多态

java - Spring WS : Soap fault not identified as Fault

java - 预期错误 JUnit 版本 3.8 或更高版本 - Android Studio

android - 带有 construct 2 游戏引擎的移动浏览器的声音格式

android - 如何设置 Android Dialog 的 MaxWidth?

android - 执行时 FireFox 4.0 的 Kiosk 模式

Android MediaPlayer 在高达 Android 2.1 的自定义音频流应用程序中工作正常,但在更高版本中不能正常工作

ios - 发短信和通过电子邮件发送录音大小问题