Skip to content

Jace-Tech/Speechy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published