bugfix: Add flite_g2p.h for esp32

This commit is contained in:
xysun 2023-11-10 16:21:02 +08:00
parent 742fb70dc1
commit 197df22905
7 changed files with 31 additions and 10 deletions

View File

@ -52,6 +52,7 @@ typedef struct{
typedef struct {
char *string; // command string
char *phonemes; // command phonemes, if applicable
int16_t command_id; // the command id
float threshold; // trigger threshold, default: 0
int16_t *wave; // prompt wave data of the phrase

20
include/esp32/flite_g2p.h Normal file
View File

@ -0,0 +1,20 @@
#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(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(char *graphemes, int map_phonemes);
#endif

Binary file not shown.

Binary file not shown.

BIN
lib/esp32/libflite_g2p.a Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.