package
Small promise wrapper for SpeechSynthesisUtterance
npm install uttersGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
4.5 kB
Includes dependencies.
Small (257B) promise wrapper for SpeechSynthesisUtterance
$ npm install uttersThis module is delivered as:
dist/index.jsdist/utters.umd.jsdist/utters.umd.min.jsimport utters from 'utters';
function speak() {
// string input
await utters(`Hello World`);
// SpeechSynthesisUtterance input
await utters(new SpeechSynthesisUtterance(`Hello World`));
console.log(`Done!`);
}Type: string|SpeechSynthesisUtterance
Returns: Promise<SpeechSynthesisUtterance>
MIT © Terkel Gjervig