[英]Android Record Audio NO SDCARD
Im reading about how to record audio in android and i want to know if is possible to record audio without store it in SD Card. 我正在阅读有关如何在android中录制音频的信息,我想知道是否可以在不将音频存储在SD卡中的情况下录制音频。 What happend with terminals that dont have sd card?
没有SD卡的终端怎么办? Also, in my application, i only want to record a sound and upload to my server... so maybe is not necessary to record in sd o internal memory.
另外,在我的应用程序中,我只想录制声音并上传到我的服务器...因此也许不必在SD内存中进行录制。
I need to take a photo, write a text and record audio in the same activity to send three to my server and store in a DB to use it in other terminal. 我需要在同一活动中拍摄照片,编写文本并记录音频,然后将三个发送到我的服务器并存储在数据库中以在其他终端中使用。
Someone knows something about?? 有人知道吗?
Thanks a lot! 非常感谢!
String fileName = "test.3gp";
MediaRecorder mRecorder = mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
mRecorder.setOutputFile(context.getCacheDir().getAbsolutePath + "/" + fileName);
standart path is /data/data/YOUR_APP_PACKAGE_NAME/cache/ Also you need ensure that you have enough internal storage space 标准路径是/ data / data / YOUR_APP_PACKAGE_NAME / cache /另外,您还需要确保有足够的内部存储空间
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.