🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

speech-synthesis-text-to-speech

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speech-synthesis-text-to-speech

0.0.2
latest
npm
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Angular Text to speech

Table of contents:

Quickstart

Installing the client library

npm i speech-synthesis-text-to-speech

Using the client library

// Imports the service 
import { Text2speechService } from 'speech-synthesis-text-to-speech'

constructor(
  private text2speechService:Text2speechService
) {}

Using the library functions


  //Config variable
   configObj = {
      voiceObj: voices[1], //selected voice object
      pitch: 1, // Pitch in number
      rate: 1 // Rate in number
    }
  // Text as string
  text:string = 'This is the text to speech example'
  
  // Start speech
  this.text2speechService.StartSynthesis(this.text,this.configObj);

  // Pause speech
  this.text2speechService.pause();

  // Resume speech
  this.text2speechService.resume();

  //Stop speech
  this.text2speechService.stop();


Future Releases

  • Event Handlers
  • Dynamic voice, pitch and rate changes without audio break
  • Support for lower versions

Keywords

speech synthesis

FAQs

Package last updated on 31 Oct 2021

Did you know?

Socket

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