Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin...
by Svoka on Monday February 03, 2025 @05:09PM
(#42923958)
This is amazing! Consider potentially adding support for WebSpeech api to make it easier. Something like
[ Parent
| on HN ]
Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin...
by fearedbliss on Monday February 03, 2025 @09:57PM
(#42927181)
Thanks for the suggestion. Take a look at my other reply above, but The Cantonese Scrolls is a project that needs to be able to run offline, directly in your web browser, with no network calls. I allow everyone to download the entire project and self study offline or self host it if they want. This serves as both a backup mechanism, and a defense mechanism against any potential government censorship by countries that don't want Cantonese to exist.
Re:The Cantonese Scrolls (粵卷) – A Cantonese Language Learnin...
by mdaniel on Tuesday February 04, 2025 @11:03AM
(#42934132)
It's your project, I just wanted to point out that the code snippet the GP posted works offline, subject to the user having the voices installed. My `speechSynthesis.getVoices().filter(e => e.lang==='zh-HK')` returned nothing but it still tried to speak something anyway, even with the networking turned off on my computer
https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_...