Skip to content
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

I would like to ask, how can I add a new language like Vietnamese. Thank you #324

Open
KalvinThien opened this issue Oct 22, 2024 · 4 comments
Labels
question Further information is requested

Comments

@KalvinThien
Copy link

I would like to ask, how can I add a new language like Vietnamese. Thank you

Copy link

dosubot bot commented Oct 22, 2024

Hey @KalvinThien! I'm here to help you out with any bugs, questions, or contributions you have. Let's tackle this together!

To add a new language like Vietnamese to OpenVoice, you need to make changes in the openvoice/api.py file. Specifically, you should add an entry for Vietnamese in the language_marks dictionary within the BaseSpeakerTTS class:

class BaseSpeakerTTS(OpenVoiceBaseClass):
    language_marks = {
        "english": "EN",
        "chinese": "ZH",
        "vietnamese": "VI",  # Add this line
    }

This change assigns a language mark "VI" for Vietnamese, which can then be used in the tts method to process Vietnamese text [1].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the question Further information is requested label Oct 22, 2024
@KalvinThien
Copy link
Author

KalvinThien commented Oct 22, 2024 via email

Copy link

dosubot bot commented Oct 22, 2024

Yes, the OpenVoice tool has a character limit of 200 characters when using the clone voice feature. If the text exceeds this limit, an error message is displayed: "[ERROR] Text length limited to 200 characters for this demo, please try shorter text. You can clone our open-source repo and try for your usage" [1].

To continue talking to Dosu, mention @dosu.

@KalvinThien
Copy link
Author

KalvinThien commented Oct 22, 2024

Can you give me an example of using clone voice with Vietnamese text?
I want to test v3

I tried and found that the accent was not quite right, I don't know where I went wrong @dosu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant