sts-bolo
v1.1.0
Published
Text-to-Speech package that instantly speaks English and Hindi natively in the browser.
Readme
sts-bolo
A simple plug-and-play Text-to-Speech package that brings your web applications to life with highly natural, humanized voice capabilities right in the browser.
Features
- Bilingual Support: Natively speaks both English/Spanish (default) and Hindi out of the box.
- Humanized Voice Quality: Carefully tuned to sound natural, smooth, and expressive, avoiding robotic or mechanical tones.
- Zero Configuration: Works out of the box with natively supported browser APIs. No external dependencies or API keys required.
- Real-time Control: Full support for dynamically speaking, pausing, resuming, and stopping speech instantly.
Installation
npm install sts-boloQuick Start
import STS from 'sts-bolo';
// Initialize the Text-to-Speech engine
const tts = new STS();
// Speak text using the default (Spanish/English) voice model
tts.speak("Hello, the text-to-speech engine is now active.", 'es');
// Switch to the Hindi voice model seamlessly
tts.speak("नमस्ते, आप कैसे हैं?", 'hi');
// Control the speech playback dynamically
tts.pause();
tts.resume();
tts.stop();