HappierDocs
Voice

Local voice providers

Configure Local voice in Happier with device, self-hosted, Google, and local-neural STT/TTS providers.

Local voice is Happier’s configurable speech pipeline.

It lets you mix and match:

  • speech-to-text (STT)
  • text-to-speech (TTS)
  • direct-to-session or voice-agent conversation flow

Open Settings → Voice → Local voice to configure it.

Before you start

Local voice is an experimental feature. Turn it on in Settings → Features:

  • Voice — required for every Local voice mode
  • Subagents and Voice agent — also required for Agent mode with the daemon voice agent

See Feature flags for how these toggles combine with what your server and build allow. If a prerequisite is off, the voice surface tells you which toggle to turn on.

What Local voice supports

STT providers

You can choose one of these speech-to-text providers:

  • Device STT: platform speech recognition on the device
  • OpenAI-compatible STT: your own /v1/audio/transcriptions endpoint
  • Google Gemini (audio): Google Gemini audio transcription
  • Local neural STT: on-device Sherpa streaming STT on native builds

TTS providers

You can choose one of these text-to-speech providers:

  • Device TTS: platform text-to-speech on the device
  • OpenAI-compatible TTS: your own /v1/audio/speech endpoint
  • Google Cloud Text-to-Speech
  • Local neural TTS: Kokoro on web and native

New setups default to Device STT and Device TTS, so Local voice works without any setup (in browsers without speech recognition, such as Firefox, pick another STT provider; see Device STT). Existing setups keep the providers they already have, including OpenAI-compatible providers saved before this default changed.

You can mix providers freely. For example:

  • device STT + device TTS
  • device STT + Kokoro TTS
  • OpenAI-compatible STT + Google Cloud TTS
  • Gemini STT + Kokoro TTS

What gets spoken

Replies are converted to plain speech before any TTS provider reads them. Markdown formatting is dropped, link text is read without the link target, bare URLs are read as their domain, and fenced code blocks are skipped.

If the selected TTS provider fails, Happier reports a speech error in Local voice instead of silently reading the reply with a different voice. Stopping playback or interrupting it with your voice is not treated as an error.

Read a transcript message (development)

Development builds containing per-message read-aloud let you read a message from its speaker action beside Copy. Enable Voice and select Local voice with a configured TTS provider first. A live voice conversation is not required.

Press the speaker action to read the message. Press its Stop action to stop, or press another message's speaker action to switch. Playback continues when you leave the transcript; the global voice control keeps Stop available on the current screen, including while speech is preparing. The same Markdown cleanup described above applies.

Reading cancels and discards an active Local voice recording before speech starts. Starting the microphone stops read-aloud. Turning Voice off or removing the required voice setup also stops read-aloud.

With OpenAI-compatible or Google Cloud TTS, reading sends that message's text to the configured speech service. Device TTS and local neural TTS use their selected platform execution paths.

Conversation modes

Local voice supports two conversation modes.

Direct to session

In Direct to session, your speech is transcribed and sent directly into the active session.

Use this when you want:

  • dictation-like behavior
  • simple speech input into a session
  • fewer moving parts

TTS can still stay enabled here, so Happier can read replies back to you. With Auto-speak replies on, Happier waits until the session finishes its turn and then speaks the turn's final reply. It does not read out thinking or interim progress messages. Waiting has no fixed time limit: it ends when the turn ends, or when you cancel the reply or hang up.

Agent

In Agent mode, your speech first goes through a dedicated voice agent.

Use this when you want the voice layer to:

  • ask follow-up questions
  • summarize before acting
  • use structured actions
  • avoid writing every utterance into the target session

This mode is useful when you want voice to feel like a colleague instead of a dictation layer.

Voice agent backend

In local voice agent mode, voice agent backend controls which runtime actually runs the agent:

  • Daemon voice agent: uses Happier’s daemon-backed voice agent runtime
  • OpenAI-compatible voice agent: calls your configured chat-completions endpoint directly

