0.0.3-beta • Published 1 year ago

tts-element v0.0.3-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.