Skip to content

(model/cosyvoice): support flush api#213

Merged
xiong-binbin merged 1 commit into
dashscope:mainfrom
songguocola:audio_0511
May 12, 2026
Merged

(model/cosyvoice): support flush api#213
xiong-binbin merged 1 commit into
dashscope:mainfrom
songguocola:audio_0511

Conversation

@songguocola
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a TextStreamItem class to encapsulate text and flush commands within the SpeechSynthesizer, enabling new streamingFlush functionality. The internal emitters and data processing logic have been updated to support these items instead of raw strings. Feedback includes a recommendation to use a more appropriate exception type for state validation in the streamingFlush method and suggestions to improve the encapsulation and code quality of the TextStreamItem class by making fields final and removing unused constructors.

@xiong-binbin xiong-binbin merged commit 9d0ee4b into dashscope:main May 12, 2026
3 checks passed
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.

2 participants