Repository navigation
feat(tts): add s3-pro and make it the default model - #199
Conversation
Add s3-pro to the Model Literal so type checkers accept it, show it in the README model examples, and pin the model header in a unit test. The default model is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Behaviour change: when no model is passed, convert, stream, stream_websocket, stream_with_timestamps and convert_with_timestamps (sync and async) now send "model: s3-pro" instead of "model: s2.1-pro". Callers who need the previous behaviour pass model="s2.1-pro". Tests pin the default on the HTTP, WebSocket and timestamp paths.
e153829 to
8b3bf08
Compare
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
s3-pro is now the default model; the warning still sent users to s2.1-pro. The s1 warning keeps s2.1-pro: that is the model s1 requests are served by after December 31, 2026.
# Conflicts: # src/fishaudio/resources/tts.py
The handshake-headers test from main wrote out the old default model; on this branch the default is s3-pro.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 Changes recommended
An active test-coverage issue remains because the new s3-pro model is missing from both sync and async deprecation-check parameter lists.
1 open issue
What changed in this PR
Adds s3-pro support and makes it the default TTS model across synchronous, asynchronous, timestamped, and WebSocket APIs.
Changes:
- Adds
s3-proto supported model types. - Updates TTS defaults, tests, and WebSocket expectations.
- Updates documentation and deprecation guidance.
| File | Description |
|---|---|
| tests/unit/test_websocket_headers.py | Updates WebSocket handshake expectations for the new default model. |
| tests/unit/test_tts.py | Updates standard TTS tests for s3-pro defaults. |
| tests/unit/test_tts_timestamps.py | Tests timestamped TTS APIs with the new default model. |
| tests/unit/test_tts_realtime.py | Updates realtime TTS tests for s3-pro defaults. |
| tests/unit/test_deprecated_models.py | Updates deprecation-related model expectations. |
| src/fishaudio/types/shared.py | Adds s3-pro to supported model types and updates warning text. |
| src/fishaudio/resources/tts.py | Changes synchronous and asynchronous TTS defaults to s3-pro. |
| README.md | Documents the new default model and legacy model selection. |
Review effort: Lite
|
|
||
| # Model types | ||
| Model = Literal["s1", "s2-pro", "s2.1-pro", "s2.1-pro-free", "drama-3"] | ||
| Model = Literal["s1", "s2-pro", "s2.1-pro", "s2.1-pro-free", "drama-3", "s3-pro"] |

Draft: not to be merged before S3 Pro is released and confirmed as served.
Adds
s3-proas a selectable TTS model and makes it the model used when none is set. Replaces #180, whose commits are included here, so that the launch is one pull request in this repository.Requests that do not set a model are sent as
s3-pro. In 1.7.x and earlier they were sent ass2.1-pro. This applies toconvert,stream,stream_websocket,stream_with_timestampsandconvert_with_timestamps, sync and async.s2.1-pros3-proTo keep the previous model:
client.tts.convert(text="Hello", model="s2.1-pro")To confirm before this merges: that
s3-prois served (the API answers 200 for any model name, so a 200 alone does not prove it); the official wording for the model in place of the neutral "S3 Pro"; the public price ofs3-pro, and that tag syntax and multi-speaker input behave as withs2.1-pro. The release notes carry an upgrade note with the two sentences above and the line that keeps the previous model.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.