cordova-plugin-tts
cordova-plugin-tts copied to clipboard
设置locale:'zh-CN‘,可说出的不是中文,是还是不支持中文吗?
speak() { alert("begin to speak,"); this.tts.speak({text: "你好,欢迎,向前走10米,路口右转,执行10米,在左转", locale: 'zh-CN'}) .then(() => console.log('Success')) .catch((reason: any) => console.log(reason)); }
跟你一样的状况
不需要设置locale,直接就可以说中文的
跟你一样的情况,不设置也不可以说中文,设置了zh-CN 也没有
最后大家怎么解决的啊
最后没办法自己基于云之声封装了个插件cordova-plugin-chinese-tts,可以直接使用.git地址https://github.com/KeiferJu/cordova-plugin-chinese-tts