HomeAboutCodePastes
#include <espeak-ng/speak_lib.h>
int main() {
    espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 0, NULL, 0);
    char *str = "hello world";
    const void  *ptr = str;
    printf("%s", espeak_TextToPhonemes(&ptr, espeakCHARS_AUTO, 0));
    return 0;
}

plain