{"id":1259,"date":"2018-12-26T18:28:57","date_gmt":"2018-12-26T09:28:57","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=1259"},"modified":"2021-10-17T18:35:26","modified_gmt":"2021-10-17T09:35:26","slug":"javascript%e3%81%a7%e6%96%87%e5%ad%97%e3%82%92%e8%aa%ad%e3%81%be%e3%81%9b%e3%82%8btext-to-speech","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=1259","title":{"rendered":"JavaScript\u3067\u30c6\u30ad\u30b9\u30c8\u8aad\u307f\u4e0a\u3052"},"content":{"rendered":"<p>Google Chrome\u3084Safari\u306a\u3069\u30d6\u30e9\u30a6\u30b6\u30fc\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3001JavaScript\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u8aad\u307f\u4e0a\u3052\u3001\u6587\u5b57\u3092\u8aad\u307e\u305b\u308b(text-to-speech)\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/15653145\/using-google-text-to-speech-in-javascript\">Using Google Text-To-Speech in Javascript &#8211; Stack Overflow<\/a><\/p>\n<p><iframe loading=\"lazy\" height=\"400px\" width=\"100%\" src=\"https:\/\/repl.it\/@yuis_ice\/Javascript-text-to-speech?lite=true\" scrolling=\"no\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\" sandbox=\"allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals\"><\/iframe><\/p>\n<pre><code>var msg = new SpeechSynthesisUtterance('Hello World');\nwindow.speechSynthesis.speak(msg);\n<\/code><\/pre>\n<pre><code>&lt;script src='https:\/\/code.responsivevoice.org\/responsivevoice.js'&gt;&lt;\/script&gt;\n\n&lt;input onclick=\"responsiveVoice.speak('This is the text you want to speak');\" type='button' value='\ud83d\udd0a Play' \/&gt;\n<\/code><\/pre>\n<p>\u524d\u8005\u306f\u3001chrome\u3068\u304b\u3067\u5b9f\u884c\u3059\u308b\u3076\u3093\u306b\u306f\u3046\u307e\u304f\u518d\u751f\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057electron\u3068\u304b\u3067\u518d\u751f\u3059\u308b\u3068\u3001\u30b9\u30da\u30a4\u30f3\u8a9e\u307f\u305f\u3044\u306a\u8aad\u307f\u65b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5f8c\u8005\u306felectron\u3067\u3082\u3061\u3083\u3093\u3068\u82f1\u8a9e\u8a71\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u3053\u3063\u3061\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Chrome\u3084Safari\u306a\u3069\u30d6\u30e9\u30a6\u30b6\u30fc\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3001JavaScript\u3067\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-kj","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1259"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1259"}],"version-history":[{"count":2,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1259\/revisions"}],"predecessor-version":[{"id":3059,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1259\/revisions\/3059"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}