Android アプリでオーディオを録音しようとしていますが、AAC LC エンコーディングを使用した .mp4 形式のオーディオ ファイルが必要です。デスクトップでプレイ可能。そこで、次のコードを使用して録音を試みたところ、Android で再生できました。
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
mRecorder.setOutputFile("/mnt/sdcard/abcapp/test.mp4");
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
しかし、PCで再生しようとしたら、mp4ファイルを再生できませんでした。VLC や KMPlayer など、すべてのメディア プレーヤーを使用して試しましたが、再生できませんでした。
最も苛立たしい点は、.mp4 で録音し、Windows Media Player を使用して再生できる「Easy Voice Recorder」のようなアプリが Play ストアにあることです。
助けてください。
ありがとう