You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Activity