bootphon/phonemizer

Phonemizer does not work with language="en"

Rishabh-Choudhry opened this issue · 2 comments

Describe the bug

I am trying to run the following code:

`from phonemizer.phonemize import phonemize

phonemize("apples",language="en"))`

But I get the following error:

RuntimeError: language "en" is not supported by the espeak backend

How can I get the British english language running on phonemize function?

Phonemizer version
v3.2.1

System
Linux

Apologies for raising the issue. I figured it out. We can use the following code:

phonemize("apples",language="en-gb"))

Documenting this somewhere might be useful, as it doesn't comply with the espeak language codes.