Use the daemon backend when you want the tightest Happier integration, including the working-directory and teleport behavior described below.

Machine targeting

For daemon-backed local voice agent mode, you can choose where the voice agent should run:

  • Auto: pick a stable machine automatically
  • Fixed machine: always use the machine you selected

What “Auto” means

Auto does not mean “follow whichever machine became active most recently.”

The goal is stability:

  • Happier resolves a machine automatically when it starts the voice agent
  • the running voice agent stays anchored there instead of roaming every time your active session changes

This avoids unnecessary stop/restart churn while you move around the app.

If you want predictable placement, choose a fixed machine instead.

Voice home vs session project root

Daemon-backed local voice agent mode uses two kinds of working directories:

Voice home

A stable non-project directory used for global/sidebar-started voice sessions.

Use this when you want the voice agent to have a neutral workspace instead of starting inside a project automatically.

Session project root

When you start voice directly from a session, Happier can start the voice agent in that session’s project root.

Use this when you want the voice agent to behave more like a coding colleague inside the current project.

Stay in voice home

If you enable Stay in voice home, the voice agent always stays in voice home.

That means:

  • session-started voice does not start in the session project root
  • teleporting into a session root is blocked

Use this when you want a safer, more neutral default working directory.

Teleport to current session

For daemon-backed local voice agent sessions, the session voice surface can show a teleport action.

Teleport lets you move the running voice agent to the current session’s project root.

Important rules:

  • teleport is only available for the daemon backend
  • it is hidden/blocked when Allow teleport is off
  • it is hidden/blocked when Stay in voice home is on
  • it fails closed when the runtime is not eligible

This is useful when you started globally from voice home and later want the agent to inspect the current project more deeply.

Warm roots

The local voice agent can either keep a single working-root runtime or keep multiple roots warm:

  • Single: keep one root active
  • Keep warm: retain several recent roots for faster return/resume

When using Keep warm, you can choose the maximum number of warm roots to retain.

Use Single for the simplest behavior. Use Keep warm when you regularly bounce between a small number of projects and want faster reuse.

Persistence and resumability

Voice agent mode separates two related choices:

Transcript persistence

  • Ephemeral: voice agent transcript state is temporary
  • Persistent: keep voice agent conversation state across app reloads / restarts

Resumability mode

When persistence is enabled, you can choose how the agent resumes:

  • Replay: rebuild context from saved transcript/replay inputs
  • Provider resume: use provider-native resume when supported

Provider resume is capability-driven. When it is not available for the current backend/agent combination, Happier disables it instead of pretending it will work.

You can also enable fallback to replay so provider-resume setups still recover when native resume is unavailable in practice.

Agent source and model source

Local voice agent mode also separates:

Agent source

  • Follow session: use the session’s agent/backend context
  • Fixed agent: choose a specific voice agent backend/provider

Model source

For chat and commit behavior, model selection can come from:

  • the session
  • the chat model
  • a custom model selection

When a backend exposes a dynamic model list, Happier uses that live list in the dropdown instead of forcing manual text entry.

Shared Local voice settings

Preferred STT and TTS providers

Use the STT provider and TTS provider dropdowns to choose the speech backends for the current Local voice configuration.

Test TTS

Use Test TTS to verify the currently selected TTS provider end-to-end.

This is the main output test for:

  • device TTS
  • OpenAI-compatible TTS
  • Google Cloud TTS
  • Kokoro local neural TTS

Auto-speak replies

If enabled, Happier speaks replies automatically after a turn completes. In Direct to session mode, that is the final reply of the session's turn.

Barge-in

If enabled (the default), starting a new turn can interrupt current speech playback so you do not need to wait for the previous spoken reply to finish.

Network timeout

Use Network timeout to control how long Happier waits for STT or TTS network operations before failing.

