Skip to content

Fix: sample_rate in siliconflow tts model call - #17043

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
Lynn-Inf:fix/siliconflow-bugs
Jul 17, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
Lynn-Inf:fix/siliconflow-bugs

Conversation

@Lynn-Inf

Copy link
Copy Markdown
Contributor

Summary

Set a valid value as sample_rate.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jul 17, 2026
@Lynn-Inf
Lynn-Inf requested a review from wangq8 July 17, 2026 08:25
@coderabbitai

coderabbitai Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6375ec4b-2968-41b0-840f-fc4e93419494

📥 Commits

Reviewing files that changed from the base of the PR and between ddd7fc0 and a2ec11a.

📒 Files selected for processing (1)
  • rag/llm/tts_model.py

📝 Walkthrough

Walkthrough

The SiliconFlow TTS payload’s fixed sample rate changes from 123 to 32000; all other payload fields and the TTS flow remain unchanged.

Changes

SiliconFlow TTS payload

Layer / File(s) Summary
Update TTS sample rate
rag/llm/tts_model.py
SILICONFLOWTTS._build_payload now sends a fixed sample_rate of 32000 while preserving the surrounding payload structure.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: haruko386

Poem

A rabbit heard the old rate chirp,
“One-two-three” made audio burp.
Now thirty-two thousand hops in time,
The TTS payload sounds sublime.
🐇🎵

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: fixing the SiliconFlow TTS sample_rate value.
Description check ✅ Passed The description matches the template's Summary section and states the PR's purpose clearly.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Lynn-Inf Lynn-Inf added the ci Continue Integration label Jul 17, 2026

@wangq8 wangq8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review: PR #17043

Overview: Trivial one-line fix — changes the SiliconFlow TTS sample_rate from 123 (clearly a placeholder/test value) to 32000 (a valid audio sample rate).

Analysis

Category Verdict
Correctness ✅ 32000 is a valid sample rate supported by SiliconFlow TTS API
Regression risk ✅ None — single constant change in an isolated payload builder
Style ✅ LGTM
Tests 🟡 Would benefit from a unit test asserting the payload shape, but this is a trivial constant fix

Verdict: Approve 🚀

Simple bug fix, no concerns. The previous 123 was never a valid sample rate for audio output — good catch.

@wangq8
wangq8 merged commit b6ee6c3 into infiniflow:main Jul 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants