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.
How it works
Section titled “How it works”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.
Requirements
Section titled “Requirements”- 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
HostandOriginheaders and sendsX-Forwarded-Proto: https. Talon uses that header to decide whether to mark the cookiesSecureand to check the origin.
Configuration
Section titled “Configuration”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| Field | Default | Description |
|---|---|---|
enabled | false | Start the browser voice runtime |
host | 127.0.0.1 | Listener address |
port | 0 | Listener port. 0 selects an available port, so set a fixed port when you use a reverse proxy |
publicHost | none | Public HTTPS host. Adds https://<publicHost> to the allowed origins. It does not change the listener address |
accessTokenRef | voice | The auth.providers.<name>.apiKey slot that holds the login token |
liveApiKeyRef | openai | The auth.providers.<name> slot used by the live voice provider |
model | gpt-live-1 | Live voice model. This is separate from the persona’s backend model |
persona | first configured persona | Persona that does the delegated work |
voice | marin | Output voice of the live model |
instructions | You are Talon, a helpful voice assistant. | Instructions for the live provider |
usdPerMinute | none | Your 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 |
maxSessionLifetimeMs | 900000 | Maximum length of one live call (15 minutes) |
maxConcurrentSessions | 1 | Number of active browser sessions |
maxSessionCreations | 5 | Session creations allowed per window |
sessionCreationWindowMs | 60000 | Length of the session creation window |
maxContextChars | 32000 | Bound for the voice context passed to the live provider |
See the config reference for the full schema.
Notes on specific fields:
- Persona.
voice.personamust name an existing persona. Its configured provider, or the agent-runner default, must be enabled. - Deprecated fields.
voice.provider,voice.allowedToolNames, andvoice.allowedMcpServerNamesare 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.enabledistrue, the channel namebrowser-voiceis reserved for the internal voice channel. Startup rejects an ordinary channel with that name.
Reverse proxy
Section titled “Reverse proxy”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.
Log in and start a call
Section titled “Log in and start a call”- Start the daemon and the proxy.
- Open
https://voice.example.com/voice/. - Enter the access token.
- Optional: select
Keep me signed in for one year. The option is unchecked by default. - 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.
Login and call lifetime are separate
Section titled “Login and call lifetime are separate”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.
Reopening the page
Section titled “Reopening the page”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.
How voice delegates work to the persona
Section titled “How voice delegates work to the persona”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.
Limits
Section titled “Limits”- 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.
Cost and privacy
Section titled “Cost and privacy”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:
| Status | Meaning |
|---|---|
estimated | A rate is configured. Talon estimates the cost from the seconds the provider reported. This is not a confirmed bill |
incomplete | A rate is configured and usage is known, but the call did not close cleanly |
unavailable | No 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.
Known validation limits
Section titled “Known validation limits”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.