gruut icon indicating copy to clipboard operation
gruut copied to clipboard

British (en-gb) Phonemes w/ eSpeak

Open automationist opened this issue 4 years ago • 3 comments

eSpeak supports British, so I should be able to run gruut.sentences(text, lang="en-gb", espeak=True), but the results are the same as running lang="en-us". Is there a way to enable eSpeak with en-gb?

To reproduce, run:

for sentence in gruut.sentences("runner", lang="en-gb", espeak=True):
    print(sentence.words[0].phonemes)

for sentence in gruut.sentences("runner", lang="en-us", espeak=True):
    print(sentence.words[0].phonemes)

Results:

['ɹ', 'ˈʌ', 'n', 'ɚ']
['ɹ', 'ˈʌ', 'n', 'ɚ']

Expected Results:

['ɹ', 'ˈʌ', 'n', 'ə']  # notice the last phoneme is different
['ɹ', 'ˈʌ', 'n', 'ɚ']

automationist avatar Feb 21 '22 16:02 automationist

Bump

edmundman avatar Nov 10 '22 15:11 edmundman

I would also be interested in why en-gb support was removed. In older versions, were the en-us and en-gb settings using the same lexicon? Thanks!

liaeh avatar Dec 05 '22 12:12 liaeh

+1

tylerweitzman avatar Dec 13 '22 18:12 tylerweitzman