New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mathquis/node-picotts

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathquis/node-picotts

TTS engine using SVOX PicoTTS

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

node-picotts

Build Status npm version

Installation

npm i @mathquis/node-picotts

Usage

const PicoTTS = require('node-picotts')

const engine = new PicoTTS({
	ta_file: 'lang/fr-FR_ta.bin',
	sg_file: 'lang/fr-FR_nk0_sg.bin',
	volume: 90, // default 100
	speed: 95, // default 100
	pitch: 105, // default 100
	debug: false // If true, wil print logs to stdout
})

engine
	.on('error', err => {
		// Handle error during synthesis
	})
	.on('data', (chunk, isLastChunk) => {
		// 16 bits samples buffer
	})
	.on('end', () => {
		// Synthesis is done
	})

engine.speak('Bonjour', {
	volume: 95,
	pitch: 102,
	speed: 100
})

Keywords

tts

FAQs

Package last updated on 15 Feb 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