Skip to content

feat(tts): Ollama text-to-speech provider (phonon) #321

Open

Description

@lfnovo

Context

Ollama now serves text-to-speech models (docs, announcement). The first one is phonon (ollama pull phonon, Ollama v0.40.9 or later). It's exposed through an OpenAI-compatible endpoint:

  • POST /v1/audio/speech with model, input (up to 4,096 characters), voice (e.g. Zoey, Easton, Freya; default if omitted) and optional response_format (wav, the default, or pcm; 24 kHz 16-bit mono).
  • Other formats, speeds, instructions and unknown voices return 400.
  • /api/show lists the model's capabilities (speech) and its voices.

Esperanto registers Ollama for language and embedding only, so the zero-config local path users expect from Ollama doesn't reach speech. Downstream, Open Notebook's docs tell Ollama users to run a separate Speaches server for podcasts (lfnovo/open-notebook discussion #1535 raised the question).

Proposal

An ollama text-to-speech provider in providers/tts/, reusing the existing OpenAI-compatible TTS implementation against OLLAMA_API_BASE + /v1 (no API key), with:

  • voice listing from /api/show where available;
  • response_format restricted to wav/pcm, and a clear error for the unsupported options instead of a bare 400.

Questions

  1. Dedicated ollama TTS provider, or document openai-compatible pointed at Ollama's /v1 as the supported path? The dedicated one keeps provider naming consistent with Ollama's language/embedding support.
  2. Speech-to-text stays out of scope: Add Ollama speech-to-text provider (Gemma 4 audio models) #267 (audio through /api/chat) was closed as not planned, and Ollama documents no /v1/audio/transcriptions.

Generated by Claude Code

Activity

  1. added
    enhancement
    needs-triage
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions