Skip to content

Conversation

@twangodev
Copy link
Collaborator

No description provided.

Signed-off-by: James Ding <jamesding365@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 87.30159% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/fishaudio/resources/tts.py 85.36% 6 Missing ⚠️
src/fishaudio/resources/account.py 71.42% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Files with missing lines Coverage Δ
src/fishaudio/types/shared.py 100.00% <100.00%> (ø)
src/fishaudio/types/tts.py 100.00% <100.00%> (ø)
src/fishaudio/resources/account.py 92.59% <71.42%> (-7.41%) ⬇️
src/fishaudio/resources/tts.py 94.17% <85.36%> (+2.11%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: James Ding <jamesding365@gmail.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds reference_id and references parameters directly to TTS conversion methods (convert and stream_websocket in both sync and async clients), providing a more convenient API for common use cases while maintaining backward compatibility with the existing TTSConfig-based approach.

Key Changes:

  • Added reference_id and references as direct parameters to all four TTS methods (sync/async convert and stream_websocket)
  • Parameters are overridden by config values when both are specified, ensuring config takes precedence
  • Comprehensive test coverage for the new parameters and precedence behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/fishaudio/resources/tts.py Added reference_id and references parameters to all TTS methods with logic to prioritize config values over parameters; updated documentation examples
tests/unit/test_tts.py Added comprehensive tests for new parameters in both sync and async clients, including precedence tests to verify config overrides parameter values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…ces parameters

Signed-off-by: James Ding <jamesding365@gmail.com>
Signed-off-by: James Ding <jamesding365@gmail.com>
@twangodev twangodev changed the title feat: add reference_id parameter to TTS conversion methods feat: introduce parameters to improve DX Nov 12, 2025
…atency, speed)

Signed-off-by: James Ding <jamesding365@gmail.com>
Signed-off-by: James Ding <jamesding365@gmail.com>
Signed-off-by: James Ding <jamesding365@gmail.com>
…n TTS models

Signed-off-by: James Ding <jamesding365@gmail.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

twangodev and others added 2 commits November 12, 2025 02:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@twangodev twangodev merged commit 1eeb4d3 into main Nov 12, 2025
18 checks passed
@twangodev twangodev deleted the feat/reference_id branch November 12, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants