1.0.1 • Published 5 years ago

node-mimic v1.0.1

Weekly downloads
10
License
BSD-3-Clause
Repository
-
Last release
5 years ago

node-mimic

Node.js wrappers for https://github.com/MycroftAI/mimic (voice synthesis software)

Building

The module assumes that you installed mimic somewhere where pkg-config can find it. Adjust PKG_CONFIG_PATH if you installed mimic in a non-standard location.

Then you can build the module with:

npm install

API:

const mimic = require('node-mimic');

mimic.loadVoice("path_to_voice_file.flitevox", (err, voice) => {
    voice.textToSpeech("Phrase to synthesize", (err, result) => {
        let sampleRate = result.sampleRate;
        let channels = result.numChannels;
        let buffer = result.buffer; // A standard Buffer, in PCM S16NE format
    });
});

Licence:

See LICENCE.

1.0.1

5 years ago

1.0.0

6 years ago

0.0.2

6 years ago

0.0.1

7 years ago