@responsivevoice/features
v2.0.1
Published
Dashboard feature plugins for the ResponsiveVoice text-to-speech (TTS) platform
Readme
Internal package — published as a dependency of
@responsivevoice/core, which re-exports these features. You usually do not install this directly.
Installation
npm install @responsivevoice/featuresUsage
import { createFeatureManager } from '@responsivevoice/features';
const manager = createFeatureManager();
// `speak` is your TTS function; `features` and `voice` come from your
// ResponsiveVoice website config.
manager.activate(features, speak, voice);
// Later — remove every listener the features installed.
manager.cleanup();Features
| Feature | Description |
| ---------------------------- | ---------------------------------------------------------- |
| WelcomeMessageFeature | Speaks a welcome message on page load |
| SpeakSelectedTextFeature | Speaks highlighted text |
| SpeakLinksFeature | Speaks link text on hover |
| ParagraphNavigationFeature | Keyboard paragraph navigation with speech |
| TabNavigationFeature | Keyboard tab navigation with speech |
| InactivityMessageFeature | Speaks after a period of inactivity |
| EndOfPageMessageFeature | Speaks when user reaches bottom of page |
| ExitIntentFeature | Speaks when user moves to leave page |
| WebPlayerFeature | Inline audio player with controls and paragraph navigation |
API
| Export | Description |
| ---------------------- | ------------------------------------- |
| createFeatureManager | Factory with default feature set |
| FeatureManager | Lifecycle manager for feature plugins |
Individual feature classes are also exported for advanced usage.
License
MIT
