Socket
Socket
Sign inDemoInstall

@jace.dev/speechy

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jace.dev/speechy

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


Version published
Maintainers
1
Created

Readme

Source

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

Keywords

FAQs

Last updated on 05 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc