Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f08559cf authored by lpeter's avatar lpeter
Browse files

Set correct audio source when creating mic audio record

Bug: 185223459
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: Iad79066eb66ecb02497be926a467b3726e467a5c
parent 1233b55e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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(),