Package Exports
- @echogarden/gnuspeech-wasm
- @echogarden/gnuspeech-wasm/dist/GnuSpeech.js
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 (@echogarden/gnuspeech-wasm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
GnuSpeech (WebAssembly port)
WebAssembly port of the GnuSpeech articulatory speech synthesizer
.
Installation
npm install @echogarden/gnuspeech-wasm
Usage example
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)
License
MIT