def audio_callback(self, indata, frames, time, status):
        """This is called for each audio block"""
        if status:
            print(status)
        # if np.isclose(indata, 0).all():
        #     raise Exception('Audio input is not working - received all zeros')
        # Convert float32 to int16 for efficient transmission
        indata_int16 = (indata.copy() * 32767).astype(np.int16) 
        # indata_int16 = np.zeros_like(indata_int16)
        self.audio_queue.put(indata_int16)
This is called for each audio block
inference_client.py