1.0.8 • Published 3 years ago

@mathquis/node-picotts v1.0.8

Weekly downloads
9
License
ISC
Repository
github
Last release
3 years ago

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
})
1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago