Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathquis/node-picotts
SVOX PicoTTS binding for Node.js
https://github.com/mathquis/node-picotts
nodejs online picotts stream svox-pico tts
Last synced: about 2 months ago
JSON representation
SVOX PicoTTS binding for Node.js
- Host: GitHub
- URL: https://github.com/mathquis/node-picotts
- Owner: mathquis
- Created: 2020-02-20T09:19:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T13:38:51.000Z (over 1 year ago)
- Last Synced: 2024-09-22T14:47:50.139Z (4 months ago)
- Topics: nodejs, online, picotts, stream, svox-pico, tts
- Language: C
- Homepage:
- Size: 5.41 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-picotts
[![Build Status](https://travis-ci.org/mathquis/node-picotts.svg?branch=master)](https://travis-ci.org/mathquis/node-picotts)
[![npm version](https://badge.fury.io/js/%40mathquis%2Fnode-picotts.svg)](https://badge.fury.io/js/%40mathquis%2Fnode-picotts)### Installation
```bash
npm i @mathquis/node-picotts
```### Usage
```javascript
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
})
```