https://github.com/gfyoung/basic-tts
Basic wrapper around the Speech Synthesis API
https://github.com/gfyoung/basic-tts
browser speech-api speech-synthesis speech-to-text tts web-api
Last synced: 10 months ago
JSON representation
Basic wrapper around the Speech Synthesis API
- Host: GitHub
- URL: https://github.com/gfyoung/basic-tts
- Owner: gfyoung
- License: other
- Created: 2018-11-28T16:48:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T03:00:16.000Z (about 3 years ago)
- Last Synced: 2025-06-20T17:54:28.767Z (10 months ago)
- Topics: browser, speech-api, speech-synthesis, speech-to-text, tts, web-api
- Language: JavaScript
- Size: 727 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://travis-ci.com/gfyoung/basic-tts)
# basic-tts
Basic wrapper around the [Speech Synthesis API](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis).
This is a bare-bones wrapper with no dependencies besides a browser that supports text-to-speech.
Installation is relatively straightforward via [NPM Package Registry](https://www.npmjs.com/package/basic-tts):
~~~
npm install basic-tts
~~~
Alternatively, you can use [GitHub's Package Registry](https://github.com/gfyoung/basic-tts/packages/57285).
Afterwards, you can check the support of your browser in Node, for example, as follows:
```javascript
const tts = require("basic-tts");
console.log(tts.isSupported());
```
The repository also contains a demo HTML file ([demo.html](https://gfyoung.github.io/basic-tts/demo.html)) where you can also
see whether your browser supports text-to-speech. If it does, you can then see
the package in action.