eliranwong / UniqueBible

A cross-platform bible application, integrated with high-quality resources and amazing features, running offline in Windows, macOS and Linux, ChromeOS, Android, iOS. Various running modes are supported.
https://UniqueBible.app
GNU General Public License v3.0
127 stars 35 forks source link

create a plugin for Cantonese reading #937

Closed eliranwong closed 2 years ago

eliranwong commented 2 years ago

Cantonese is missing from gtts features

gtts-cli --all

will create a plugin to read Cantonese with Google tts cloud service.

eliranwong commented 2 years ago

will refer to python code at:

https://cloud.google.com/text-to-speech/docs/create-audio-text-client-libraries

eliranwong commented 2 years ago

Changes in 28.29:

To work with this plugin, you need to: 1) Create a credential key and download it. Read for details at https://cloud.google.com/text-to-speech/docs/before-you-begin 2) Rename the credential key file to "credentials_GoogleCloudTextToSpeech.json" 3) Place the credential key file "credentials_GoogleCloudTextToSpeech.json" in UniqueBibleApp folder.

Remarks: "Google Cloud Text-to-Speech is priced based on the number of characters sent to the service to be synthesized into audio each month. The first 1 million characters for WaveNet voices are free each month." 1 million characters each month should be free enough for general use. """