Spaces:
Running
Running
| /** | |
| * 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"); | |
| } | |