-
Notifications
You must be signed in to change notification settings - Fork 17
feat(model/qwen3-tts-realtime):support instruct param, update audio w… #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -445,7 +445,7 @@ def get_websocket_header(self, api_key): | |||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||
| self.ws_headers = { | ||||||||||||||||||||||||||||||||
| "User-Agent": ua, | ||||||||||||||||||||||||||||||||
| "Authorization": f"bearer {api_key}", | ||||||||||||||||||||||||||||||||
| "Authorization": f"Bearer {api_key}", | ||||||||||||||||||||||||||||||||
| "Accept": "application/json", | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| logger.info("websocket header: %s", self.ws_headers) | ||||||||||||||||||||||||||||||||
|
Comment on lines
446
to
451
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -345,7 +345,7 @@ def get_websocket_header(self, api_key): | |||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||
| self.ws_headers = { | ||||||||||||||||||||||||||||||||
| "User-Agent": ua, | ||||||||||||||||||||||||||||||||
| "Authorization": f"bearer {api_key}", | ||||||||||||||||||||||||||||||||
| "Authorization": f"Bearer {api_key}", | ||||||||||||||||||||||||||||||||
| "Accept": "application/json", | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| logger.info("websocket header: %s", self.ws_headers) | ||||||||||||||||||||||||||||||||
|
Comment on lines
346
to
351
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstrings for the new parameters
instructionsandoptimize_instructionsare a bit brief. To improve clarity for future users and maintainers, could you please expand on what these parameters do? For example:instructions: What kind of instructions are expected? Do they control tone, emotion, or style? An example would be very helpful.optimize_instructions: What does enabling this option do? Does it modify the instructions for better performance or quality? A brief explanation of the optimization process would be valuable.