Spaces:
Running
Running
File size: 341 Bytes
2bb8806 | 1 2 3 4 5 6 7 8 9 10 11 12 | /**
* Public phonemize API — delegates to the espeak-ng WASM worker.
*/
import { phonemizeByWord as _phonemizeByWord } from "./espeakng/phonemizer";
export interface PhonemizedWord { word: string; ipa: string; }
export async function phonemizeByWord(text: string): Promise<PhonemizedWord[]> {
return _phonemizeByWord(text, "mr");
}
|