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

How to add new language to Piper Recoding Studio? #17

Open
pedjas opened this issue Feb 21, 2024 · 6 comments
Open

How to add new language to Piper Recoding Studio? #17

pedjas opened this issue Feb 21, 2024 · 6 comments

Comments

@pedjas
Copy link

pedjas commented Feb 21, 2024

I want to make TTS for language that is not listed in Piper Recording Studio. How can new language be added?

Is it enough to create language directory in prompts/ and create files in same manner as for other languages?

Are there some requirements for phrasses in prompt files or that can be anything? Can I use phrases from existing language files and translate them to new language?

@synesthesiam
Copy link
Contributor

Yes! Just make sure to follow the same format. I'd suggest also adding some numbers and short phrases that are common in the language (yes/no/thank you/etc).

Which language are you planning to add?

@pedjas
Copy link
Author

pedjas commented Feb 22, 2024

Are there any rules of file contents, explanation on file naming sceheme and structure of files?

I see numbers showing up but it is not just ordered numbers, I see prefies in numbers (even different prefixes within same file).

Generealy, while browsing langage folders i see there are some difference in naming and numbering.

What count of phrases is expected. Is ther eminimum requirement, Is there maximum limitation? Are thеre limitations per file?

Can I name files using serbian languages? Serbian language is bit complicated so one word can have number of variations depending of usage and I would like to use grammar terminology to organize variations in different files. I do not know English terminology so it is easier to use Serbian.

I am going to try to add Serbian. I already prepared numbers file as that was easy to do. Can i add any number phrase or tehre are somе requirements? Can I add ordering numbers phrases like "first", "second", "third"...

How should I deal with phrases that are mant to be pronounced in normal voice, or sad voice, or as question, or angry voice or so?

If I talk someone into join me, how should we organise files so each works on his own set of phrases?

Sorry for so many questions but I could not find a single clue how to prepare new language.

@pedjas
Copy link
Author

pedjas commented Feb 23, 2024

I have created repository to initiate creation of prompt files for Serbian language at https://github.com/pedjas/piper-recording-studio-prompts-serbian.

I've done this to avoid making mess in Piper Recording Studio until I am sure files are created proprly.

I already uploaded some files into repository and would apprecieate if files are checked for matching requirements to inclusion in Piper Recording Studio.

@pedjas
Copy link
Author

pedjas commented Apr 21, 2024

I am still not sure if I prepared files properly.

@synesthesiam
Copy link
Contributor

This looks good to me, thanks! You just need to change the directory name to have a dash (-) instead of an underscore before SR: Serbian (Serbia)_rs-SR

@pedjas
Copy link
Author

pedjas commented May 9, 2024

That is great news! Thanks!

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

No branches or pull requests

2 participants