| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
|
|
||
| myincludedir = $(pkgincludedir)/include | ||
|
|
||
| FLITEHEADERS = cst_alloc.h \ | ||
| cst_cart.h cst_cg.h cst_endian.h \ | ||
| cst_error.h cst_features.h cst_ffeatures.h \ | ||
| cst_file.h cst_item.h \ | ||
| cst_lexicon.h cst_lts.h \ | ||
| cst_phoneset.h cst_regex.h \ | ||
| cst_relation.h cst_string.h cst_synth.h \ | ||
| cst_tokenstream.h cst_track.h \ | ||
| cst_utt_utils.h cst_utterance.h \ | ||
| cst_val.h cst_val_const.h cst_val_defs.h \ | ||
| cst_voice.h cst_wave.h \ | ||
| flite.h HTS_misc.h pstreamchol.h | ||
| HTSENGINEHEADERS = HTS_engine.h | ||
|
|
||
| BELLBIRDHEADERS = bell_audio.h bell_driver.h \ | ||
| bell_file.h bell_ff_sym.h bell_relation_sym.h | ||
|
|
||
| myinclude_HEADERS = $(FLITEHEADERS) \ | ||
| $(HTSENGINEHEADERS) \ | ||
| $(BELLBIRDHEADERS) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #ifndef _BELL_AUDIO_H__ | ||
| #define _BELL_AUDIO_H__ | ||
|
|
||
| #ifdef HAVE_CONFIG_H | ||
| #include "config.h" | ||
| #endif | ||
|
|
||
| #include "cst_wave.h" | ||
|
|
||
| bell_boolean play_wave(cst_wave *w); | ||
|
|
||
| #ifdef CST_AUDIO_ALSA | ||
| int audio_scheduler(); | ||
| int buffer_wave(cst_wave *w, int fd); | ||
| void audio_scheduler_close(int fd); | ||
| #endif | ||
|
|
||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #ifndef __BELL_HTS_ENGINE_H__ | ||
| #define __BELL_HTS_ENGINE_H__ | ||
|
|
||
| #include "HTS_engine.h" | ||
| #include "cst_voice.h" | ||
| #include "cst_tokenstream.h" | ||
|
|
||
| #define CLUSTERGENMODE 0 | ||
| #define HTSMODE 1 | ||
|
|
||
| float bell_file_to_speech(HTS_Engine * engine, const char *filename, cst_voice *voice, const char *outtype, const int voice_type); | ||
|
|
||
| float bell_hts_ts_to_speech(HTS_Engine * engine, cst_tokenstream *ts, cst_voice *voice, const char *outtype); | ||
|
|
||
| cst_voice * bell_voice_load(char *fn_name, const int voice_type, HTS_Engine * engine); | ||
| void bell_voice_unload(cst_voice *voice, const int voice_type, HTS_Engine * engine); | ||
|
|
||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| #ifndef _BELL_FF_SYM_H_ | ||
| #define _BELL_FF_SYM_H_ | ||
|
|
||
| // These are compact forms of featfunc symbols | ||
| // Using these definitions improves performance of internal_ff | ||
| // The values themselves are irrelevant it is only required they are unique | ||
| // and a single byte | ||
| // The value \x00 is unavailable as it is the string terminator | ||
|
|
||
| #define PH_VC "\x01" | ||
| #define PH_VLNG "\x02" | ||
| #define PH_VHEIGHT "\x03" | ||
| #define PH_VFRONT "\x04" | ||
| #define PH_VRND "\x05" | ||
| #define PH_CTYPE "\x06" | ||
| #define PH_CPLACE "\x07" | ||
| #define PH_CVOX "\x08" | ||
|
|
||
| #define LISP_CG_DURATION "\x10" | ||
| #define LISP_CG_STATE_POS "\x11" | ||
| #define LISP_CG_STATE_PLACE "\x12" | ||
| #define LISP_CG_STATE_INDEX "\x13" | ||
| #define LISP_CG_STATE_RINDEX "\x14" | ||
| #define LISP_CG_PHONE_PLACE "\x15" | ||
| #define LISP_CG_PHONE_INDEX "\x16" | ||
| #define LISP_CG_PHONE_RINDEX "\x17" | ||
|
|
||
| #define LISP_CG_POSITION_IN_PHRASEP "\x20" | ||
| #define LISP_CG_FIND_PHRASE_NUMBER "\x21" | ||
| #define LISP_IS_PAU "\x22" | ||
|
|
||
| #define WORD_NUMSYLS "\x30" | ||
| #define WORD_BREAK "\x31" | ||
| #define WORD_PUNC "\x32" | ||
| #define SSYL_IN "\x33" | ||
| #define SSYL_OUT "\x34" | ||
| #define SYL_IN "\x35" | ||
| #define SYL_OUT "\x36" | ||
| #define SYL_BREAK "\x37" | ||
| #define LISP_CG_BREAK "\x38" | ||
| #define OLD_SYL_BREAK "\x39" | ||
| #define SYL_ONSETSIZE "\x3a" | ||
| #define SYL_CODASIZE "\x3b" | ||
| #define ACCENTED "\x3c" | ||
| #define ASYL_IN "\x3d" | ||
| #define ASYL_OUT "\x3e" | ||
| #define LISP_CODA_FRIC "\x3f" | ||
| #define LISP_ONSET_FRIC "\x40" | ||
| #define LISP_CODA_STOP "\x41" | ||
| #define LISP_ONSET_STOP "\x42" | ||
| #define LISP_CODA_NASAL "\x43" | ||
| #define LISP_ONSET_NASAL "\x44" | ||
| #define LISP_CODA_GLIDE "\x45" | ||
| #define LISP_ONSET_GLIDE "\x46" | ||
| #define SEG_ONSETCODA "\x47" | ||
| #define POS_IN_SYL "\x48" | ||
| #define POSITION_TYPE "\x49" | ||
| #define SUB_PHRASES "\x4a" | ||
| #define LAST_ACCENT "\x4b" | ||
| #define NEXT_ACCENT "\x4c" | ||
| #define SYL_FINAL "\x4d" | ||
| #define SEGMENT_DURATION "\x4e" | ||
| #define LISP_CG_SYL_RATIO "\x4f" | ||
| #define LISP_CG_PHRASE_RATIO "\x50" | ||
| #define LISP_CG_SYLS_IN_PHRASE "\x51" | ||
| #define POS_IN_PHRASE "\x52" | ||
| #define POS_IN_WORD "\x53" | ||
| #define SYLLABLE_DURATION "\x54" | ||
| #define SYL_VOWEL "\x55" | ||
| #define SYL_NUMPHONES "\x56" | ||
|
|
||
| // en_US HTS symbols | ||
| #define LISP_DISTANCE_TO_P_STRESS "\x60" | ||
| #define LISP_DISTANCE_TO_N_STRESS "\x61" | ||
| #define LISP_DISTANCE_TO_P_ACCENT "\x62" | ||
| #define LISP_DISTANCE_TO_N_ACCENT "\x63" | ||
| #define WORDS_OUT "\x64" | ||
| #define HTS_CONTENT_WORDS_IN "\x65" | ||
| #define HTS_CONTENT_WORDS_OUT "\x66" | ||
| #define LISP_DISTANCE_TO_P_CONTENT "\x67" | ||
| #define LISP_DISTANCE_TO_N_CONTENT "\x68" | ||
| #define LISP_NUM_SYLS_IN_PHRASE "\x69" | ||
| #define LISP_NUM_WORDS_IN_PHRASE "\x6a" | ||
| #define LISP_TOTAL_SYLS "\x6b" | ||
| #define LISP_TOTAL_WORDS "\x6c" | ||
| #define LISP_TOTAL_PHRASES "\x6d" | ||
|
|
||
| // en_US symbols | ||
| #define GPOS "\x70" | ||
| #define NUM_DIGITS "\x71" | ||
| #define MONTH_RANGE "\x72" | ||
| #define TOKEN_POS_GUESS "\x73" | ||
| #define CONTENT_WORDS_IN "\x74" | ||
| #define CONTENT_WORDS_OUT "\x75" | ||
| #define LISP_CG_CONTENT_WORDS_IN_PHRASE "\x76" | ||
|
|
||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #ifndef __BELL_FILE_H__ | ||
| #define __BELL_FILE_H__ | ||
|
|
||
| cst_file bell_fopen(const char * filename, const char * mode); | ||
| int bell_fgetc(cst_file fh); | ||
| size_t bell_fwrite(const void *buf, size_t size, size_t count, cst_file fh); | ||
| size_t bell_fread(void *buf, size_t size, size_t count, cst_file fh); | ||
| off_t bell_ftello(cst_file fh); | ||
| int bell_fseeko(cst_file fh, off_t offset, int whence); | ||
| int bell_fclose(cst_file fh); | ||
| int bell_fprintf(cst_file fh, const char *fmt, ...); | ||
| int bell_snprintf(char *buf, size_t n, const char *fmt, ...); | ||
|
|
||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #ifndef __BELL_RELATION_SYM_H_ | ||
| #define __BELL_RELATION_SYM_H_ | ||
|
|
||
| // These are compact forms of utt_relation_create symbols | ||
| // Using these definitions improves performance of internal_ff | ||
| // The values themselves are irrelevant it is only required they are unique | ||
|
|
||
| #define TOKEN "\x01" | ||
| #define PHRASE "\x02" | ||
| #define SYLLABLE "\x03" | ||
| #define SYLSTRUCTURE "\x04" | ||
| #define SEGMENT "\x05" | ||
| #define WORD "\x06" | ||
|
|
||
| #define HMMSTATE "\x10" | ||
| #define SEGSTATE "\x11" | ||
| #define MCEP_LINK "\x12" | ||
| #define MCEP "\x13" | ||
|
|
||
| #endif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| /* include/config.h.in. Generated from configure.ac by autoheader. */ | ||
|
|
||
| /* Use ALSA sound driver */ | ||
| #undef CST_AUDIO_ALSA | ||
|
|
||
| /* Don't use a sound driver */ | ||
| #undef CST_AUDIO_NONE | ||
|
|
||
| /* Define to 1 if you have the <dlfcn.h> header file. */ | ||
| #undef HAVE_DLFCN_H | ||
|
|
||
| /* Define to 1 if you have the <inttypes.h> header file. */ | ||
| #undef HAVE_INTTYPES_H | ||
|
|
||
| /* Define to 1 if you have the <memory.h> header file. */ | ||
| #undef HAVE_MEMORY_H | ||
|
|
||
| /* Define to 1 if you have the <stdint.h> header file. */ | ||
| #undef HAVE_STDINT_H | ||
|
|
||
| /* Define to 1 if you have the <stdlib.h> header file. */ | ||
| #undef HAVE_STDLIB_H | ||
|
|
||
| /* Define to 1 if you have the <strings.h> header file. */ | ||
| #undef HAVE_STRINGS_H | ||
|
|
||
| /* Define to 1 if you have the <string.h> header file. */ | ||
| #undef HAVE_STRING_H | ||
|
|
||
| /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
| #undef HAVE_SYS_STAT_H | ||
|
|
||
| /* Define to 1 if you have the <sys/types.h> header file. */ | ||
| #undef HAVE_SYS_TYPES_H | ||
|
|
||
| /* Define to 1 if you have the <unistd.h> header file. */ | ||
| #undef HAVE_UNISTD_H | ||
|
|
||
| /* Define to the sub-directory in which libtool stores uninstalled libraries. | ||
| */ | ||
| #undef LT_OBJDIR | ||
|
|
||
| /* Name of package */ | ||
| #undef PACKAGE | ||
|
|
||
| /* Define to the address where bug reports for this package should be sent. */ | ||
| #undef PACKAGE_BUGREPORT | ||
|
|
||
| /* Define to the full name of this package. */ | ||
| #undef PACKAGE_NAME | ||
|
|
||
| /* Define to the full name and version of this package. */ | ||
| #undef PACKAGE_STRING | ||
|
|
||
| /* Define to the one symbol short name of this package. */ | ||
| #undef PACKAGE_TARNAME | ||
|
|
||
| /* Define to the home page for this package. */ | ||
| #undef PACKAGE_URL | ||
|
|
||
| /* Define to the version of this package. */ | ||
| #undef PACKAGE_VERSION | ||
|
|
||
| /* Define to 1 if you have the ANSI C header files. */ | ||
| #undef STDC_HEADERS | ||
|
|
||
| /* Version number of package */ | ||
| #undef VERSION |