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

Stress marking for Russian language #684

Open
valentin7121 opened this issue Dec 24, 2024 · 0 comments
Open

Stress marking for Russian language #684

valentin7121 opened this issue Dec 24, 2024 · 0 comments

Comments

@valentin7121
Copy link

I need to manually mark stress in some words. I found that for English I can put ' symbol before stressed syllable and phonemized representation will change.

>>> piper_phonemize.phonemize_espeak("abstract", "en")
[['ˈ', 'a', 'b', 's', 't', 'ɹ', 'a', 'k', 't']]
>>> piper_phonemize.phonemize_espeak("abstr'act", "en")
[['ɐ', 'b', 's', 't', 'ɹ', 'ˈ', 'a', 'k', 't']]

But for Russian ' symbol completely breaks the pronunciation:

>>> piper_phonemize.phonemize_espeak("творог", "ru")
[['t', 'v', 'ʌ', 'r', 'ˈ', 'o', 'k']]
>>> piper_phonemize.phonemize_espeak("тв'орог", "ru")
[['t', 'ˌ', 'ɛ', 'v', 'ˈ', 'ɛ', 'ʌ', 'r', 'ˈ', 'o', 'k']]

What could be the problem?

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

1 participant