Skip to content

Adding Turkish language support#223

Open
g-hano wants to merge 9 commits into
myshell-ai:mainfrom
g-hano:main
Open

Adding Turkish language support#223
g-hano wants to merge 9 commits into
myshell-ai:mainfrom
g-hano:main

Conversation

@g-hano

@g-hano g-hano commented Dec 23, 2024

Copy link
Copy Markdown

I created turkish.py and turkish_bert.py to support Turkish language. Used dbmdz/bert-base-turkish-cased as tokenizer

@kadirnar

Copy link
Copy Markdown

@g-hano Did you train with Turkish data?

@g-hano

g-hano commented Dec 29, 2024

Copy link
Copy Markdown
Author

@g-hano Did you train with Turkish data?

Yes I did, had to update many lines but finally was able to train on 4 T4s. Extra training on 46k audio samples made the model produce clearer outputs.

@tosunozgun

Copy link
Copy Markdown

Hello, thank you for supporting the Turkish TTS model, first of all. When I reviewed your code, I noticed that you convert text to lowercase during normalization. Unfortunately, for Turkish, uppercase "I" is converted to lowercase "i," which is incorrect. As a solution, the following change is needed: text.replace("I", "ı").lower(). Since you are using lowercase text, I recommend trying ytu-ce-cosmos/turkish-base-bert-uncased.

Handle Turkish character 'I' and change tokenizer to ytu-ce-cosmos/turkish-base-bert-uncased
@g-hano

g-hano commented Dec 30, 2024

Copy link
Copy Markdown
Author

Hello, thank you for supporting the Turkish TTS model, first of all. When I reviewed your code, I noticed that you convert text to lowercase during normalization. Unfortunately, for Turkish, uppercase "I" is converted to lowercase "i," which is incorrect. As a solution, the following change is needed: text.replace("I", "ı").lower(). Since you are using lowercase text, I recommend trying ytu-ce-cosmos/turkish-base-bert-uncased.

Thank you for your recommendations, I updated the code.

@furkeen

furkeen commented Jan 20, 2025

Copy link
Copy Markdown

Thanks for the great contribution @g-hano . I'm trying to test it however I couldn't find a way to test. Is there any way to test something like that?
melo "Merhaba ben Türkçe konuşabiliyorum." output.wav --language TR

@kadirnar

Copy link
Copy Markdown

I am developing the MeloPlus library to add more features to the MeloTts library. I added Thai and Turkish language support.

@furkeen You should find a Turkish model trained with the melotts model.

@karayakar

Copy link
Copy Markdown

Any huggingface space for testing? or sample output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants