00001
00018
00019
00020
00021
00022
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 fprintf(strm, " Max. # of N for N-gram : %d\n", MAX_N);
00084 #ifdef CLASS_NGRAM
00085 fprintf(strm, " class N-gram support : yes\n");
00086 #else
00087 fprintf(strm, " class N-gram support : no\n");
00088 #endif
00089 #ifdef WORDS_INT
00090 fprintf(strm, " word id unit : integer (%d bytes)\n", sizeof(WORD_ID));
00091 #else
00092 fprintf(strm, " word id unit : short (%d bytes)\n", sizeof(WORD_ID));
00093 #endif
00094 }
00095
00101 void
00102 confout_am(FILE *strm)
00103 {
00104 fprintf(strm, " - Acoustic Model\n");
00105
00106
00107
00108
00109
00110
00111
00112 fprintf(strm, " multi-path treatment : autodetect\n");
00113 #ifdef ENABLE_MSD
00114 fprintf(strm, " MSD-HMM support : yes\n");
00115 #endif
00116 }
00117
00123 void
00124 confout_lib(FILE *strm)
00125 {
00126 fprintf(strm, " - External library\n");
00127 fprintf(strm, " file decompression by : %s\n", GZIP_READING_DESC);
00128 }
00129
00135 void
00136 confout_process(FILE *strm)
00137 {
00138 fprintf(strm, " - Process hangling\n");
00139 #ifdef FORK_ADINNET
00140 fprintf(strm, " fork on adinnet input : yes\n");
00141 #else
00142 fprintf(strm, " fork on adinnet input : no\n");
00143 #endif
00144 }
00145
00151 void
00152 confout(FILE *strm)
00153 {
00154 confout_version(strm);
00155 confout_audio(strm);
00156 confout_lm(strm);
00157 confout_am(strm);
00158 confout_lib(strm);
00159 confout_process(strm);
00160 }