Socket
Socket
Sign inDemoInstall

speech-synth

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    speech-synth

Simple text to speech module built on Web Speech API


Version published
Weekly downloads
14
increased by7.69%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

speech-synth

Simple text to speech module built on Web Speech API.

  • Try out a live demo of the component here

  • The NPM page can be found here

  • The GitHub page can be found here

Table of Contents

  1. Usage
  2. Initial Setup
  3. Component API
  4. Team

Usage

Install Module

run npm install speech-synth --save in console while in root directory to add the component to your project.

Initial Setup

Import the module buy using a requrie statement: const speech = require('speech-synth');

or an import statement: import speech from 'speech-synth';

Component API

  • say:
    • Description: convert text to speech
    • Type: Method
    • Params: (input, voiceURI)
      • input -> String to be spoken
      • voiceURI -> name of the voice to use
        • Default: 'Google US English'
    • Return: none
  speech.say('hello')
  • getVoiceNames:
    • Description: returns an array of all voiceURI options that can be used with the say method
    • Type: Method
    • Params: none
    • Return: Array[String]
  speech.getVoiceNames()

Example:

  let voice = speech.getVoiceNames()[3];
  speech.say('My voice is Google Deutsch', voice);

Team

  • Development Team Members:
    • Alec Draymore

Keywords

FAQs

Last updated on 05 Oct 2017

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