Socket
Socket
Sign inDemoInstall

html-speaker

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    html-speaker

A custom html element makes Text-To-Speech function easier to use.


Version published
Weekly downloads
8
Maintainers
1
Install size
16.8 kB
Created
Weekly downloads
 

Readme

Source

npm version

HTML-Speaker

npm version composer version Build status Codacy Badge

A custom html element to use Text-To-Speech function easier. Live demo: https://tatlead.com/HTML-Speaker/

npm

npm install html-speaker

Quick start

CSS (Optional)

Copy-paste the stylesheet <link> into your <head>.

<link href="https://cdn.jsdelivr.net/npm/html-speaker@latest/dist/html-speaker.min.css" rel="stylesheet">

JS

Place the following <script> near the end of your pages, right before the closing </body> tag

<script src="https://cdn.jsdelivr.net/npm/html-speaker@latest/dist/html-speaker.min.js"></script>

Basic <html-speaker> template

Place the following template inside </body> tag

<html-speaker for="content" class="speaker speaker-rounded" data-start="PLAY" data-pause="PAUSE"></html-speaker>

<p id="content">
  Back in the old days of TF2 Sandbox, MSTR stood as the biggest center of in-game TF2 roleplaying in the community.
</p>

Examples

Live demo: https://tatlead.com/HTML-Speaker/examples/

Bugs and feature requests

If you find a bug, please report it here on Github.

Keywords

FAQs

Last updated on 15 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc