mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
Merge branch 'bugfix/flite_g2p' into 'master'
bugfix: Add flite_g2p.h for esp32 See merge request speech-recognition-framework/esp-sr!73
This commit is contained in:
commit
b736620d84
@ -52,6 +52,7 @@ typedef struct{
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *string; // command string
|
char *string; // command string
|
||||||
|
char *phonemes; // command phonemes, if applicable
|
||||||
int16_t command_id; // the command id
|
int16_t command_id; // the command id
|
||||||
float threshold; // trigger threshold, default: 0
|
float threshold; // trigger threshold, default: 0
|
||||||
int16_t *wave; // prompt wave data of the phrase
|
int16_t *wave; // prompt wave data of the phrase
|
||||||
|
|||||||
20
include/esp32/flite_g2p.h
Normal file
20
include/esp32/flite_g2p.h
Normal 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
BIN
lib/esp32/libflite_g2p.a
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user