Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SpeechSynthesis API #69

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions source/browserapis/speechsynthesis.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Web Speech Synthesis API
short_description: Allows text to be spoken by the computer
tags: media, audio

w3c_status: W3C Editors Draft
w3c_link: https://dvcs.w3.org/hg/speech-api/raw-file/tip/webspeechapi.html#tts-section
caniuse: http://caniuse.com/#feat=speech-synthesis
mdn_docs: https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis
web_platform: #


links_tutsarts:
#
links_examples:
#
suggested_uses:
- Acknowledge users actions
- Speak content to users with vision difficulties
---


```js
if('speechSynthesis' in window){
var synth = window.speechSynthesis;
var msg = new SpeechSynthesisUtterance("Hello, World!");
msg.lang = "en-GB";
synth.speak(msg);
}
```