This matters most when you use:

  • self-hosted OpenAI-compatible endpoints
  • Google Gemini STT
  • Google Cloud TTS

Device STT and Device TTS

Use device providers when you want the simplest local setup with no extra servers.

Device STT

Device STT uses built-in platform speech recognition where available.

In the web app, Device STT uses the browser's speech recognition. Some browsers, such as Firefox, don't provide it; there, Local voice shows that device speech recognition is unavailable, so choose OpenAI-compatible or Gemini STT instead.

Hands-free and push-to-talk

Hands-free is available with Device STT and Local neural STT. These providers listen live and detect when you stop speaking, so Happier sends the turn and starts listening again without a tap. The hands-free settings are:

  • silence timeout: how long to wait after the recognizer detects the end of speech before sending the turn
  • minimum speech duration: the shortest turn Happier will send automatically

Tapping the mic while hands-free is listening sends the current turn and ends hands-free listening.

OpenAI-compatible STT and Google Gemini STT transcribe a finished recording, so they are push-to-talk: tap the mic to start, and tap again to send. The settings screen shows a push-to-talk note instead of the hands-free controls for these providers.

Device TTS

Device TTS uses the operating system’s speech synthesizer.

It is the easiest option, but audio quality and available voices depend on the platform.

OpenAI-compatible STT and TTS

Use these providers when you already run your own OpenAI-style speech endpoints.

STT

OpenAI-compatible STT expects:

  • POST /v1/audio/transcriptions

You can configure:

  • base URL
  • API key
  • model

TTS

OpenAI-compatible TTS expects:

  • POST /v1/audio/speech

You can configure:

  • base URL
  • API key
  • model
  • voice
  • output format (mp3 or wav)

This path works well with self-hosted speech servers that intentionally match OpenAI’s API shape.

Google providers

Google Gemini STT

Google Gemini STT is available as an STT provider for Local voice.

You can configure:

  • API key
  • model
  • optional language hint

Use this when you want Google transcription quality without changing the rest of your Local voice pipeline.

Gemini STT is push-to-talk. With Gemini 2.5 Flash models, Happier turns thinking off for transcription to keep latency low; other models use their default thinking settings.

If your API key is restricted to the Happier iOS or Android app, Happier sends the app identity headers with Gemini requests. Android restrictions also need the app signing certificate SHA-1, which Happier reads from the Android cert SHA-1 field in the Google Cloud TTS settings.

If transcription fails, Local voice shows the reason, such as an invalid or restricted API key, a rate limit, or a timeout.

Google Cloud TTS

Google Cloud Text-to-Speech is available as a TTS provider.

You can configure:

  • API key
  • optional Android certificate SHA-1
  • language
  • voice
  • output format
  • speaking rate
  • pitch

The Google Cloud voice picker is searchable and lets you choose from the voices supported by your current API key and selected language.

Long replies are split into several requests so each one stays within Google Cloud's per-request input limit.

Local neural TTS: Kokoro

Happier’s Local neural TTS currently uses Kokoro.

On web and desktop web

On web, Kokoro runs through the web runtime and downloads its required assets on demand.

You can configure:

  • Kokoro model pack
  • Download / prepare model
  • Clear browser cache
  • Voice
  • Speed

After the first successful download, the browser keeps the model files cached so they do not need to be fetched again for every turn.

On native

On native builds, Kokoro uses downloadable native model packs.

You can configure:

  • Kokoro model pack
  • Download model
  • Remove downloaded assets
  • Check for updates
  • Voice
  • Speed

Model downloads happen on demand and can be removed later to free storage.

Native builds currently offer the q8 Kokoro pack. The fp32 option is web-only; if it is selected on web, native devices use the q8 pack instead.

On native, Kokoro synthesizes one sentence at a time, so playback starts after the first sentence instead of after the whole reply.

Voices on web and native

Web and native use different Kokoro voice catalogs, but the selected voice syncs across your devices. Each device checks the selected voice against its own catalog:

  • on web, a voice that is not in the web catalog (or no selection) uses af_heart
  • on native, a voice that is not in the installed model pack (or no selection) uses the pack's default voice

The voice picker shows the voice that device will actually use.

Voice previews

The Kokoro voice dropdown includes inline preview playback so you can audition a voice before selecting it.

Local neural STT: Sherpa streaming STT

On native builds, Local neural STT uses downloadable Sherpa streaming STT packs.

You can configure:

  • Model pack
  • Download model
  • Remove downloaded assets
  • Check for updates

The language comes from the model pack. The built-in streaming pack recognizes English.

Local neural STT supports hands-free. It is available in the iOS and Android apps only. Because voice settings sync across your devices, choosing Local neural STT on your phone also applies to the web app. In the browser, Happier uses the browser's speech recognition (Device STT) instead, and shows a notice if the browser doesn't support speech recognition.

This gives Local voice a fully on-device STT option without requiring an external server.

Model downloads, updates, and storage

Both Kokoro native TTS packs and Sherpa native STT packs are downloaded on demand from Happier’s model-pack manifests.

From settings, users can:

  • download missing packs
  • see download progress
  • stop an in-progress download; stopping discards the files it had downloaded (stopping an update keeps the installed pack)
  • leave the settings screen while a download runs; it keeps going, and coming back shows its progress again
  • retry a failed download; files that were already downloaded and verified are kept, so it continues where it stopped
  • check whether a newer model-pack build is available; an update downloads only the files that changed, and if the update download fails the installed pack keeps working
  • remove downloaded assets to free storage

Before a native download starts, Happier checks that the files still to download fit in the device's free space. If they do not, nothing is downloaded and settings shows how much space the pack needs.

On web, Kokoro runtime files are stored in browser caches. On native, model packs are stored on the device.

Simplest fully local setup

  • STT: Device STT
  • TTS: Device TTS
  • Conversation mode: Direct to session

Better spoken output with minimal complexity

  • STT: Device STT
  • TTS: Local neural TTS (Kokoro)
  • Conversation mode: Agent

Fully self-hosted speech stack

  • STT: OpenAI-compatible STT
  • TTS: OpenAI-compatible TTS
  • Conversation mode: Agent

Hybrid cloud/local setup

  • STT: Google Gemini STT
  • TTS: Kokoro or Google Cloud TTS
  • Conversation mode: Agent

Networking notes

Mobile and localhost

On phones, localhost and 127.0.0.1 usually point to the phone itself, not your computer.

If your speech server runs on your computer, use:

  • your computer’s LAN IP, or
  • a tunnel

Web and CORS

For web builds, your STT or TTS server may need CORS configured correctly.

Exposing services outside your LAN

If you expose a speech server beyond your local network, add proper authentication and HTTPS.

Troubleshooting

When a Local voice step fails (microphone, speech-to-text, sending, speech playback, or a missing feature toggle), the voice surface shows what went wrong and what to change. The message clears when you start the next turn.

Local voice hears me, but nothing is spoken back

Check:

  • that a TTS provider is selected
  • that Auto-speak replies is enabled if you expect automatic playback
  • that Test TTS works

Kokoro is unavailable

Local voice does not switch to the device voice when Kokoro fails; it shows a speech error instead.

Check:

  • that the runtime is supported on your platform
  • that the model was downloaded successfully
  • that the selected Kokoro pack is ready

Sherpa STT is unavailable

Check:

  • that you are on the iOS or Android app
  • that the Sherpa model pack has been downloaded (Settings → Voice → Model files)
  • that the model pack's language matches the language you speak

Nothing is written into the target session

If you are in Agent mode, this can be expected. The voice agent does not need to write every utterance into the target session. It can keep part of the conversation in the hidden voice conversation and only send explicit actions back when needed.

On this page