Created
November 25, 2019 06:03
-
-
Save sajanthomas01/b0aababeccbcbc2fe87fa3fe66765f02 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>WebSpeech API</title> | |
<!--Import Google Icon Font--> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
<!--Import materialize.css--> | |
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" media="screen,projection"/> | |
<!--Let browser know website is optimized for mobile--> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
</head> | |
<body> | |
<h3 class="center-align">Text to Speech using WebSpeech API</h3> | |
<div class="row"> | |
<div class="container"> | |
<div class="row"> | |
<div class="input-field col s12"> | |
<input placeholder="Input text" id="tts_input" type="text" > | |
<label for="tts_input">Text Input</label> | |
</div> | |
</div> | |
<div class="row center-align"> | |
<button class="btn waves-effect waves-light" id="tts_button" type="button" name="action">Do the Magic | |
<i class="material-icons right">send</i> | |
</button> | |
</div> | |
</div> | |
</div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> | |
<script src="/speech.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment