@HsuWeiYuan-8357 Yes, you can use PullAudioInputStreamCallback but it needs to be extended to read() and close() the audio stream before passing it to the SDK. The high level way to achieve this is documented here. Essentially the read and close are also available in the WavStream.java class reference.
For the second question you need to ensure the PCM sample channel, bits/sample and samples/second are correctly defined as expected by the SDK i.e AudioStreamFormat.GetWaveFormatPCM()
Then use the callback methods while defining the audioconfig and recognize it using the SDK recognizer.