Skip to main content

Crate espeak_ng_data_phonemes

Crate espeak_ng_data_phonemes 

Source
Expand description

Core eSpeak NG phoneme data, embedded at compile time.

Contains the binary phoneme tables, language definitions, and voice definitions shared by all languages:

FileDescription
phondataFormant frame sequences and WAV samples
phonindexPhoneme bytecode index
phontabPhoneme name/attribute table
intonationsIntonation contour data
lang/*Language definition files (145 languages)
voices/*Voice definition files (200 voices)
mbrola_ph/*MBROLA phoneme mappings

§Usage

use std::path::Path;

// Install all files into a directory (e.g. a temp dir)
let data_dir = Path::new("/tmp/espeak-data");
std::fs::create_dir_all(data_dir).unwrap();
espeak_ng_data_phonemes::install(data_dir).unwrap();

Statics§

ALL_FILES
All data files embedded in this crate.

Functions§

install
Install all embedded data files into dest_dir.