Browse Source

headers: continue with synthdata.h

master
Juho Hiltunen 7 years ago
parent
commit
9012f3f0bf

+ 2
- 1
src/libespeak-ng/compiledata.c View File

#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"

+ 1
- 0
src/libespeak-ng/intonation.c View File

#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"

+ 1
- 0
src/libespeak-ng/numbers.c View File

#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"

+ 0
- 2
src/libespeak-ng/phoneme.h View File

#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);



+ 1
- 0
src/libespeak-ng/readclause.c View File



#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"

+ 1
- 0
src/libespeak-ng/speech.c View File



#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"

+ 25
- 2
src/libespeak-ng/synthdata.h View File

{ {
#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
} }

+ 0
- 13
src/libespeak-ng/synthesize.h View File

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);



+ 1
- 0
src/libespeak-ng/translate.c View File

#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"

+ 0
- 2
src/libespeak-ng/translate.h View File

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



+ 1
- 0
src/libespeak-ng/voices.c View File



#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"

Loading…
Cancel
Save