mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
20 lines
496 B
C
20 lines
496 B
C
#ifndef __FLITE_G2P_H__
|
|
#define __FLITE_G2P_H__
|
|
|
|
typedef struct {
|
|
int num_phonemes;
|
|
int phoneme_size;
|
|
char **phonemes;
|
|
} flite_g2p_result;
|
|
|
|
void flite_g2p_result_free(flite_g2p_result *result);
|
|
|
|
flite_g2p_result *flite_g2p_get_result(const char *grapheme);
|
|
|
|
void flite_g2p_result_print_string(flite_g2p_result *result, int map_phonemes);
|
|
|
|
char *flite_g2p_result_get_string(flite_g2p_result *result, int map_phonemes);
|
|
|
|
char *flite_g2p(const char *graphemes, int map_phonemes);
|
|
|
|
#endif |