Improve Android Audio Recording quality?

后端 未结 2 1434
小鲜肉
小鲜肉 2020-12-02 07:08

Is there any way to record audio in high quality?

And how can I read information that user is saying something? In Audio Recording application you can see such indic

2条回答
  •  Happy的楠姐
    2020-12-02 07:52

    For recording and monitoring: You can use the sound recorder activity. Here's a snippet of code:

    Intent recordIntent = new Intent(
                    MediaStore.Audio.Media.RECORD_SOUND_ACTION);
                startActivityForResult(recordIntent, REQUEST_CODE_RECORD);
    

    For a perfect working example of how to record audio which includes an input monitor, download the open source Ringdroid project: https://github.com/google/ringdroid

    Look at the screenshots and you'll see the monitor.

    For making the audio higher quality, you'd need a better mic. The built in mic can only capture so much (which is not that good). Again, look at the ringdroid project, glean some info from there. At that point you could implement some normalization and amplification routines to improve the sound.

提交回复
热议问题