Androidでペアリングされた Bluetooth オーディオ デバイス ( Mester Clarity Bluetooth Speakerなど)から音声を録音するにはどうすればよいですか。
Android 内からデバイスとペアリングしましたが、(電話の内蔵マイクを使用するのではなく) デバイスのマイクから音声を録音したいと考えています。
記録に使用しているコードは次のとおりです。
try {
isRecording = true;
recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
if (file == null) {
File rootDir = Environment.getExternalStorageDirectory();
file = File.createTempFile(PREFIX, EXTENSION, rootDir);
}
recorder.setOutputFile(file.getAbsolutePath());
recorder.prepare();
recorder.start();
timDown = new RecordCountDown(10000, 1000);
timDown.start();
} catch (Exception e) {
Log.i("Error Message", "Error Message :" + e.getMessage());
}
これどうやってするの?