Merge "Set correct audio source when creating mic audio record" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a14d76517a
@@ -434,7 +434,8 @@ final class HotwordDetectionConnection {
|
||||
}
|
||||
try {
|
||||
AudioRecord audioRecord = new AudioRecord(
|
||||
new AudioAttributes.Builder().setHotwordModeEnabled(true).build(),
|
||||
new AudioAttributes.Builder()
|
||||
.setInternalCapturePreset(MediaRecorder.AudioSource.HOTWORD).build(),
|
||||
audioFormat,
|
||||
getBufferSizeInBytes(
|
||||
audioFormat.getSampleRate(),
|
||||
|
||||
Reference in New Issue
Block a user