rhasspy / gruut

A tokenizer, text cleaner, and phonemizer for many human languages.
MIT License
279 stars 36 forks source link

Unable to get phonemes from Russian #44

Closed blackears closed 6 months ago

blackears commented 6 months ago

The main page lists Russian as one of the languages supported, however when I run a script to phonemize Russian, the phoneme array is set to null. This script works fine for the languages English, French and Spanish.

How can I get the phonemes for Russian?

from gruut import sentences

text = 'Чайка приземлилась на крышу.'

for sent in sentences(text, lang="ru-ru"):
    for word in sent:
        if word.phonemes:
            print(word.text, *word.phonemes)
blackears commented 6 months ago

Looks like what I needed to do was pip install the gruut-lang-ru library.