Skip to content

Talk to Talon: browser voice over WebRTC

Talon can now hold a voice call. You open /voice/ in a browser, log in with an access token, and talk. The live audio runs over WebRTC. The work behind the call runs on the daemon, with the same persona, tools, and queue that your text messages use.

Browser voice is on the main branch and ships in the next tagged release. It is disabled by default.

A voice call has two models. A live voice model handles the audio in real time. When you ask for something that needs real work, the live model delegates it to a normal Talon persona.

  1. The browser sends a WebRTC offer to Talon.
  2. Talon selects the persona, the live model, and the output voice from the daemon configuration. The browser cannot choose them.
  3. The live model listens and speaks.
  4. Requests for backend work become durable voice delegations on the ordinary queue.
  5. The persona runs the work through the same AgentRunner path as text, and the result is spoken back to you.

Because the delegation is durable, a result survives a hangup. Work that was already claimed or running finishes, and you can read the result in the session history afterward.

auth:
providers:
voice:
apiKey: ${TALON_VOICE_ACCESS_TOKEN}
openai:
apiKey: ${OPENAI_API_KEY}
voice:
enabled: true
host: 127.0.0.1
port: 8787
publicHost: voice.example.com
accessTokenRef: voice
liveApiKeyRef: openai
model: gpt-live-1
persona: assistant
voice: marin
allowedOrigins:
- https://voice.example.com
allowedTransportTypes:
- webrtc

voice.persona names an existing persona. That persona’s provider, backend model, skills, and MCP servers apply to voice work. voice.model is the separate live voice model.

Route /voice/ on your reverse proxy to voice.host:voice.port. A browser on another machine needs HTTPS. Local loopback testing can use HTTP.

Voice opens an HTTP listener, so the authentication design is strict.

  • The listener binds to loopback by default.
  • The browser sends the access token one time, to POST /voice/login. Talon exchanges it for an opaque HttpOnly session cookie and a CSRF cookie.
  • A login lasts 15 minutes. If you select “Keep me signed in for one year”, it lasts 365 days. There is no sliding refresh.
  • The server stores only hashed session and CSRF values. The browser stores no bearer credential in Web Storage.
  • Logout, credential rotation, and a configuration reload revoke the affected logins.
  • Every request passes origin, authentication, and CSRF checks.

The persona’s normal capability policy stays in force during a call. Capabilities that require approval are not available, because a voice call has no approval prompt. MCP servers that Talon cannot prove safe for voice fail closed.

The live provider receives the audio and the live transcript. Provider-side retention is controlled by your account with that provider, not by Talon.

Talon does not store raw audio. SQLite keeps session state, bounded prompt snapshots, and output text for recovery and audit. There is no automatic cleanup for these rows yet, so include the voice tables in your retention policy.

If you set voice.usdPerMinute, Talon estimates the voice cost from the seconds that the provider reports. Without a rate, the voice cost shows as unavailable. Talon never derives a voice dollar amount from token totals.

The test suite covers login, session lifecycle, delegation, restart recovery, and the browser UI with a fake live provider. A physical iPhone call in Safari and background or lock-screen audio are not verified. Test those yourself before you depend on them.

Read the Browser Voice guide for the full configuration and session flow, or see the pull request.