录制声音,然后在 Android 上使用/保存
我想在我的应用程序中添加一项功能,您可以在其中录制声音,然后在应用程序 (MediaPlayer) 中使用它,
我该如何执行此操作?
- 如何录制声音?
- 如何将其放入媒体播放器?
- 是否必须保存?或者可以不被记录->立即进入应用程序...
I want to add a feature into my app where you can record sound and then use it within the app (MediaPlayer)
How can I do this?
- How do I record sound?
- How do I get it into a Mediaplayer?
- Does it have to be saved? or can it go from being recorded -> into app straight away...
使用 AudioRecord 类。
Use AudioRecord class.