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
00035 void
00036 confout_version(FILE *strm)
00037 {
00038 fprintf(strm, "version %s\n", LIBSENT_VERSION);
00039 }
00040
00046 void
00047 confout_audio(FILE *strm)
00048 {
00049 fprintf(strm, " - Audio input\n");
00050 #ifdef USE_MIC
00051 fprintf(strm, " microphone device API : %s (%s)\n", AUDIO_API_NAME, AUDIO_API_DESC);
00052 #else
00053 fprintf(strm, " microphone device API : N/A\n");
00054 #endif
00055 fprintf(strm, " wavefile formats : %s\n", AUDIO_FORMAT_DESC);
00056 #ifdef USE_NETAUDIO
00057 fprintf(strm, " DATLink/NetAudio support: yes\n");
00058 #else
00059 fprintf(strm, " DATLink/NetAudio support: no\n");
00060 #endif
00061 fprintf(strm, " max. length of an input : %d samples (%d words)\n", MAXSPEECHLEN, MAXSEQNUM);
00062 }
00063
00069 void
00070 confout_lm(FILE *strm)
00071 {
00072 fprintf(strm, " - Language Model\n");
00073 fprintf(strm, " Max. # of N for N-gram : %d\n", MAX_N);
00074 #ifdef CLASS_NGRAM
00075 fprintf(strm, " class N-gram support : yes\n");
00076 #else
00077 fprintf(strm, " class N-gram support : no\n");
00078 #endif
00079 #ifdef WORDS_INT
00080 fprintf(strm, " word id unit : integer (%d bytes)\n", sizeof(WORD_ID));
00081 #else
00082 fprintf(strm, " word id unit : short (%d bytes)\n", sizeof(WORD_ID));
00083 #endif
00084 }
00085
00091 void
00092 confout_am(FILE *strm)
00093 {
00094 fprintf(strm, " - Acoustic Model\n");
00095
00096
00097
00098
00099
00100
00101
00102 fprintf(strm, " multi-path HMM handling : auto\n");
00103 }
00104
00110 void
00111 confout_lib(FILE *strm)
00112 {
00113 fprintf(strm, " - External library\n");
00114 fprintf(strm, " file decompression by : %s\n", GZIP_READING_DESC);
00115 }
00116
00122 void
00123 confout_process(FILE *strm)
00124 {
00125 fprintf(strm, " - Process hangling\n");
00126 #ifdef FORK_ADINNET
00127 fprintf(strm, " fork on adinnet input : yes\n");
00128 #else
00129 fprintf(strm, " fork on adinnet input : no\n");
00130 #endif
00131 }
00132
00138 void
00139 confout(FILE *strm)
00140 {
00141 confout_version(strm);
00142 confout_audio(strm);
00143 confout_lm(strm);
00144 confout_am(strm);
00145 confout_lib(strm);
00146 confout_process(strm);
00147 }