libsent/src/util/confout.c

Go to the documentation of this file.
00001 
00017 /*
00018  * Copyright (c) 1991-2006 Kawahara Lab., Kyoto University
00019  * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
00020  * Copyright (c) 2005-2006 Julius project team, Nagoya Institute of Technology
00021  * All rights reserved
00022  */
00023 
00024 #include <sent/stddefs.h>
00025 #include <sent/util.h>
00026 
00032 void
00033 confout_version(FILE *strm)
00034 {
00035   fprintf(strm, "Rev.%s\n", LIBSENT_VERSION);
00036 }
00037 
00043 void
00044 confout_audio(FILE *strm)
00045 {
00046   fprintf(strm, "- Audio input\n");
00047 #ifdef USE_MIC
00048   fprintf(strm, "    mic device API          : %s (%s)\n", AUDIO_API_NAME, AUDIO_API_DESC);
00049 #else
00050   fprintf(strm, "    mic device API          : N/A\n");
00051 #endif
00052   fprintf(strm, "    file format supported   : %s\n", AUDIO_FORMAT_DESC);
00053 #ifdef USE_NETAUDIO
00054   fprintf(strm, "    NetAudio                : yes\n");
00055 #else
00056   fprintf(strm, "    NetAudio                : no\n");
00057 #endif
00058 }
00059 
00065 void
00066 confout_lm(FILE *strm)
00067 {
00068   fprintf(strm, "- Language Model\n");
00069 #ifdef CLASS_NGRAM
00070   fprintf(strm, "    class N-gram            : yes\n");
00071 #else
00072   fprintf(strm, "    class N-gram            : no\n");
00073 #endif
00074 #ifdef WORDS_INT
00075   fprintf(strm, "    word id unit            : integer (%d bytes)\n", sizeof(WORD_ID));
00076 #else
00077   fprintf(strm, "    word id unit            : short (%d bytes)\n", sizeof(WORD_ID));
00078 #endif
00079 }
00080 
00086 void
00087 confout_am(FILE *strm)
00088 {
00089   fprintf(strm, "- Acoustic Model\n");
00090 #ifdef MULTIPATH_VERSION
00091   fprintf(strm, "    multi-path HMM handling : yes\n");
00092 #else
00093   fprintf(strm, "    multi-path HMM handling : no\n");
00094 #endif
00095 }
00096 
00102 void
00103 confout_lib(FILE *strm)
00104 {
00105   fprintf(strm, "- Libraries\n");
00106   fprintf(strm, "    file decompression by   : %s\n", GZIP_READING_DESC);
00107   fprintf(strm, "    charset conversion by   : %s\n", CHARSET_CONVERSION_DESC);
00108 }
00109 
00115 void
00116 confout_process(FILE *strm)
00117 {
00118   fprintf(strm, "- Process\n");
00119 #ifdef HAVE_PTHREAD
00120   fprintf(strm, "    use POSIX thread        : yes\n");
00121 #else
00122   fprintf(strm, "    use POSIX thread        : no\n");
00123 #endif
00124 #ifdef FORK_ADINNET
00125   fprintf(strm, "    fork on adinnet input   : yes\n");
00126 #else
00127   fprintf(strm, "    fork on adinnet input   : no\n");
00128 #endif
00129 }
00130 
00136 void
00137 confout(FILE *strm)
00138 {
00139   confout_version(strm);
00140   confout_audio(strm);
00141   confout_lm(strm);
00142   confout_am(strm);
00143   confout_lib(strm);
00144   confout_process(strm);
00145 }

Generated on Tue Dec 26 16:16:33 2006 for Julius by  doxygen 1.5.0