Skip to content

Hide DiffSinger Language Code in Phoneme Canvas#1521

Merged
stakira merged 7 commits into
openutau:masterfrom
mrtigermeat:DSLangCodeHide
May 23, 2025
Merged

Hide DiffSinger Language Code in Phoneme Canvas#1521
stakira merged 7 commits into
openutau:masterfrom
mrtigermeat:DSLangCodeHide

Conversation

@mrtigermeat

@mrtigermeat mrtigermeat commented May 4, 2025

Copy link
Copy Markdown

This pull request will add the functionality to optionally obfuscate the DiffSinger language prefix in the phoneme editor. I have personally found this to be an annoyance while using Multi-Dictionary DiffSinger models. DiffSinger recently adopted Multi-Dictionary as the standard for voice library creation, and as such this issue will be present in all DiffSinger models.

This pull request does the following:

  • Changes the GetLangCode() function in all applicable DiffSinger phonemizers (G2p & Base) to be a public method instead of private, so it can be accessed in PhonemeCanvas.cs . This may cause incompatibilities with existing plugin phonemizers, but will not cause any issues with the built-in experience.
  • Adds a new toggle switch under the DiffSinger section of the preference window to turn this feature on or off. It is turned off by default.
  • Removes the language prefix from the text of the phoneme in the for loop in PhonemeCanvas.cs, but only for the language prefix of the selected phonemizer (hence why I had to change GetLangCode() to be a public method.)

Example:
ezgif-4c3070dbc39436

oxygen-dioxide and others added 2 commits May 5, 2025 09:43
Hide DiffSinger Language Code in Phoneme Canvas
@oxygen-dioxide

Copy link
Copy Markdown
Collaborator

There is a bug: when two phoneme aliases are too close, when hovering or double clicking on the second phoneme, it's the first phoneme that reacts
I fixed it in mrtigermeat#1

Comment thread OpenUtau/Controls/PhonemeCanvas.cs Outdated
oxygen-dioxide and others added 4 commits May 5, 2025 15:46
fix bug: when two phoneme aliases are too close, when hovering or double clicking on the second phoneme, it's the first phoneme that reacts
@stakira stakira merged commit 0e627f6 into openutau:master May 23, 2025
3 checks passed
lottev1991 pushed a commit to lottev1991/OpenUtau that referenced this pull request May 23, 2025
* Hide DiffSinger Language Code in Phoneme Canvas

* move shared codes for phoneme UI rendering into PhonemeUIRender.cs, fixing mousehover mismatch with canvas

* Update PhonemeUIRender.cs

* Update PhonemeCanvas.cs

---------

Co-authored-by: oxygen-dioxide <54425948+oxygen-dioxide@users.noreply.github.com>
Co-authored-by: unknown <1463567152@qq.com>
maiko3tattun pushed a commit to maiko3tattun/OpenUtau that referenced this pull request May 24, 2025
* Hide DiffSinger Language Code in Phoneme Canvas

* move shared codes for phoneme UI rendering into PhonemeUIRender.cs, fixing mousehover mismatch with canvas

* Update PhonemeUIRender.cs

* Update PhonemeCanvas.cs

---------

Co-authored-by: oxygen-dioxide <54425948+oxygen-dioxide@users.noreply.github.com>
Co-authored-by: unknown <1463567152@qq.com>
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.

4 participants