-
Notifications
You must be signed in to change notification settings - Fork 606
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
Multi-speaker VITS & Hi-Fi TTS dataset structure #131
Merged
Merged
Conversation
This file contains 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
RMSnow
requested changes
Feb 5, 2024
lmxue
requested changes
Feb 12, 2024
RMSnow
requested changes
Feb 22, 2024
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 black to format the code.
RMSnow
requested changes
Feb 22, 2024
Fix typos and revise the explanation for `n_speaker`
lmxue
approved these changes
Feb 23, 2024
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.
It looks good now.
RMSnow
approved these changes
Feb 23, 2024
ArkhamImp
pushed a commit
to ArkhamImp/Amphion
that referenced
this pull request
Apr 17, 2024
Support Multi-speaker VITS & Hi-Fi TTS dataset preprocessing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
✨ Description
This PR introduces multi-speaker support for the current VITS model. It allows for the synthesis of speech in multiple voices and enables users to choose the specific speaker's voice that suits their preferences. To test this PR, you may follow the guidelines specified in the latest egs/tts/VITS/README.md.
🚧 Related Issues
None
👨💻 Changes Proposed
[1] Enabling multi-speaker VITS support:
intersperse
function in utils/data_utils.py, allowing the insertion of blanks (0) within consecutive phone IDs to regulate speaking speed.[2] Streamlined Hi-Fi TTS dataset preprocessing:
[3] Changes on VITS dataset loader:
frame_len < self.cfg.preprocess.segment_size // self.cfg.preprocess.hop_size
processed_data_dir
from classVITSTestDataset(TTSTestDataset)
in models/tts/vits/vits_dataset.py out of ifs condition as it has been referenced withinelif cfg.preprocess.use_phone:
(line 88, latest) without prior declaration.[4] Enhance model compatibility for different accelerate versions
model.safetensors
instead ofpytorch_model.bin
. To enable users to use the checkpoint successfully, models/tts/base/tts_inferece.py is modified to add another way of loading model when users' accelerate version is <0.25.[5] Black formatting
🧑🤝🧑 Who Can Review?
@lmxue @RMSnow
🛠 TODO
✅ Checklist