DiffSinger Refined Phonemizer Implementation #1840
Open
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.
DiffSinger Refined Phonemizer Implementation
Overview
This PR introduces the
DiffSingerRefinedPhonemizer- an abstract base class based onDiffSingerBasePhonemizerandDiffSingerG2pPhonemizer, that provides comprehensive infrastructure for DiffSinger-based phonemizers in OpenUtau. The implementation delivers advanced phoneme processing capabilities with sophisticated phoneme replacement systems based on replacements lists, word-level, timing-based and duration-dependent modificationsKey Features
Benefits
This implementation provides a solid foundation for sophisticated singing synthesis with DiffSinger, supporting complex linguistic phenomena while maintaining performance and extensibility.
Usage
Derive from
DiffSingerRefinedPhonemizerand override:EditPhonemesForWord()for word-level modificationsEditTimedPhonemes()for timing-based transformationsApplyDurationBasedReplacements()for duration-dependent changesFor
dsdict.yamlreplacements:It uses the same rules as
DiffSingerG2pPhonemizerwithfrombeing without the language tag andtowith the tag if the model has multi-dict supportThe phonemizer folows the replacements in logical order: single -> merge -> split -> many-to-many