1
6
找到了根本原因。 Getting the list of voices in speechSynthesis of Chrome (Web Speech API) 调用是异步的,所以当我尝试在索引中运行时。html语音数组为空。正如我建议的那样,当我运行这个,然后使用speak时,它工作得很好。
|