aiava-text-to-speech
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

text-to-speech

Turn your strings into voice.

Note: A user interaction must be made on the webpage for the speech synthesis to work. That means the must trigger an event on the web page, e.g. a click event.

Table of Contents

// Imports
import TextToSpeech from "aiava-text-to-speech";

// Create a new speaker.
const speaker = new TextToSpeech();

// Add something to the utterance queue.
speaker.say("Hello World!");

// Or use a different language.
speaker.language = "nb-NO";
speaker.say("Hei Verden!"); // Hello World

Installation

yarn add aiava-text-to-speech

Or with NPM

npm i -S aiava-text-to-speech

Documentation

All the documentation is located on the Text To Speech documentation site.

Readme

Keywords

none

Package Sidebar

Install

npm i aiava-text-to-speech

Weekly Downloads

0

Version

1.2.4

License

MIT

Unpacked Size

8.35 kB

Total Files

8

Last publish

Collaborators

  • ihack2712