Created
September 21, 2014 15:20
-
-
Save ikr7/0e68d84ba394bf25eff1 to your computer and use it in GitHub Desktop.
Web Speech Synthesis API(音声合成API) を試す ref: http://qiita.com/ikr7/items/71406123c991a05ed8ba
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var helloworld = new SpeechSynthesisUtterance('Hello, World!'); | |
helloworld.lang = 'en-US'; | |
speechSynthesis.speak(helloworld); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var japanese = new SpeechSynthesisUtterance('ひだまりスケッチの宮子ちゃんのおしっこ'); | |
japanese.lang = 'ja-JP'; | |
speechSynthesis.speak(japanese); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment