Julius 4.1.5
|
00001 00018 /* 00019 * Copyright (c) 1991-2007 Kawahara Lab., Kyoto University 00020 * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology 00021 * Copyright (c) 2005-2007 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 USE_NETAUDIO 00067 fprintf(strm, " DATLink/NetAudio"); 00068 #endif 00069 fprintf(strm, "\n"); 00070 fprintf(strm, " wavefile formats : %s\n", AUDIO_FORMAT_DESC); 00071 fprintf(strm, " max. length of an input : %d samples, %d words\n", MAXSPEECHLEN, MAXSEQNUM); 00072 } 00073 00079 void 00080 confout_lm(FILE *strm) 00081 { 00082 fprintf(strm, " - Language Model\n"); 00083 #ifdef CLASS_NGRAM 00084 fprintf(strm, " class N-gram support : yes\n"); 00085 #else 00086 fprintf(strm, " class N-gram support : no\n"); 00087 #endif 00088 #ifdef WORDS_INT 00089 fprintf(strm, " word id unit : integer (%d bytes)\n", sizeof(WORD_ID)); 00090 #else 00091 fprintf(strm, " word id unit : short (%d bytes)\n", sizeof(WORD_ID)); 00092 #endif 00093 } 00094 00100 void 00101 confout_am(FILE *strm) 00102 { 00103 fprintf(strm, " - Acoustic Model\n"); 00104 /* 00105 * #ifdef MULTIPATH_VERSION 00106 * fprintf(strm, " multi-path HMM handling : yes\n"); 00107 * #else 00108 * fprintf(strm, " multi-path HMM handling : no\n"); 00109 * #endif 00110 */ 00111 fprintf(strm, " multi-path treatment : autodetect\n"); 00112 #ifdef ENABLE_MSD 00113 fprintf(strm, " MSD-HMM support : yes\n"); 00114 #endif 00115 } 00116 00122 void 00123 confout_lib(FILE *strm) 00124 { 00125 fprintf(strm, " - External library\n"); 00126 fprintf(strm, " file decompression by : %s\n", GZIP_READING_DESC); 00127 } 00128 00134 void 00135 confout_process(FILE *strm) 00136 { 00137 fprintf(strm, " - Process hangling\n"); 00138 #ifdef FORK_ADINNET 00139 fprintf(strm, " fork on adinnet input : yes\n"); 00140 #else 00141 fprintf(strm, " fork on adinnet input : no\n"); 00142 #endif 00143 } 00144 00150 void 00151 confout(FILE *strm) 00152 { 00153 confout_version(strm); 00154 confout_audio(strm); 00155 confout_lm(strm); 00156 confout_am(strm); 00157 confout_lib(strm); 00158 confout_process(strm); 00159 }