UNPKG

text2wav

Version:

Self-contained multilingual TTS speech synthesizer for Node.js in pure js

12 lines 304 B
(async () => { const assert = require('assert') const text2Wav = require('./index.js') let out = await text2Wav('"test", I say.', { voice: 'en', punct: '"', }) assert.equal(out[0], 82) //R assert.equal(out[1], 73) //I assert.equal(out[2], 70) //F assert.equal(out[3], 70) //F })()