| #include <espeak-ng/speak_lib.h> | #include <espeak-ng/speak_lib.h> | ||||
| #include <espeak-ng/encoding.h> | #include <espeak-ng/encoding.h> | ||||
| #include "readclause.h" | |||||
| #include "readclause.h" | |||||
| #include "synthdata.h" | |||||
| #include "error.h" | #include "error.h" | ||||
| #include "phoneme.h" | #include "phoneme.h" |
| #include <espeak-ng/encoding.h> | #include <espeak-ng/encoding.h> | ||||
| #include "intonation.h" | #include "intonation.h" | ||||
| #include "synthdata.h" | |||||
| #include "phoneme.h" | #include "phoneme.h" | ||||
| #include "voice.h" | #include "voice.h" |
| #include "dictionary.h" | #include "dictionary.h" | ||||
| #include "numbers.h" | #include "numbers.h" | ||||
| #include "readclause.h" | #include "readclause.h" | ||||
| #include "synthdata.h" | |||||
| #include "phoneme.h" | #include "phoneme.h" | ||||
| #include "voice.h" | #include "voice.h" |
| #define PH(c1, c2) (c2<<8)+c1 // combine two characters into an integer for phoneme name | #define PH(c1, c2) (c2<<8)+c1 // combine two characters into an integer for phoneme name | ||||
| #define PH3(c1, c2, c3) (c3<<16)+(c2<<8)+c1 | #define PH3(c1, c2, c3) (c3<<16)+(c2<<8)+c1 | ||||
| #define PhonemeCode2(c1, c2) PhonemeCode((c2<<8)+c1) | #define PhonemeCode2(c1, c2) PhonemeCode((c2<<8)+c1) | ||||
| int LookupPhonemeString(const char *string); | |||||
| int PhonemeCode(unsigned int mnem); | |||||
| extern const char *WordToString(unsigned int word); | extern const char *WordToString(unsigned int word); | ||||
| #include "dictionary.h" | #include "dictionary.h" | ||||
| #include "readclause.h" | #include "readclause.h" | ||||
| #include "synthdata.h" | |||||
| #include "error.h" | #include "error.h" | ||||
| #include "speech.h" | #include "speech.h" |
| #include "dictionary.h" | #include "dictionary.h" | ||||
| #include "readclause.h" | #include "readclause.h" | ||||
| #include "synthdata.h" | |||||
| #include "speech.h" | #include "speech.h" | ||||
| #include "phoneme.h" | #include "phoneme.h" |
| { | { | ||||
| #endif | #endif | ||||
| void InterpretPhoneme(Translator *tr, int control, PHONEME_LIST *plist, PHONEME_DATA *phdata, WORD_PH_DATA *worddata); | |||||
| void InterpretPhoneme2(int phcode, PHONEME_DATA *phdata); | |||||
| void InterpretPhoneme(Translator *tr, | |||||
| int control, | |||||
| PHONEME_LIST *plist, | |||||
| PHONEME_DATA *phdata, | |||||
| WORD_PH_DATA *worddata); | |||||
| void InterpretPhoneme2(int phcode, | |||||
| PHONEME_DATA *phdata); | |||||
| void FreePhData(void); | |||||
| unsigned char *GetEnvelope(int index); | |||||
| espeak_ng_STATUS LoadPhData(int *srate, espeak_ng_ERROR_CONTEXT *context); | |||||
| void LoadConfig(void); | |||||
| int LookupPhonemeString(const char *string); | |||||
| int LookupPhonemeTable(const char *name); | |||||
| frameref_t *LookupSpect(PHONEME_TAB *this_ph, | |||||
| int which, | |||||
| FMT_PARAMS *fmt_params, | |||||
| int *n_frames, | |||||
| PHONEME_LIST *plist); | |||||
| int NumInstnWords(unsigned short *prog); | |||||
| int PhonemeCode(unsigned int mnem); | |||||
| void SelectPhonemeTable(int number); | |||||
| int SelectPhonemeTableName(const char *name); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } |
| extern int mbrola_delay; | extern int mbrola_delay; | ||||
| extern char mbrola_name[20]; | extern char mbrola_name[20]; | ||||
| // from synthdata file | |||||
| unsigned int LookupSound(PHONEME_TAB *ph1, PHONEME_TAB *ph2, int which, int *match_level, int control); | |||||
| frameref_t *LookupSpect(PHONEME_TAB *this_ph, int which, FMT_PARAMS *fmt_params, int *n_frames, PHONEME_LIST *plist); | |||||
| void FreePhData(void); | |||||
| unsigned char *LookupEnvelope(int ix); | |||||
| espeak_ng_STATUS LoadPhData(int *srate, espeak_ng_ERROR_CONTEXT *context); | |||||
| void SynthesizeInit(void); | void SynthesizeInit(void); | ||||
| int Generate(PHONEME_LIST *phoneme_list, int *n_ph, bool resume); | int Generate(PHONEME_LIST *phoneme_list, int *n_ph, bool resume); | ||||
| void MakeWave2(PHONEME_LIST *p, int n_ph); | void MakeWave2(PHONEME_LIST *p, int n_ph); | ||||
| int SpeakNextClause(int control); | int SpeakNextClause(int control); | ||||
| void SetSpeed(int control); | void SetSpeed(int control); | ||||
| void SetEmbedded(int control, int value); | void SetEmbedded(int control, int value); | ||||
| void SelectPhonemeTable(int number); | |||||
| int SelectPhonemeTableName(const char *name); | |||||
| int FormantTransition2(frameref_t *seq, int *n_frames, unsigned int data1, unsigned int data2, PHONEME_TAB *other_ph, int which); | int FormantTransition2(frameref_t *seq, int *n_frames, unsigned int data1, unsigned int data2, PHONEME_TAB *other_ph, int which); | ||||
| void Write4Bytes(FILE *f, int value); | void Write4Bytes(FILE *f, int value); | ||||
| int DoSample3(PHONEME_DATA *phdata, int length_mod, int amp); | int DoSample3(PHONEME_DATA *phdata, int length_mod, int amp); | ||||
| int DoSpect2(PHONEME_TAB *this_ph, int which, FMT_PARAMS *fmt_params, PHONEME_LIST *plist, int modulation); | int DoSpect2(PHONEME_TAB *this_ph, int which, FMT_PARAMS *fmt_params, PHONEME_LIST *plist, int modulation); | ||||
| int PauseLength(int pause, int control); | int PauseLength(int pause, int control); | ||||
| int LookupPhonemeTable(const char *name); | |||||
| unsigned char *GetEnvelope(int index); | |||||
| int NumInstnWords(unsigned short *prog); | |||||
| void InitBreath(void); | void InitBreath(void); | ||||
| #include "numbers.h" | #include "numbers.h" | ||||
| #include "phonemelist.h" | #include "phonemelist.h" | ||||
| #include "readclause.h" | #include "readclause.h" | ||||
| #include "synthdata.h" | |||||
| #include "speech.h" | #include "speech.h" | ||||
| #include "phoneme.h" | #include "phoneme.h" |
| extern int (*phoneme_callback)(const char *); | extern int (*phoneme_callback)(const char *); | ||||
| extern void SetLengthMods(Translator *tr, int value); | extern void SetLengthMods(Translator *tr, int value); | ||||
| void LoadConfig(void); | |||||
| #define LEADING_2_BITS 0xC0 // 0b11000000 | #define LEADING_2_BITS 0xC0 // 0b11000000 | ||||
| #define UTF8_TAIL_BITS 0x80 // 0b10000000 | #define UTF8_TAIL_BITS 0x80 // 0b10000000 | ||||
| #include "dictionary.h" | #include "dictionary.h" | ||||
| #include "readclause.h" | #include "readclause.h" | ||||
| #include "synthdata.h" | |||||
| #include "speech.h" | #include "speech.h" | ||||
| #include "phoneme.h" | #include "phoneme.h" |