| @@ -35,7 +35,8 @@ | |||
| #include <espeak-ng/speak_lib.h> | |||
| #include <espeak-ng/encoding.h> | |||
| #include "readclause.h" | |||
| #include "readclause.h" | |||
| #include "synthdata.h" | |||
| #include "error.h" | |||
| #include "phoneme.h" | |||
| @@ -29,6 +29,7 @@ | |||
| #include <espeak-ng/encoding.h> | |||
| #include "intonation.h" | |||
| #include "synthdata.h" | |||
| #include "phoneme.h" | |||
| #include "voice.h" | |||
| @@ -34,6 +34,7 @@ | |||
| #include "dictionary.h" | |||
| #include "numbers.h" | |||
| #include "readclause.h" | |||
| #include "synthdata.h" | |||
| #include "phoneme.h" | |||
| #include "voice.h" | |||
| @@ -282,8 +282,6 @@ typedef struct { | |||
| #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 PhonemeCode2(c1, c2) PhonemeCode((c2<<8)+c1) | |||
| int LookupPhonemeString(const char *string); | |||
| int PhonemeCode(unsigned int mnem); | |||
| extern const char *WordToString(unsigned int word); | |||
| @@ -38,6 +38,7 @@ | |||
| #include "dictionary.h" | |||
| #include "readclause.h" | |||
| #include "synthdata.h" | |||
| #include "error.h" | |||
| #include "speech.h" | |||
| @@ -50,6 +50,7 @@ | |||
| #include "dictionary.h" | |||
| #include "readclause.h" | |||
| #include "synthdata.h" | |||
| #include "speech.h" | |||
| #include "phoneme.h" | |||
| @@ -29,8 +29,31 @@ extern "C" | |||
| { | |||
| #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 | |||
| } | |||
| @@ -494,22 +494,12 @@ extern short echo_buf[N_ECHO_BUF]; | |||
| extern int mbrola_delay; | |||
| 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); | |||
| int Generate(PHONEME_LIST *phoneme_list, int *n_ph, bool resume); | |||
| void MakeWave2(PHONEME_LIST *p, int n_ph); | |||
| int SpeakNextClause(int control); | |||
| void SetSpeed(int control); | |||
| 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); | |||
| void Write4Bytes(FILE *f, int value); | |||
| @@ -555,9 +545,6 @@ void DoPhonemeMarker(int type, int char_posn, int length, char *name); | |||
| 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 PauseLength(int pause, int control); | |||
| int LookupPhonemeTable(const char *name); | |||
| unsigned char *GetEnvelope(int index); | |||
| int NumInstnWords(unsigned short *prog); | |||
| void InitBreath(void); | |||
| @@ -36,6 +36,7 @@ | |||
| #include "numbers.h" | |||
| #include "phonemelist.h" | |||
| #include "readclause.h" | |||
| #include "synthdata.h" | |||
| #include "speech.h" | |||
| #include "phoneme.h" | |||
| @@ -686,8 +686,6 @@ extern int (*uri_callback)(int, const char *, const char *); | |||
| extern int (*phoneme_callback)(const char *); | |||
| extern void SetLengthMods(Translator *tr, int value); | |||
| void LoadConfig(void); | |||
| #define LEADING_2_BITS 0xC0 // 0b11000000 | |||
| #define UTF8_TAIL_BITS 0x80 // 0b10000000 | |||
| @@ -40,6 +40,7 @@ | |||
| #include "dictionary.h" | |||
| #include "readclause.h" | |||
| #include "synthdata.h" | |||
| #include "speech.h" | |||
| #include "phoneme.h" | |||