Julius 4.2
|
00001 00029 /* 00030 * Copyright (c) 1991-2011 Kawahara Lab., Kyoto University 00031 * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology 00032 * Copyright (c) 2005-2011 Julius project team, Nagoya Institute of Technology 00033 * All rights reserved 00034 */ 00035 00036 /* speech input limitation */ 00037 #ifndef __SENT_SPEECH__ 00038 #define __SENT_SPEECH__ 00039 00040 #include <sent/adin.h> 00041 00050 #define MAXSEQNUM 150 00051 00065 #define MAXSPEECHLEN 320000 00066 00079 #define INPUT_DELAY_SEC 8 00080 00098 #define OUTPROB_CACHE_PERIOD 100 00099 00100 00101 #ifdef __cplusplus 00102 extern "C" { 00103 #endif 00104 00106 #define period2freq(A) (10000000.0 / (float)(A)) 00107 00108 #define freq2period(A) (10000000.0 / (float)(A)) 00109 00110 /* for anlz/wrsamp.c */ 00111 int wrsamp(int fd, SP16 *buf, int len); 00112 00113 /* for anlz/wrwav.c */ 00114 FILE *wrwav_open(char *filename, int sfreq); 00115 boolean wrwav_data(FILE *fp, SP16 *buf, int len); 00116 boolean wrwav_close(FILE *fp); 00117 00118 /* for an;z/strip.c */ 00119 int strip_zero(SP16 a[], int len); 00120 00121 #ifdef __cplusplus 00122 } 00123 #endif 00124 00125 #endif /* __SENT_SPEECH__ */