Skip to content

Instantly share code, notes, and snippets.

@ikr7
Created September 21, 2014 15:20
Show Gist options
  • Save ikr7/0e68d84ba394bf25eff1 to your computer and use it in GitHub Desktop.
Save ikr7/0e68d84ba394bf25eff1 to your computer and use it in GitHub Desktop.
Web Speech Synthesis API(音声合成API) を試す ref: http://qiita.com/ikr7/items/71406123c991a05ed8ba
var helloworld = new SpeechSynthesisUtterance('Hello, World!');
helloworld.lang = 'en-US';
speechSynthesis.speak(helloworld);
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