Phonemizer does not work with language="en"
Rishabh-Choudhry opened this issue · 2 comments
Rishabh-Choudhry commented
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
Rishabh-Choudhry commented
Apologies for raising the issue. I figured it out. We can use the following code:
phonemize("apples",language="en-gb"))
cbjrobertson commented
Documenting this somewhere might be useful, as it doesn't comply with the espeak language codes.