@jace.dev/speechy

1.0.0 • Public • Published

Speechy

A simple script to help out with Text-to-speech in Javascript

Installation

NPM

    npm i @jace.dev/speechy

YARN

    yarn add @jace.dev/speechy

PNPM

    pnpm install @jace.dev/speechy

How to use

import Speechy from '@jace.dev/speechy';

var speechy = new Speechy();
speechy.say("Hello World");

OR

import Speechy from '@jace.dev/speechy';

var speechy = new Speechy();
speechy.text("Hello World");
speechy.speak();

OR

import Speechy from '@jace.dev/speechy';

var speechy = new Speechy("Hello world");
speechy.speak();

Other Methods

  • speechy.text(text): Sets the text to be spoken
  • speechy.speak(): Speaks the text
  • speechy.pause(): Pauses the speech
  • speechy.resume(): Resumes the speech
  • speechy.stop(): Stops the speechxw
  • speechy.setRate(rate): Sets the speech rate [0 - 1] default: 1
  • speechy.setPitch(pitch): Sets the speech pitch [0 - 1] default: 1
  • speechy.setVolume(volume): Sets the speech volume [0 - 1] default: 1
  • speechy.setVoice(voice): Sets the speech voice
  • speechy.getVoices(): Returns an array of available voices

Package Sidebar

Install

npm i @jace.dev/speechy

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

25.4 kB

Total Files

10

Last publish

Collaborators

  • jace.dev