How to create new Android audio HAL that uses java byte[] as input?

680 views Asked by At

I want to write a PCM byte array in the RecognizerIntent so that it gets processed by it. Therefore I need an additional HAL that accepts byte arrays and writes them into a new AudioSource. As stated here Redirecting audio / creating alternate sound paths in Android this is hardware-dependent but could someone provide one example how to create this additional audio source?

1

There are 1 answers

1
user3521269 On BEST ANSWER

Its not possible without another hardware, as RecognizerIntent is basically a blackbox. But you could try to simulate a second microphone