Skip to content

Instantly share code, notes, and snippets.

@zhusee2
Last active December 20, 2015 03:09
Show Gist options
  • Select an option

  • Save zhusee2/6061774 to your computer and use it in GitHub Desktop.

Select an option

Save zhusee2/6061774 to your computer and use it in GitHub Desktop.
interface SpeechSynthesisUtterance : EventTarget {
attribute DOMString text; //要說的文字
attribute DOMString lang; //文字的語言
attribute DOMString voiceURI; //語音引擎來源
attribute SpeechSynthesisVoice voice; //Only in WebKit implementation.
attribute float volume; //講話的音量(0~1)
attribute float rate; //講話的速率
attribute float pitch; //講話的節拍(0~2)
attribute EventHandler onstart;
attribute EventHandler onend;
attribute EventHandler onerror;
attribute EventHandler onpause;
attribute EventHandler onresume;
attribute EventHandler onmark;
attribute EventHandler onboundary;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment