Skip to content
/ utters Public

Small (257B) promise wrapper for SpeechSynthesisUtterance

License

Notifications You must be signed in to change notification settings

terkelg/utters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utters

Small (257B) promise wrapper for SpeechSynthesisUtterance

Install

$ npm install utters

This module is delivered as:

Usage

import utters from 'utters';

function speak() {

  // string input
  await utters(`Hello World`);

  // SpeechSynthesisUtterance input
  await utters(new SpeechSynthesisUtterance(`Hello World`));

  console.log(`Done!`);
}

Read more about how to use the SpeechSynthesis API on MDN

API

utters(input)

Type: string|SpeechSynthesisUtterance
Returns: Promise<SpeechSynthesisUtterance>

License

MIT © Terkel Gjervig

About

Small (257B) promise wrapper for SpeechSynthesisUtterance

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published