Skip to content

Rust bindings for espeak-ng exposed to Node via N-API

Notifications You must be signed in to change notification settings

SpeechifyInc/espeak-rs

Repository files navigation

espeak-ng-rs

Rust bindings for espeak-ng exposed to Node via N-API. The projects serves to provide improved phonemization performance by directly interacting with espeak instead of spawning a process for each phonemization request. Performance on a 3700x shows about 1ms/50 chars/thread.

Usage

import { EspeakAddon } from 'espeak-ng-rs'

const espeak = EspeakAddon.default()
const phonemes = espeak.textToPhonemes('Hello world')

Building

docker build . --output=. --target=binaries or

npm i
npm run build