Repository navigation
Feat/qwen minimax tts voice clone #5198
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
Closed
youyao666
wants to merge
18
commits into
QuantumNous:main
from
youyao666:feat/qwen-minimax-tts-voice-clone
Closed
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4a6ad80
feat: add qwen and minimax tts voice clone billing
youyao666 e7fdb14
fix: support dashscope minimax tts relay billing
youyao666 74fd3a0
feat: Add Qwen and MiniMax TTS voice clone support with dual billing
youyao666 0ae4096
fix: register VoiceCloneUnlockRatio in backend option map
youyao666 a7c882f
fix: add missing VoiceCloneUnlockRatio props in frontend components
youyao666 1c44095
fix: correct voice clone billing and add missing frontend pricing sup…
youyao666 e435519
test: add voice clone edge case tests for qwen list, unmarshal error,…
youyao666 69a8a8f
feat: add configurable ali video resolution billing ratios
youyao666 a320675
fix: apply configurable ali video resolution billing in task relay
youyao666 a7b860a
feat(web): support ali video resolution billing settings
youyao666 fe38579
feat(classic): support ali video resolution billing settings
youyao666 d194498
test: cover ali video resolution billing
youyao666 7e65900
ci: add docker build workflow for feature branches
youyao666 42467ba
ci: push docker image to ghcr.io on branch push
youyao666 50b4911
ci: add latest tag for main branch docker image
youyao666 cc477ba
i18n: add VideoResolutionRatio translations for classic and default f…
youyao666 e8be584
fix: add VoiceCloneUnlockRatio to model pricing display
youyao666 95b8ec7
fix: remove double dollar sign in voice clone unlock price display
youyao666 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
Use
common.Unmarshalinstead ofjson.Unmarshal.Line 61 directly calls
json.Unmarshal, which violates the repository coding guideline requiring all JSON marshal/unmarshal operations to use wrapper functions fromcommon/json.go.🔧 Proposed fix
func (r *AudioVoiceCloneRequest) GetTokenCountMeta() *types.TokenCountMeta { text := r.Text if text == "" && len(r.Input) > 0 { var input struct { Text string `json:"text"` } - if json.Unmarshal(r.Input, &input) == nil { + if common.Unmarshal(r.Input, &input) == nil { text = input.Text } }As per coding guidelines: "All JSON marshal/unmarshal operations MUST use wrapper functions from
common/json.go:common.Marshal(),common.Unmarshal(),common.UnmarshalJsonStr(),common.DecodeJson(), orcommon.GetJsonType(). Do NOT directly import or callencoding/jsonin business code."📝 Committable suggestion
🤖 Prompt for AI Agents