I don't need to save it. I just want to send it to the agent. Can i use the Sending files & bytes
Use byte streams to send files, images, or any other kind of data between participants. method?
t
tall-airline-16756
11/12/2025, 12:37 PM
Absolutely, you can use LiveKit's byte stream functionality to send voice notes or audio files to other participants in real-time. There are two great options for you to consider:
• sendFile: This is perfect if you have a complete audio file saved on your device and want to share it with others. It's straightforward and works well for pre-recorded voice notes.
• streamBytes: This method is fantastic for sending audio data bit by bit, which is especially helpful if you want to transmit voice notes live with minimal delay.
On the receiving side, participants will just need to set up a byte stream handler to manage the incoming audio data. If you'd like, I’m here to walk you through the detailed steps to get this up and running smoothly!
Sources: Realtime data | LiveKit Docs | livekit/src/room/data_stream/outgoing.rs | livekit-rtc/livekit/rtc/data_stream.py | Sending files & bytes | LiveKit docs | Sources/LiveKit/Participant/LocalParticipant+DataStream.swift