A similar, but different question was asked here: link1, in that case they wanted to send audio to a phone call.
I am curious about a different situation.
I want to send audio from an application to the Gboard when it is being used with my application, in order to get local speech recognition done. link2
Is it possible to send audio from my app into Gboard such that it uses the local speech recognizer?
Using the Android Pixel audio APIs?
Using some direct APIs to Gboard?