mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
31 lines
668 B
C
31 lines
668 B
C
#ifndef _ESP_TTS_PARSER_H_
|
|
#define _ESP_TTS_PARSER_H_
|
|
|
|
#include "stdlib.h"
|
|
#include "esp_tts_voice.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
typedef struct {
|
|
int *syll_idx;
|
|
int syll_num;
|
|
int total_num;
|
|
esp_tts_voice_t *voice;
|
|
}esp_tts_utt_t;
|
|
|
|
esp_tts_utt_t* esp_tts_parser_chinese (const char* str, esp_tts_voice_t *voice);
|
|
|
|
esp_tts_utt_t* esp_tts_parser_money(char *play_tag, int yuan, int jiao, int fen, esp_tts_voice_t *voice);
|
|
|
|
esp_tts_utt_t* esp_tts_parser_pinyin(char* pinyin, esp_tts_voice_t *voice);
|
|
|
|
esp_tts_utt_t* esp_tts_utt_alloc(int syll_num, esp_tts_voice_t *voice);
|
|
|
|
void esp_tts_utt_free(esp_tts_utt_t *utt);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |