API Reference
Reference documentation generated from the TypeScript source of each published package. For install instructions and a first working example, start with Installation.
Pick a package
Section titled “Pick a package”Most projects need exactly one of these two.
@responsivevoice/coreText-to-speech in the browser. Native voices with automatic server fallback, streaming, and the web player. This is the package behind the CDN bundle.
@responsivevoice/api-clientREST client for the ResponsiveVoice API. Use it from Node.js or any server-side runtime, where the Web Speech API does not exist.
Supporting packages
Section titled “Supporting packages”These ship as dependencies of the packages above, so you rarely install them directly.
@responsivevoice/featuresThe page-level speech features — web player, speak-on-select, paragraph navigation, and the rest. core re-exports all of them.
@responsivevoice/typesZod schemas and the TypeScript types inferred from them. api-client re-exports the common ones.
@responsivevoice/textText chunking, duration estimation, and normalization shared by the packages above.
Other references
Section titled “Other references”REST APIThe HTTP endpoints themselves — call them from any language.
Browser SupportMinimum browser and Node.js versions for each package.