if i create a push to talk agent, will it record t...
# ask-ai
s
if i create a push to talk agent, will it record the audio and send it once use complete speech , or use live transcript??
t
Thanks for reaching out, Rahul. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for your interest in how a push-to-talk agent works in LiveKit! It’s pretty neat — instead of recording audio and sending it after someone finishes speaking, the agent uses live transcription. This means the audio is processed in real time with a speech-to-text (STT) system, and you’ll see transcription events (both interim and final) as the person talks. Here’s how it works: when the client starts speaking, it triggers the
start_turn
RPC method, which enables audio input and streams the live audio for transcription. Once the user finishes their turn, the
end_turn
RPC method stops the audio input and finalizes the transcription. This method helps keep things smooth and responsive, so you don’t experience delays or buffering while waiting for the audio to be processed. If you have any questions or want to explore this further, I’m here to help! Sources: examples/src/push_to_talk.ts | examples/voice_agents/README.md