tts-element
v0.0.3-beta
Published
HTML custom element to convert text to speech using the Web Speech API.
Downloads
47
Maintainers
Readme
tts-element
HTML custom element to convert text to speech using the SpeechSynthesis interface of the Web Speech API.
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>tts-element CDN example</title>
<style>
text-to-speech:not(:defined) {
display: none;
}
</style>
<script type="module" src="https://unpkg.com/tts-element/dist/text-to-speech/defined.js"></script>
</head>
<body>
<text-to-speech>Your run-of-the-mill text to speech CDN example.</text-to-speech>
</body>
</html>
Check out other examples.