- 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.
1.1 KiB
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:
- Set provider to
Replicate. - Enter your
API_KEY. - 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-ttsminimax/speech-2.8-turboqwen/qwen3-ttsinworld/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.