ResponsiveVoice API
Ship text-to-speech in minutes with one API key.
Add spoken audio to websites, apps, AI products, dashboards, learning tools, queue systems, and content platforms with ResponsiveVoice’s JavaScript SDK, REST API, npm packages, and practical examples.
- JavaScript SDK
- REST API
- npm packages
- GitHub examples
- 51 languages
- Predictable pricing
npm install @responsivevoice/core
import { getResponsiveVoice } from '@responsivevoice/core';
const rv = await getResponsiveVoice({
apiKey: 'YOUR_API_KEY'
});
rv.speak('Your product has a voice now.', 'UK English Female');
Product proof
Let prospects hear the experience before they sign up
ResponsiveVoice is not just an endpoint. It gives websites and applications a practical listening layer: choose a voice, speak dynamic text, and keep the integration simple enough to ship quickly.
Ready – UK English Female
Choose the fastest path for your product
Start in the browser with one line of JavaScript, install from npm for a modern app, or call the REST API from your server when you need generated audio outside the browser.
Browser and website API
Add voice to pages, forms, articles, buttons, tutorials, accessibility features, and interactive experiences with the ResponsiveVoice JavaScript API.
Start with the quick startModern npm packages
Use TypeScript-first packages for Vite, React, Vue, Next.js, Node.js, and build-tool workflows.
View @responsivevoice/core on npmServer-side REST API
Generate speech from backends, automations, queues, content pipelines, and platforms where browser speech is not enough.
Read the REST docsDeveloper resources
Everything a prospect needs to evaluate, integrate, and hand off to an engineering team.
“ResponsiveVoice let us add spoken voices to our language learning site for a fixed monthly price, more than ten times cheaper than pay-per-word alternatives, with very similar quality.”
From signup to working voice
The page should convert developer-intent visitors into signups by showing the exact path from API key to production integration.
Create your API key
Sign up for ResponsiveVoice and get the key your site or app will use to initialize the SDK or authenticate API calls.
Install or call the API
Use the browser script, install from npm, or connect your backend to the REST API depending on where speech belongs in your product.
Launch and scale
Start with simple speech, then add voice selection, events, playback controls, streaming, and production-ready usage patterns.
Compatibility
Already using responsivevoice.js?
The familiar JavaScript API remains part of the story. Existing integrations can continue to use the simple browser methods while new projects move toward the current docs, npm packages, and server-side REST API where appropriate.
- speak(text, voice, params)
Speak text in a selected voice with pitch, rate, volume, and callbacks. - cancel()
Stop active speech playback. - pause() / resume()
Control long passages and user-driven playback. - getVoices()
List voices available to the current integration. - setDefaultVoice()
Set the default voice for repeated calls. - setTextReplacements()
Tune pronunciation with custom replacements.
<script src="https://code.responsivevoice.org/responsivevoice.js?key=YOUR_UNIQUE_KEY"></script>
<button onclick="responsiveVoice.speak('Hello world', 'UK English Female')">
Play
</button>
Get an API key and start building.
ResponsiveVoice is built for teams that need practical text-to-speech without a complicated voice stack. Get an API key, prove the integration, and upgrade when the project is ready for commercial scale.