Can't Chrome's speechSynthesis work offline?

牧云@^-^@ 提交于 2019-11-29 10:42:59

Speech synthesis voices are either local on the device or come from remote speech synthesizer services. If the voice is a remote service, the browser will only be able to use it if it is online and can connect to it.

You don't say which environment you are on, but the Google Français voice that would be used for fr-FR on Windows and OS X is a remote service, so it doesn't work offline.

You can check which voices are available on a device by calling speechSynthesis.getVoices() and checking the localService property for each voice.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!