Julius 4.2
|
00001 00018 /* 00019 * Copyright (c) 1991-2011 Kawahara Lab., Kyoto University 00020 * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology 00021 * Copyright (c) 2005-2011 Julius project team, Nagoya Institute of Technology 00022 * All rights reserved 00023 */ 00024 00025 #include <sent/stddefs.h> 00026 #include <sent/util.h> 00027 #include <sent/ngram2.h> 00028 #include <sent/speech.h> 00029 #include <sent/adin.h> 00030 00036 void 00037 confout_version(FILE *strm) 00038 { 00039 fprintf(strm, "version %s\n", LIBSENT_VERSION); 00040 } 00041 00047 void 00048 confout_audio(FILE *strm) 00049 { 00050 fprintf(strm, " - Audio input\n"); 00051 #ifdef USE_MIC 00052 fprintf(strm, " primary A/D-in driver : %s (%s)\n", AUDIO_API_NAME, AUDIO_API_DESC); 00053 #else 00054 fprintf(strm, " primary A/D-in driver : N/A\n"); 00055 #endif 00056 fprintf(strm, " available drivers :"); 00057 #ifdef HAS_ALSA 00058 fprintf(strm, " alsa"); 00059 #endif 00060 #ifdef HAS_OSS 00061 fprintf(strm, " oss"); 00062 #endif 00063 #ifdef HAS_ESD 00064 fprintf(strm, " esd"); 00065 #endif 00066 #ifdef HAS_PULSEAUDIO 00067 fprintf(strm, " pulseaudio"); 00068 #endif 00069 #ifdef USE_NETAUDIO 00070 fprintf(strm, " DATLink/NetAudio"); 00071 #endif 00072 fprintf(strm, "\n"); 00073 fprintf(strm, " wavefile formats : %s\n", AUDIO_FORMAT_DESC); 00074 fprintf(strm, " max. length of an input : %d samples, %d words\n", MAXSPEECHLEN, MAXSEQNUM); 00075 } 00076 00082 void 00083 confout_lm(FILE *strm) 00084 { 00085 fprintf(strm, " - Language Model\n"); 00086 #ifdef CLASS_NGRAM 00087 fprintf(strm, " class N-gram support : yes\n"); 00088 #else 00089 fprintf(strm, " class N-gram support : no\n"); 00090 #endif 00091 #ifdef WORDS_INT 00092 fprintf(strm, " word id unit : integer (%d bytes)\n", sizeof(WORD_ID)); 00093 #else 00094 fprintf(strm, " word id unit : short (%d bytes)\n", sizeof(WORD_ID)); 00095 #endif 00096 } 00097 00103 void 00104 confout_am(FILE *strm) 00105 { 00106 fprintf(strm, " - Acoustic Model\n"); 00107 /* 00108 * #ifdef MULTIPATH_VERSION 00109 * fprintf(strm, " multi-path HMM handling : yes\n"); 00110 * #else 00111 * fprintf(strm, " multi-path HMM handling : no\n"); 00112 * #endif 00113 */ 00114 fprintf(strm, " multi-path treatment : autodetect\n"); 00115 #ifdef ENABLE_MSD 00116 fprintf(strm, " MSD-HMM support : yes\n"); 00117 #endif 00118 } 00119 00125 void 00126 confout_lib(FILE *strm) 00127 { 00128 fprintf(strm, " - External library\n"); 00129 fprintf(strm, " file decompression by : %s\n", GZIP_READING_DESC); 00130 } 00131 00137 void 00138 confout_process(FILE *strm) 00139 { 00140 fprintf(strm, " - Process hangling\n"); 00141 #ifdef FORK_ADINNET 00142 fprintf(strm, " fork on adinnet input : yes\n"); 00143 #else 00144 fprintf(strm, " fork on adinnet input : no\n"); 00145 #endif 00146 } 00147 00153 void 00154 confout(FILE *strm) 00155 { 00156 confout_version(strm); 00157 confout_audio(strm); 00158 confout_lm(strm); 00159 confout_am(strm); 00160 confout_lib(strm); 00161 confout_process(strm); 00162 }