在 Android 上录制特定音量的音频的 API
我想制作一个应用程序来使用 MediaRecorder 进行录制,并由用户设置一定的音量。
录音时可以设置音量吗?我尝试在 MediaRecorder API 中查看,但找不到 setVolume 或类似的东西..
有什么解决办法吗?或者我必须做任何后期流程才能实现这一目标? 谢谢。
I want to make an app to record using MediaRecorder with certain volume set by user.
Is there any possibility to set the volume when recording? I try to see in MediaRecorder API but i can't find setVolume or something like that..
Is there any work around? Or any post process that i have to do to make it happen?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法在录制时执行此操作,但可以在播放时使用 MediaPlayer 上的 setVolume(float, float) 方法设置音量。
You can not do it while recording, but you can set the volume while playing with the setVolume(float, float) method on MediaPlayer.