generated from mozilla-ai/Blueprint-template
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Multilingual support #72
Open
Kostis-S-Z
wants to merge
24
commits into
mozilla-ai:main
Choose a base branch
from
Kostis-S-Z:multilingual-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+499
−143
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
daavoo
reviewed
Dec 18, 2024
daavoo
reviewed
Dec 18, 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.
Not sure if we want to add multiple configs here, I guess is a discussion to have with the developer hub. All these seem like potential "Use Case" / "Customization" examples
Co-authored-by: David de la Iglesia Castro <[email protected]>
3 tasks
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.
What's changing
The overall goal of this PR is to add support for more languages.
In the process, the following changes / additions were made:
TTSModel
TTS_LOADERS
TTS_INFERENCE
config.yaml
'stext_to_speech_model
withvalidate_text_to_speech_model
test_load_tts_model
to use parametrizationCloses #29
How to test it
Steps to test the changes:
git clone https://github.com/Kostis-S-Z/document-to-podcast.git
cd document-to-podcast
git checkout multilingual-support
pip install -e .
Model IDs / Languages tested:
)example_data/config.yaml
(or create a copy) and changeinput_file
: Use a file that has text in a language of your choicetext_to_speech_model
: Use one of the model ids, defined below, based on the language you are testingtext_to_text_prompt
: Re-write it / Translate it in the testing languagespeaker/description
: Re-write it / Translate it in the testing languagevoice_profile
: Use one of the pre-defined profiles based on the testing language, from the list belowdocument-to-podcast --from_config example_data/config.yaml
podcast.txt
andpodcast.wav
Model IDs / Languages tested:
parler-tts/parler-tts-mini-multilingual-v1.1
Sophia
&Nicholas
)Mark
&Jessica
)Daniel
&Christine
)Nicole
&Michelle
)Julia
&Richard
)Alex
&Natalie
)Steven
&Olivia
)ai4bharat/indic-parler-tts
Rohit
&Divya
)Prakash
&Lalitha
)suno/bark
v2/es_speaker_0
&v2/es_speaker_8
)OuteTTS-0.2-500M
female_1
&male_1
)Additional notes for reviewers
Its expected that some languages will work better than others. Its also a common issue that the voice pattern might not be consistent across the speaker rounds (maybe Speaker 1 at first sound in one way, and then their voice might change)
I already...
/docs
)