Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome 如何将SSML与Web语音API结合使用_Google Chrome_Webspeech Api - Fatal编程技术网

Google chrome 如何将SSML与Web语音API结合使用

Google chrome 如何将SSML与Web语音API结合使用,google-chrome,webspeech-api,Google Chrome,Webspeech Api,它不起作用。该声音试图讲述XML标记 这个代码有效吗?我必须提供XMLDocument对象吗?您使用的是什么环境?我正在使用Chrome环境这似乎是Chrome的一个已知错误。见和。 var msg = new SpeechSynthesisUtterance(); msg.text = "ssml"; speechSynthesis.speak(msg);

它不起作用。该声音试图讲述XML标记


这个代码有效吗?我必须提供XMLDocument对象吗?

您使用的是什么环境?我正在使用Chrome环境这似乎是Chrome的一个已知错误。见和。
var msg = new SpeechSynthesisUtterance();

msg.text = "ssml";
speechSynthesis.speak(msg);