NPMYarnCDN
Installation
Get up and running with JSVoice in less than a minute.
Package Manager
The recommended way to install JSVoice is via npm, yarn, or pnpm. This ensures type safety and optimal bundling.
bash
1npm install jsvoicebash
1yarn add jsvoiceCDN (Browser)
To use JSVoice directly in the browser without a build step, use the UMD build via unpkg.
html
1<script src="https://unpkg.com/jsvoice/dist/voice-ui.umd.min.js"></script>Framework Integration
JSVoice is framework agnostic. Here is how to import it:
ES Modules (React, Vue, etc)
javascript
1import JSVoice from 'jsvoice';CommonJS (Node environments)
javascript
1const JSVoice = require('jsvoice');