tts-element
TypeScript icon, indicating that this package has built-in type declarations

0.0.3-beta • Public • Published

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.

/tts-element/

    Package Sidebar

    Install

    npm i tts-element

    Weekly Downloads

    0

    Version

    0.0.3-beta

    License

    MIT

    Unpacked Size

    74.4 kB

    Total Files

    15

    Last publish

    Collaborators

    • morganney