bootphon / phonemizer

Simple text to phones converter for multiple languages
https://bootphon.github.io/phonemizer/
GNU General Public License v3.0
1.15k stars 163 forks source link

Phonemizer does not work with language="en" #130

Closed Rishabh-Choudhry closed 2 years ago

Rishabh-Choudhry commented 2 years ago

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 2 years ago

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

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

cbjrobertson commented 4 months ago

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