Skip to content

responsivevoice/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ResponsiveVoice logo

ResponsiveVoice Examples

Browser and Node.js examples for the @responsivevoice/core and @responsivevoice/api-client packages.

Documentation GitHub License: MIT


Tip

Get a free API key at responsivevoice.org/register — required to access all available voices (standard and premium) in browser demos, and required outright for the Node.js examples.

Browser Examples

Example Description
basic Minimal TTS — speak text with default voice (loads from CDN)
extended Voice selection, playback controls, and event logging (loads from CDN)
vite @responsivevoice/core installed from npm and bundled by Vite — the modern web-app path
# Serve the static CDN examples locally
npm install
npm run serve
# Open http://localhost:3000/browser/basic/ or /browser/extended/
# Run the npm + Vite example (bundled)
npm install
npm run vite:dev
# Open http://localhost:5173

Node.js Examples

npm install

# CLI example
npm run cli -- "Hello, world!"

# Server example
npm run server
# Visit http://localhost:3001

In-page key entry

Every browser demo includes an in-page acquisition callout and a Paste your API key input — no source edits required. The pasted key persists in localStorage and is reused across all demos on the same site. An optional Advanced settings disclosure lets you override the TTS server URL when needed.

Examples use npm scripts; substitute yarn (e.g. yarn, yarn serve) if you prefer.

Documentation

Full documentation at docs.responsivevoice.org.

License

MIT


Source: github.com/responsivevoice/examples

About

Example apps & demos for the ResponsiveVoice text-to-speech (TTS) API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors