openreader/docs-site/docs/configure/tts-provider-guides/replicate.md
Richard R 9da9232d39 feat: add support for Replicate TTS provider and models
- Updated environment variables documentation to include Replicate as a TTS provider option.
- Added Replicate to the sidebar for TTS provider guides.
- Included Replicate as a dependency in package.json and pnpm-lock.yaml.
- Enhanced audiobook chapter generation to normalize native speed settings based on the TTS provider.
- Improved error handling in TTS API routes to provide retry information for rate-limited responses.
- Updated AudiobookExportModal to reflect native speed support for Replicate models.
- Modified SettingsModal to set default model for Replicate.
- Enhanced SpeedControl component to conditionally render native speed controls based on provider support.
- Updated TTSContext to utilize effective native speed for TTS requests.
- Implemented Replicate request handling in the TTS generation logic.
- Added new documentation for configuring Replicate as a TTS provider.
2026-04-16 11:20:38 -06:00

1.1 KiB

title
Replicate

Use Replicate's hosted TTS models as your provider.

Setup

Environment variables (recommended for deployment):

API_KEY=r8_...
NEXT_PUBLIC_DEFAULT_TTS_PROVIDER=replicate
NEXT_PUBLIC_DEFAULT_TTS_MODEL=google/gemini-3.1-flash-tts

Or in-app via Settings -> TTS Provider:

  1. Set provider to Replicate.
  2. Enter your API_KEY.
  3. Choose a model and voice.

Settings modal values override env vars. See TTS Providers for how the two layers interact.

Notes

  • Built-in Replicate models:
    • google/gemini-3.1-flash-tts
    • minimax/speech-2.8-turbo
    • qwen/qwen3-tts
    • inworld/tts-1.5-mini
  • Native model speed is not available on all Replicate models; OpenReader hides/disables native speed controls where unsupported.
  • TTS requests are sent from the server, not the browser. The API key is never exposed to clients.

References