WebAssembly port of the GnuSpeech articulatory speech synthesizer.
npm install @echogarden/gnuspeech-wasm
Calling synthesize returns a WAVE format buffer:
import { writeFile } from 'fs/promises'
import { synthesize } from '@echogarden/gnuspeech-wasm'
const { audioData } = await synthesize('Hello World!', {
	voice: 'male',
	controlRate: 250,
	tempo: 1.0,
})
await writeFile('out.wav', audioData)MIT