Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change zh_HK to yue_HK in languages.py #322

Open
Eletroboss opened this issue Aug 10, 2024 · 2 comments
Open

Change zh_HK to yue_HK in languages.py #322

Eletroboss opened this issue Aug 10, 2024 · 2 comments

Comments

@Eletroboss
Copy link

In short: Google's text-to-speech services do not recognise zh_HK for Cantonese but do recognise yue_HK.

In long:

zh_HK as far as I know refers to 書面語 which is the Hong Kong variant of Standard Written Chinese using Cantonese pronunciation.

It is distinct from Hong Kong Cantonese, which is called 粵語 and I believe uses yue_HK.

Both use Cantonese pronuncation, so the distinction is unnecessary except that in Android with Google's speech services' Cantonese pronunciation it is necessary that it is yue_HK else it will not be able to find a compatible text-to-speech generator.

What I do to get around this is I go into awesometts/service/languages.py and change zh_HK to yue_HK and it works.

I suggest that zh_HK be replaced with yue_HK, or even better that both are "merged" so to speak so that both codes are tried before giving up on finding a voice.

@luc-vocab
Copy link
Collaborator

thanks for raising this, I want to confirm again, zh_HK in a realtime TTS tag does not produce any text to speech output on AnkiDroid?

@Eletroboss
Copy link
Author

Yes - at least with Google speech services on LineageOS and Motorola. It says there is no sound engine for zh_HK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants