async def encode_audio_and_send(self, audio: bytes, done: bool, inference_id: str):
        """Encodes audio to base64 and sends it to Tavus"""
        audio_base64 = base64.b64encode(audio).decode("utf-8")
        await self._send_audio_message(audio_base64, done=done, inference_id=inference_id)
Encodes audio to base64 and sends it to Tavus
src/pipecat/transports/services/tavus.py