{"id":675,"date":"2020-03-23T09:00:00","date_gmt":"2020-03-23T08:00:00","guid":{"rendered":"http:\/\/programaraciegas.net\/?p=675"},"modified":"2020-03-22T19:43:39","modified_gmt":"2020-03-22T18:43:39","slug":"como-pausar-y-reanudar-la-locucion-con-web-speech-api","status":"publish","type":"post","link":"https:\/\/programaraciegas.net\/?p=675","title":{"rendered":"C\u00f3mo pausar y reanudar la locuci\u00f3n con Web Speech API"},"content":{"rendered":"<p>En art&iacute;culos anteriores hemos visto c&oacute;mo utilizar <strong>Web Speech API<\/strong> para que nuestro navegador verbalice mensajes pero a veces necesitamos que esa verbalizaci&oacute;n se pause.<\/p>\n<p><!--more--><\/p>\n<p>El c&oacute;digo para incluir las funciones de pausar y reanudar es bastante sencillo como podemos ver a continuaci&oacute;n:<\/p>\n<pre><code>\r\n&lt;script type=\"text\/javascript\" &gt;\r\n\tfunction pauseSpeak() {\r\n\t\tspeechSynthesis.pause();\r\n\t}\r\n\r\n\tfunction resumeSpeak() {\r\n\t\tspeechSynthesis.resume();\r\n\t}   \r\n&lt;\/script&gt;\r\n<\/code><\/pre>\n<p>Junto con el c&oacute;digo que hemos visto en anteriores art&iacute;culos ahora podemos crear multitud de funcionalidad para nuestra p&aacute;gina web.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>En art&iacute;culos anteriores hemos visto c&oacute;mo utilizar Web Speech API para que nuestro navegador verbalice mensajes pero a veces necesitamos que esa verbalizaci&oacute;n se pause.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[334,114,6],"tags":[329,328,94],"class_list":["post-675","post","type-post","status-publish","format-standard","hentry","category-javascript","category-navegadores-web","category-programacion","tag-api","tag-speech","tag-web"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/posts\/675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=675"}],"version-history":[{"count":0,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/posts\/675\/revisions"}],"wp:attachment":[{"href":"https:\/\/programaraciegas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}