J2ME/Blackberry - 获取音频信号幅度级别?
j2me中可以测量JSR-135播放器录制的音频信号幅度吗?
我知道我可以访问缓冲区,但那又怎样呢?
目标型号 Bold 9000,支持格式 PCM 和 AMR。我应该使用哪种格式?
参见 Blackberry 录音示例代码
如何 - 在 BlackBerry 智能手机上录制音频
谢谢!
Is it possible in j2me to measure signal amplitude of audio record made by JSR-135 Player?
I know I can access buffer, but then what?
Target model Bold 9000, supported formats PCM and AMR. Which format I should use?
See also
Blackberry Audio Recording Sample Code
How To - Record Audio on a BlackBerry smartphone
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
获取原始 PCM 信号电平
使用线程进行录音:
以及使用 byte[] 缓冲区绘制图形的方法:
屏幕类:
很有帮助:
ADC ->整数 PCM 文件 ->信号处理
SO - 音频如何用数字表示?
将字节数组转换为整数
Get raw PCM signal level
Using thread for audio recording:
And method for painting graph using byte[] buffer:
Screen class:
Was helpfull:
ADC -> integer PCM file -> signal processing
SO - How is audio represented with numbers?
Convert byte array to integer
在大多数设备中,仅支持单轨 MID 格式。这是 mid0 格式,支持单个轨道中的多种乐器。我不确定 api 是否提供了测量信号幅度的功能。要将 mid 文件转换为您可以使用 Anvil Studio,它有免费版和专业版
要录制音频,您需要使用 Manager.createPlayer("capture://audio")。还将编码(PCM 或 AMR)留给设备实现,因为有些手机不支持 PCM/AMR
希望这会有所帮助!
In most devices, only MID format with a single track is supported. That is the mid0 format that supports multiple instruments in one single track. I am not sure if the api provides the facility to measure the amplitude of a signal. To convert mid files to you can use Anvil Studio that has both free and pro versions
To record audio you need to use Manager.createPlayer("capture://audio"). Also leave the encoding (PCM or AMR) to the device implementation because some phones don't support PCM/AMR
Hope this helps!