简体   繁体   English

录制声音,然后在Android上使用/保存声音

[英]Recording sound, and then using/saving it on Android

I want to add a feature into my app where you can record sound and then use it within the app (MediaPlayer) 我想在我的应用程序中添加一个功能,您可以在其中录制声音,然后在应用程序中使用它(MediaPlayer)

How can I do this? 我怎样才能做到这一点?

  • How do I record sound? 如何录制声音?
  • How do I get it into a Mediaplayer? 如何将其放入Mediaplayer?
  • Does it have to be saved? 是否必须保存? or can it go from being recorded -> into app straight away... 还是可以从录制->立即进入应用...

使用AudioRecord类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM