feat(api-server): 接入 StepFun 流式 TTS - #2267
Draft
luoling8192 wants to merge 3 commits into
Draft
Conversation
luoling8192
force-pushed
the
codex/feat-stepfun-streaming-tts
branch
from
August 12, 2026 12:19
b2e370c to
9f7cf78
Compare
Contributor
⏳ Approval required for deploying to Cloudflare Workers (Preview) for stage-web.
Hey, maintainers, kindly take some time to review and approve this deployment when you are available. Thank you! 🙏 |
luoling8192
force-pushed
the
codex/feat-stepfun-streaming-tts
branch
from
August 12, 2026 14:49
74a9fc9 to
cbf3e8c
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
用户路径
官方提供商配置将 StepFun 原生 WebSocket 流式 TTS 设为
available后,客户端可以显式选择 StepFun 模型;设为default后才切换默认模型。AIRI 客户端继续使用既有/api/v1/audio/speech/ws协议。设计
disabled、available、default,只有default会接管默认流量变更
验证
pnpm exec vitest run server/apps/api/src/routes/audio-speech-ws/route.test.ts server/apps/api/src/services/adapters/config-kv.test.ts server/apps/api/src/services/domain/admin/router-config/tests/admin-router-config.test.ts server/apps/api/src/routes/openai/v1/route.test.ts server/apps/api/src/services/domain/product-events.test.ts,5 files / 144 tests passedpnpm -F @proj-airi/api-server typecheck,通过pnpm lint,0 errors,7 条既有无关 warningsgit diff --check,通过gpt-5.6-solhigh reasoning 独立复审两轮,最终 no findingspackages/stage-uiBroadcastChannel/context bridge 用例,6 failed / 631 passed;本次 server TTS 目标测试没有失败未验证
pnpm typecheck仍受 fresh worktree 中server-shared对@proj-airi/plugin-protocol/types构建产物依赖影响;CI Type Check 与本次 API workspace typecheck 均已通过disabled,尚未切换生产默认提供商