androidaudiorecordhalrecognizer-intent

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


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?


Solution

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