3
我正在向外部存儲器寫入音頻,但立即上傳文件並將其刪除。我寧願直接獲取音頻數據並直接上傳,而無需寫入SD卡。在Android上錄製音頻而不保存到外部存儲器
這裏是我當前的代碼:
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setOutputFile(Environment.getExternalStorageDirectory()
.getAbsolutePath() + "/filename.3gp");
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
是否有任何替代我的setOutputFile
通話將寫入某種類型的流?