-
-
Notifications
You must be signed in to change notification settings - Fork 50
replicate #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
replicate #87
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9da9232
feat: add support for Replicate TTS provider and models
richardr1126 d0c0ab7
feat(replicate): add support for custom Replicate model selection
richardr1126 893f74f
refactor(tts): update Replicate model defaults and voice resolution
richardr1126 3db3fd1
refactor(tts): centralize upstream response helpers and improve setti…
richardr1126 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| --- | ||
| title: Replicate | ||
| --- | ||
|
|
||
| Use Replicate's hosted TTS models as your provider. | ||
|
|
||
| ## Setup | ||
|
|
||
| **Environment variables (recommended for deployment):** | ||
|
|
||
| ```env | ||
| API_KEY=r8_... | ||
| NEXT_PUBLIC_DEFAULT_TTS_PROVIDER=replicate | ||
| NEXT_PUBLIC_DEFAULT_TTS_MODEL=alphanumericuser/kokoro-82m:89b6fa84e4fa2dd6bd3a96be3e1f12827a3516c9fda8fddbac7a0be131c9a6f5 | ||
| ``` | ||
|
|
||
| **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](../tts-providers) for how the two layers interact. | ||
|
|
||
| ## Notes | ||
|
|
||
| - Built-in Replicate models: | ||
| - `alphanumericuser/kokoro-82m:89b6fa84e4fa2dd6bd3a96be3e1f12827a3516c9fda8fddbac7a0be131c9a6f5` | ||
| - `google/gemini-3.1-flash-tts` | ||
| - `minimax/speech-2.8-turbo` | ||
| - `qwen/qwen3-tts` | ||
| - `inworld/tts-1.5-mini` | ||
| - You can also choose `Other` and enter any Replicate model ID (for example `owner/model-name` or `owner/model-name:version`). | ||
| - 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 | ||
|
|
||
| - [Replicate](https://replicate.com/explore) | ||
| - [TTS Providers](../tts-providers) | ||
| - [TTS Environment Variables](../../reference/environment-variables#tts-provider-and-request-behavior) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.