Package Exports
- @mathquis/node-picotts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mathquis/node-picotts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-picotts
Installation
npm i @mathquis/node-picottsUsage
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
})