Jigasi audio byte writing empty file generate

I’m looking for something like sending stream outside from the following code but before sending to other API need to check audio bytes received successfull or not. I put logger files to print audio bytes print some un-readable format data so, I’ve write into a file and try to play the file but should be empty every time. Do you’ve any idea why it’s happening?

Audio file I tried to write in .mp3 and .wav both formats. AudioFormat which I received is LINEAR, 48000.0 Hz, 16-bit, Mono, LittleEndian, Signed

Can you get me out from here, Is it the correct way to get audio data and write in the file?

src/main/java/org/jitsi/jigasi/transcription/GoogleCloudTranscriptionService.java

private void sendRequest(byte[] audio) {
          // writing and logging audio variable which is in the byte and doing the further process over here.
}