root / trunk / data / flite / arrays.diff
| Revision 145, 4.6 kB (checked in by saurik, 4 months ago) |
|---|
-
lang/cmulex/cmu_lex.c
diff -ru flite-1.3-release/lang/cmulex/cmu_lex.c flite-1.3-release+iPhone/lang/cmulex/cmu_lex.c
old new 42 42 43 43 extern const int cmu_lex_entry[]; 44 44 extern const unsigned char cmu_lex_data[]; 45 extern const unsigned char cmu_lex_data_[]; 45 46 extern const int cmu_lex_num_entries; 46 47 extern const int cmu_lex_num_bytes; 47 48 extern const char * const cmu_lex_phone_table[54]; … … 252 253 #ifdef CST_NO_STATIC_LEX 253 254 /* cmu_lex.data will be set elsewhere */ 254 255 #else 255 cmu_lex.data = cmu_lex_data; 256 cmu_lex.data = malloc(207610 + 209306); 257 memcpy(cmu_lex.data, cmu_lex_data, 207610); 258 memcpy(cmu_lex.data + 207610, cmu_lex_data_, 209306); 256 259 #endif 257 260 cmu_lex.num_bytes = cmu_lex_num_bytes; 258 261 cmu_lex.phone_table = (char **) cmu_lex_phone_table; -
lang/cmulex/Makefile
diff -ru flite-1.3-release/lang/cmulex/Makefile flite-1.3-release+iPhone/lang/cmulex/Makefile
old new 40 40 ALL_DIRS= 41 41 H = cmu_lts_model.h cmulex.h 42 42 SRCS = cmu_lts_rules.c cmu_lts_model.c \ 43 cmu_lex.c cmu_lex_entries.c cmu_lex_data.c 43 cmu_lex_data-0.c cmu_lex_data-1.c \ 44 cmu_lex.c cmu_lex_entries.c 44 45 LEX_DATA_INCLUDES = cmu_lex_data_raw.c cmu_lex_num_bytes.c \ 45 46 cmu_lex_phones_huff_table.c cmu_lex_entries_huff_table.c 46 47 -
lang/cmu_us_kal/cmu_us_kal.c
diff -ru flite-1.3-release/lang/cmu_us_kal/cmu_us_kal.c flite-1.3-release+iPhone/lang/cmu_us_kal/cmu_us_kal.c
old new 46 46 static cst_utterance *cmu_us_kal_postlex(cst_utterance *u); 47 47 extern cst_diphone_db cmu_us_kal_db; 48 48 49 extern const unsigned char cmu_us_kal_res[]; 50 extern const unsigned char cmu_us_kal_res_1_[]; 51 extern const unsigned char cmu_us_kal_res_2_[]; 52 extern const unsigned char cmu_us_kal_res_3_[]; 53 extern const unsigned char cmu_us_kal_res_4_[]; 54 49 55 cst_voice *cmu_us_kal_diphone = NULL; 50 56 51 57 cst_voice *register_cmu_us_kal(const char *voxdir) 52 58 { 59 unsigned char *residuals = malloc(307705 + 302489 + 304535 + 299252 + 301901); 60 memcpy(residuals, cmu_us_kal_res, 307705); 61 memcpy(residuals + 307705, cmu_us_kal_res_1_, 302489); 62 memcpy(residuals + 307705 + 302489, cmu_us_kal_res_2_, 304535); 63 memcpy(residuals + 307705 + 302489 + 304535, cmu_us_kal_res_3_, 299252); 64 memcpy(residuals + 307705 + 302489 + 304535 + 299252, cmu_us_kal_res_4_, 301901); 65 * (unsigned char **) &cmu_us_kal_db.sts->residuals = residuals; 66 53 67 cst_voice *v = new_voice(); 54 68 55 69 /* Set up basic values for synthesizing with this voice */ -
lang/cmu_us_kal/cmu_us_kal_diphone.c
diff -ru flite-1.3-release/lang/cmu_us_kal/cmu_us_kal_diphone.c flite-1.3-release+iPhone/lang/cmu_us_kal/cmu_us_kal_diphone.c
old new 5 5 #include "cst_diphone.h" 6 6 7 7 extern const unsigned short cmu_us_kal_lpc[]; 8 extern const unsigned char cmu_us_kal_res[];9 8 extern const unsigned int cmu_us_kal_resi[]; 10 9 11 10 … … 15 14 0,0,0, 16 15 #else 17 16 cmu_us_kal_lpc, 18 cmu_us_kal_res,17 0, 19 18 cmu_us_kal_resi, 20 19 #endif 21 20 17614, -
lang/cmu_us_kal/Makefile
diff -ru flite-1.3-release/lang/cmu_us_kal/Makefile flite-1.3-release+iPhone/lang/cmu_us_kal/Makefile
old new 41 41 H = voxdefs.h 42 42 SRCS = cmu_us_kal_diphone.c cmu_us_kal.c \ 43 43 cmu_us_kal_lpc.c \ 44 cmu_us_kal_res.c \ 44 cmu_us_kal_res-0.c \ 45 cmu_us_kal_res-1.c \ 46 cmu_us_kal_res-2.c \ 47 cmu_us_kal_res-3.c \ 48 cmu_us_kal_res-4.c \ 45 49 cmu_us_kal_residx.c 46 50 OBJS = $(SRCS:.c=.o) 47 51 SCM= -
lang/Makefile
diff -ru flite-1.3-release/lang/Makefile flite-1.3-release+iPhone/lang/Makefile
old new 36 36 ########################################################################### 37 37 TOP=.. 38 38 DIRNAME=lang 39 BUILD_DIRS = usenglish cmulex cmu_us_kal cmu_time_awb cmu_us_kal1639 BUILD_DIRS = usenglish cmulex cmu_us_kal cmu_time_awb 40 40 ALL_DIRS= $(BUILD_DIRS) 41 41 FILES = Makefile $(SCM) $(SRCS) 42 42
Note: See TracBrowser
for help on using the browser.
