How a live voice call with your AI agent works

A live call with your agent is a relay: Twring turns your speech into text, hands that text to the agent you already run, and turns the agent's reply back into speech while it is still being written. Your agent does all the thinking and acting with its own model, tools and permissions; Twring only handles listening, speaking, taking turns and interruptions.

What happens when I speak?

Think of Twring as a very fast interpreter sitting between you and your agent. The interpreter does not answer for the agent. It only listens and speaks.

  1. You talk. Your phone sends your voice over the internet to the Twring server, the same way a video call app does.
  2. Speech becomes text. A speech-to-text service writes down what you are saying as you say it.
  3. Twring decides you have finished. When you have actually stopped talking, not just paused for breath, your words become one finished turn.
  4. Your agent gets the text. The finished turn is sent once to your agent: Claude Code, Codex, Hermes or another agent you connected.
  5. Your agent works and replies. It uses its own model, memory and tools, exactly as it would if you had typed.
  6. Text becomes speech. As the reply streams in, a text-to-speech service reads it out in the voice you chose.

This chain (speech to text, your agent, text to speech) is often called a cascade. Each link does one job.

Why does it feel like a call and not voice notes?

Two things: streaming and turn-taking.

Streaming means nothing waits for anything to be complete. Your words are written down while you speak. Your agent's reply is spoken while it is still being written, a few words at a time, so you hear the start of the answer before the end exists.

Turn-taking means Twring listens all the time and works out when you have handed the floor to the agent. It combines the speech service's own end-of-turn signal with its own checks, and it avoids long fixed silence timers that would make every reply feel slow. Only a finished turn is ever sent to your agent as an instruction.

What happens when I interrupt?

You can cut in, just like on a phone call. This is often called barge-in.

The microphone stays on while the agent is speaking. When Twring is confident you have started talking, it stops the agent's voice straight away, throws away any speech still queued, and starts listening to your new turn. Any late audio from the old answer is dropped, so the agent never carries on talking over you.

Stopping the voice is not the same as undoing work. If your agent had already started a command, Twring does not pretend it was reversed. Twring can ask the agent to stop generating where the agent supports that, but what happens to actions is up to your agent and its own permissions.

What does the agent do while it is working?

Coding agents often spend a while running commands or reading files before they say anything. If the agent reports what it is doing, Twring shows that on screen and may say a short line about it, built only from the agent's own activity. If the agent reports nothing, the screen just says it is working. Twring never invents progress or tool names.

Why not use a speech-to-speech model?

Some voice products use one model that listens and talks directly, with no text in between. Those can sound very natural. Twring deliberately does not let such a model take control of your agent's actions.

The reason is simple. You already chose an agent, set up its tools and decided what it is allowed to do. If a separate voice model sat in the middle and made its own decisions, it would be a second brain with its own idea of what you meant. In Twring, voice is input and output only. The agent you connected stays the only thing that reasons, remembers and acts, and Twring never calls its tools for it.

What happens if my connection drops?

Phones move between Wi-Fi and mobile data all the time. During a short drop Twring keeps the call screen up, shows that it is reconnecting, and tries to recover the same call. It is careful not to send your last turn to the agent twice and not to replay old speech. Twring never re-sends something to your agent just because the network hiccuped, because the agent might do a risky action twice. If the call cannot be recovered, it ends with a clear reason and a way to call again.

Does Twring record the call?

No. Twring listens only while a call is on, and never records or keeps your audio. Your agent receives text, not your raw microphone audio. The privacy policy has the details.

A little deeper, for developers

For readers who want the plumbing:

  • Media. Calls run on LiveKit (WebRTC). The Twring gateway owns the audio channel and never forwards raw microphone audio to agent endpoints.
  • Speech. The first providers are Deepgram Flux for speech to text and Deepgram streaming text to speech. Provider events are turned into Twring's own event types (partial, final, end of turn, error) before anything else sees them, so the app never depends on one vendor's format.
  • Turns. A committed user turn has a call ID, session ID and turn ID and is sent to the agent adapter exactly once. Duplicate finals are deduplicated where possible.
  • Cancellation. Every chunk of speech is tagged with a speech generation ID. On barge-in the old generation is invalidated and any late audio for it is discarded. Agent cancellation uses an abort signal where the agent supports it, and is kept separate from audio cancellation.
  • Adapters. Agents connect through a small adapter contract: an agent on your computer through the Twring tool, an agent at its own web address through a Twring-made endpoint, a web service or a server that works like the ChatGPT API. The connector page covers AI apps like Claude and ChatGPT.
  • Open source. The code is on GitHub, and you can run your own server.

Get an invite

Questions

Does my agent hear my voice or read text?

It reads text. Twring turns your speech into text and sends your agent one finished turn at a time, the same as if you had typed it. Raw microphone audio is never forwarded to your agent.

If I interrupt, does my agent stop what it was doing?

Interrupting always stops the agent's voice quickly. Stopping its work is separate: Twring can ask the agent to stop generating where the agent supports it, but it never assumes an action that already started was undone.

Can I see what was said during the call?

Yes. The call screen shows your agent's reply as text while it speaks, and your calls and typed chats with each agent sit side by side in the app. Twring still does not record or keep the call audio.

Can I run the voice part on my own server?

Yes. Twring's source is on GitHub and you can run your own server. The self-hosting page explains how, including how rings work for self-hosted servers.