Skip to content

Browser Voice

Browser voice lets you talk to a persona from a web page at /voice/. The browser uses WebRTC for the live audio. The daemon keeps authentication, policy, the session lifecycle, and all delegated work.

A voice call has two parts:

  • The live voice model handles the spoken conversation. It receives the audio and produces speech.
  • A normal Talon persona does the actual work. When the live model needs something done, it delegates to the persona. The persona runs with its own backend model, tools, skills, and MCP servers, through the same queue and runner as text messages.

Voice is disabled by default. When you enable it, Talon starts an HTTP listener for the voice page and its API. A reverse proxy publishes that listener over HTTPS.

  • A persona whose provider is enabled. Voice work uses that persona’s normal model and queue. The provider’s normal OAuth and native-tool restrictions still apply.
  • A voice access token. This is the secret you type on the login page. Keep it in an environment variable referenced from auth.providers.
  • A live API key, when the live provider requires one. Keep it in an environment variable too.
  • HTTPS for any browser that reaches Talon over a network. Local loopback testing can use HTTP.
  • A reverse proxy that preserves the public Host and Origin headers and sends X-Forwarded-Proto: https. Talon uses that header to decide whether to mark the cookies Secure and to check the origin.
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
FieldDefaultDescription
enabledfalseStart the browser voice runtime
host127.0.0.1Listener address
port0Listener port. 0 selects an available port, so set a fixed port when you use a reverse proxy
publicHostnonePublic HTTPS host. Adds https://<publicHost> to the allowed origins. It does not change the listener address
accessTokenRefvoiceThe auth.providers.<name>.apiKey slot that holds the login token
liveApiKeyRefopenaiThe auth.providers.<name> slot used by the live voice provider
modelgpt-live-1Live voice model. This is separate from the persona’s backend model
personafirst configured personaPersona that does the delegated work
voicemarinOutput voice of the live model
instructionsYou are Talon, a helpful voice assistant.Instructions for the live provider
usdPerMinutenoneYour provider’s current per-minute rate, for cost estimates
allowedOrigins[]Browser origins that may use the voice API
allowedTransportTypes['webrtc']Transport allowlist. The runtime accepts only webrtc
maxSessionLifetimeMs900000Maximum length of one live call (15 minutes)
maxConcurrentSessions1Number of active browser sessions
maxSessionCreations5Session creations allowed per window
sessionCreationWindowMs60000Length of the session creation window
maxContextChars32000Bound for the voice context passed to the live provider

See the config reference for the full schema.

Notes on specific fields:

  • Persona. voice.persona must name an existing persona. Its configured provider, or the agent-runner default, must be enabled.
  • Deprecated fields. voice.provider, voice.allowedToolNames, and voice.allowedMcpServerNames are compatibility fields. Talon ignores the two allowlists. Do not use them to grant access. The persona’s own capability policy decides what voice can do.
  • Reserved channel name. When voice.enabled is true, the channel name browser-voice is reserved for the internal voice channel. Startup rejects an ordinary channel with that name.

Route /voice/ to voice.host:voice.port.

Keep the default loopback host when the proxy shares the daemon’s network namespace. If the proxy runs in another VM, container, or network namespace, set host to an address the proxy can reach, or to 0.0.0.0, and restrict network access. Origin, authentication, and CSRF checks apply on every listener address.

  1. Start the daemon and the proxy.
  2. Open https://voice.example.com/voice/.
  3. Enter the access token.
  4. Optional: select Keep me signed in for one year. The option is unchecked by default.
  5. Start a call and allow microphone access.

Talon exchanges the token for an HttpOnly session cookie and a CSRF cookie. The login lasts 15 minutes by default, or 365 days when you select the remember option. Both durations are fixed. There is no sliding refresh.

The browser does not keep the access token or the session secret in Web Storage. The server stores only hashed verification values. Logins survive a normal daemon restart. Logout, a rotated credential, and a configuration reload revoke the affected logins.

A request without a valid login cannot create a session or reach the queue or the provider.

The login duration controls how long the browser stays signed in. voice.maxSessionLifetimeMs controls how long one live call can last. A remembered login is not a remembered audio connection.

When you reopen the page, the browser first checks whether the login is still valid. A valid login shows the ready screen, even when the previous call no longer exists. A network or server failure shows a retry message and does not log you out.

Restoring the page can show the status and history of a retained call. It never requests the microphone, starts a paid audio session, connects to the provider, or replays old work.

A different browser profile, cleared site data, or a Safari home-screen app has its own cookies and may need a fresh login.

The server chooses the persona, live model, output voice, tools, and MCP policy. The browser cannot change them.

When the live model delegates a request, Talon turns it into a durable task on the ordinary queue. The persona runs it like a text message and the result is spoken back.

The persona’s normal capability policy applies, with one difference. Capabilities listed in requireApproval are not available to voice, because voice has no interactive approval step. Grant the voice persona only tools that can run without approval. The same policy applies to sub-agents and other work the persona starts.

Voice uses one durable thread per owner and persona, shared across calls. Earlier voice calls give context to later ones, bounded to 200 history rows and 16,000 characters. Talon does not import messages from other channels into the voice thread.

Talon is strict about what counts as a request:

  • Talon waits for a short quiet interval after the user’s last captured speech before it accepts a delegation. It collects for at most five seconds.
  • If the request is still unclear or unsafe at that point, Talon does not run it and follows its clarification path instead.
  • A later delegation needs a fresh user turn. Talon does not reuse an earlier utterance.

Hanging up skips work that has not started. Work that was already claimed or running finishes, and its result stays in the session history. If the login expires or is revoked during a run, the result is still stored but is not spoken.

  • One active session by default (maxConcurrentSessions).
  • Five session creations per 60 seconds by default (maxSessionCreations, sessionCreationWindowMs).
  • 15 minutes per live call by default (maxSessionLifetimeMs).
  • WebRTC is the only transport.
  • Background audio and lock-screen audio are not promised.

What the provider receives. The live provider receives the audio and the live transcript data needed for the call. Retention and deletion on the provider side are controlled by your provider account and API settings. Talon does not control them.

What Talon stores. Talon stores session state, delegations, bounded prompt fragments, output text, usage, and lifecycle state in local SQLite. It does not store raw audio. Voice rows have no automatic cleanup. Include the SQLite voice tables in your retention and backup policy. The local database and operational logs can contain sensitive text.

Observability. For voice runs, Talon excludes transcripts, prompts, tool arguments, tool results, and free-form errors from Langfuse.

Voice cost. Set voice.usdPerMinute only when you have a current rate from your provider. It has no default. The cost status has three values:

StatusMeaning
estimatedA rate is configured. Talon estimates the cost from the seconds the provider reported. This is not a confirmed bill
incompleteA rate is configured and usage is known, but the call did not close cleanly
unavailableNo rate is configured

Talon never derives a voice dollar amount from token totals.

Backend cost. The cost of the persona’s delegated work comes from normal run accounting. Talon reports it separately from the voice cost.

The repository tests browser voice with an offline integration harness. It uses the real daemon bootstrap, voice server, cookie and CSRF authentication, database migrations, queue, and runner. Only the live provider and the backend command are fake. Browser UI checks cover login, a denied microphone, mute, hangup, restart, retained closed sessions, and a 390 px viewport.

These checks do not cover:

  • A call on a physical iPhone or in Safari
  • A paid call against a live provider
  • Provider-specific transcript timing in a live audio session
  • Cookie retention on a physical iPhone

Test these yourself before you rely on browser voice with an external provider or on mobile.