Due to business needs, TTS is needed to broadcast Chinese voice. However, almost all TTS plug-ins found in the plug-in library are in English (due to the problems of Google Android system itself), so I can only write plug-ins by myself with the help of Chinese TTS voice package.
Now the plugin has been updated to the plugin library, I have completed the verification and use under ionic4 with Angular development method. You can use my plug-in directly if you need it, and you can refer to my source code if you need it.
The source code
use
download
cordova plugin add cordova-plugin-chinese-tts
Used in TS (Angular)
1. Declare let cordova:any; 2. Initialize the speech engine cordova. Plugins. ChineseTTS. The init (); 3. Play cordova. Plugins. ChineseTTS. Speak (" hello ");