Open KalvinThien opened 1 month ago
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.
thank you for your help, you let me inquire further. Does the tool have a character limit when using clone voice? Thank you ...
Vào Th 3, 22 thg 10, 2024 vào lúc 19:44 dosubot[bot] < @.***> đã viết:
Hey @KalvinThien https://github.com/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] https://github.com/myshell-ai/OpenVoice/blob/main/openvoice/api.py.
To continue talking to Dosu https://dosu.dev, mention @dosu https://github.com/dosu.
— Reply to this email directly, view it on GitHub https://github.com/myshell-ai/OpenVoice/issues/324#issuecomment-2429184393, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4X27SORCU2DTASGE5YGIVTZ4ZCDHAVCNFSM6AAAAABQMNE4QCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRZGE4DIMZZGM . You are receiving this because you were mentioned.Message ID: @.***>
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.
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.
I would like to ask, how can I add a new language like Vietnamese. Thank you