sumom****@users*****
sumom****@users*****
2009年 10月 22日 (木) 01:47:20 JST
Index: julius4/msvc/config/config-msvc-julius.h diff -u /dev/null julius4/msvc/config/config-msvc-julius.h:1.1 --- /dev/null Thu Oct 22 01:47:20 2009 +++ julius4/msvc/config/config-msvc-julius.h Thu Oct 22 01:47:20 2009 @@ -0,0 +1,15 @@ +/* config.h. Generated automatically by configure. */ +/* Define if you use character conversion function */ +#define CHARACTER_CONVERSION 1 + +/* Define if you use Win32 character conversion API */ +#define USE_WIN32_MULTIBYTE 1 + +/* Define if you have iconv function */ +// #undef HAVE_ICONV + +/* Define if you have const char prototype in iconv function */ +// #define ICONV_CONST const + +/* Define if you use libjcode */ +#define USE_LIBJCODE Index: julius4/msvc/config/config-msvc-libjulius.h diff -u /dev/null julius4/msvc/config/config-msvc-libjulius.h:1.1 --- /dev/null Thu Oct 22 01:47:20 2009 +++ julius4/msvc/config/config-msvc-libjulius.h Thu Oct 22 01:47:20 2009 @@ -0,0 +1,254 @@ +/* include/julius/config.h. Generated automatically by configure. */ +/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */ +/** + * @file acconfig.h + * + * <JA> + * @brief config.h.in ¤Econfigure.in ¤«¤éÀ¸À®¤¹¤E¿¤á¤Î autoconf ÍѥإåÀ + * + * ¤³¤Î¥Õ¥¡¥¤¥EÏ¥½¡¼¥¹¤«¤é¥¤¥ó¥¯¥E¼¥É¤µ¤EE³¤È¤Ï¤¢¤ê¤Þ¤»¤E + * ¼ÂºÝ¤Ë¤Ï¤³¤ÎÆâÍÆ¤Ï config.h.in ¤ËËä¤á¹þ¤Þ¤EƤª¤ê¡¤ + * configure ¤Ë¤è¤Ã¤Æ config.h.in ¤«¤éÀ¸À®¤µ¤E¿ config.h ¤¬ + * ¥×¥úÁ°¥é¥à¤Ë¤è¤Ã¤Æ»ÈÍѤµ¤EÞ¤¹. + * + * @sa config.h, config.h.in, configure, configure.in + * </JA> + * + * <EN> + * @brief Autoconf header to generate config.h.in from configure.in + * + * This file is not included by any source file. The contents of this file + * is already copied in config.h.in, and the configuration script "configure" + * will generate config.h from config.h.in. It sets definitions according to + * the running environment and user-specified setting. The final config.h + * will be included by the sources. + * + * @sa config.h, config.h.in, configure, configure.in + * </EN> + * + * @author Akinobu LEE + * @date Sat Feb 19 12:53:54 2005 + * + * $Revision: 1.1 $ + * + */ + +/// Name of the Product. +#define JULIUS_PRODUCTNAME "JuliusLib" + +/// Version string +#define JULIUS_VERSION "4.1.2" + +/// Engine setting (value of "--enable-setup=..."). +#define JULIUS_SETUP "fast" + +/// Compilation host information +#define JULIUS_HOSTINFO "i686-pc-msvc" + + +/* Define to empty if the keyword does not work. */ +/* #undef const */ + +/* Define as the return type of signal handlers (int or void). */ +#define RETSIGTYPE void + +/* Define if you have the ANSI C header files. */ +//#define STDC_HEADERS 1 + +/* Define if you have POSIX thread */ +// #undef HAVE_PTHREAD + +/// For Julius, defined if using 1-gram factoringon the 1st pass instead of 2-gram factoring. +#define UNIGRAM_FACTORING 1 + +/** + * For Julius, defined if dictionary forms a single tree lexicon, sharing + * only a single root node. This saves memory of inter-word LM cache. + * + */ +/* #undef LOWMEM */ + +/** + * For Julius, defined if frequent words should be separated from the lexicon + * tree. This will improve accuracy on small beam, and default of "fast" + * setting. If none of LOWMEM and LOWMEM2 is defined, separation of short + * words from lexicon tree will be performed to get the better accuracy, at + * a cost of LM cache area on word head. + * + */ +#define LOWMEM2 1 + +/** + * If defined, use word-pair approximation on the 1st pass instead of + * 1-best approximation. + * + */ +/* #undef WPAIR */ + +/** + * When WPAIR is defined, only up to N tokens will be kept for each node + * instead of keeping tokens depending on the previous word. This may + * improve memory efficiency when word-pair approximation is used. + * + */ +/* #undef WPAIR_KEEP_NLIMIT */ + +/** + * If defined, generate a simple word graph instead of word trellis on + * the 1st pass. This limits word expansion on the 2nd pass + * to only the words on the word graph, and the final recognition accuracy + * can be decreased. You should enable this with WPAIR to get reasonable + * output. Please note that this is different + * from Word Graph Output of the 2nd pass which can be enabled by GRAPHOUT. + * + */ +/* #undef WORD_GRAPH */ + +/** + * If defined, use monophone tree lexicon on the 1st pass for speed up + * the search. This is EXPERIMENTAL, and should not be used. + * + */ +/* #undef MONOTREE */ + +/** + * Handle inter-word triphone on the 1st pass. This should be defined + * if using context-dependent acoustic model. If not defined, the context + * will not be considered any more. This is defined by default. + * + */ +#define PASS1_IWCD 1 + +/** + * On word expansion of the 2nd pass, Julius and Julian by default does + * not handle inter-word context dependency of the newly expanded words + * on the expansion time, and they will be computed when the hypothesis + * is popped from the stack at the later processing. If PASS2_STRICT_IWCD + * is defined, a strict inter-word triphone will be computed just on the + * word expansion time, by re-computing word edge phones on the connection + * point for all the word candidates. + * + * This option will results in a better + * recognition accuracy. However, the 2nd pass will become slower by the + * increasing acoustic matching cost. + * + */ +/* #undef PASS2_STRICT_IWCD */ + +/** + * Enable score envelope beaming on the hypothesis scoring in the 2nd pass. + * This will be defined by default. + * + */ +#define SCAN_BEAM 1 + +/// Set the default method of Gaussian pruning for tied-mixture model to safe algorithm +/* #undef GPRUNE_DEFAULT_SAFE */ + +/// Set the default method of Gaussian pruning for tied-mixture model to beam algorithm +#define GPRUNE_DEFAULT_BEAM 1 + +/** + * Enables confidence scoring for the output words. This will be defined + * by default. + * + */ +#define CONFIDENCE_MEASURE 1 + +/* use N-best confidence measure instead of search-time computation */ +/** + * By default, Julius/Julian uses search-time heuristic scores to get the + * posterior probability based word confidence measures on the search time. + * This default algorithm can output word confidence scores with a little + * additional computation without searching for much sentences. + * + * If you still use a trivial method of computing the word confidence scores + * from the N-best sentence list, you can define this. + * + */ +/* #undef CM_NBEST */ + +/** + * If defined, compute confidence scores for multiple alpha values. + * + */ +/* #undef CM_MULTIPLE_ALPHA */ + +/** + * Enable search space visualization feature. You need X11 and GTK to + * use this. + * + */ +/* #undef VISUALIZE */ + +/** + * When VISUALIZE is defind, this defines a command to play the recorded + * sound on the visualization window. + */ +/* #undef PLAYCOMMAND */ + +/** + * On Julius, if defined, fix some language model scoring bug on the 2nd pass. + * + */ +#define LM_FIX_DOUBLE_SCORING 1 + +/** + * Use dynamic word graph generation on the 2nd pass. + * The word candidates are fixed as soon as the word boundary is fixed + * in search, and as soon as same word appears in the same position, + * they will be merged. It results in much more words to be + * remained in the graph. + * + */ +#define GRAPHOUT_DYNAMIC 1 + +/** + * If defined with GRAPHOUT_DYNAMIC, use modified stack + * decoding algorithm for efficient word graph generation. + * + */ +#define GRAPHOUT_SEARCH 1 + +/** + * If defined, avoid expansion of low CM word on search. This may + * speed up + * + */ +/* #undef CM_SEARCH_LIMIT */ + +/** + * If defined, enable decoder-oriented VAD using short-pause segmentation + * scheme developed by NAIST team + * + */ + +/* #undef SPSEGMENT_NAIST */ + +/** + * If defined, enable a simple GMM-based VAD. Both frontend VAD and + * postprocessing rejection will be performed using the same GMM. + * + */ + +/* #undef GMM_VAD */ + + +/** + * This will be defined internally when in-decoder type VAD is enabled. + * + */ + +/* #undef BACKEND_VAD */ + +/** + * If enabled, do post-rejection by power + * + */ +/* #undef POWER_REJECT */ + +/** + * If defined, enable plugin support using dynamic object loading + * + */ +#define ENABLE_PLUGIN 1 Index: julius4/msvc/config/config-msvc-libsent.h diff -u /dev/null julius4/msvc/config/config-msvc-libsent.h:1.1 --- /dev/null Thu Oct 22 01:47:20 2009 +++ julius4/msvc/config/config-msvc-libsent.h Thu Oct 22 01:47:20 2009 @@ -0,0 +1,104 @@ +/* Version string */ +#define LIBSENT_VERSION "4.1.2" + +/* Audio API name */ +#define AUDIO_API_NAME "pa-dsound" + +/* Audio API description */ +#define AUDIO_API_DESC "PortAudio library (DirectSound)" + +/* Description of supported audio file formats */ +#define AUDIO_FORMAT_DESC "WAV and RAW" + +/* Description of gzip file reading method */ +#define GZIP_READING_DESC "zlib" + +/* Define to empty if the keyword does not work on your compiler. */ +//#undef const + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS + +/* Define if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN + +/* Define if use microphone input */ +#define USE_MIC + +/* Define if use Datlink/Netaudio input */ +#undef USE_NETAUDIO + +/* Define if libsndfile support is available */ +#undef HAVE_LIBSNDFILE + +/* Define for libsndfile support (ver.1) */ +#undef HAVE_LIBSNDFILE_VER1 + +/* Define if you have spaudio library */ +#undef USE_SPLIB + +/* Define if you use integer word WORD_ID (for vocaburary of over 60k) */ +#undef WORDS_INT + +/* Define if you prefer addlog array function */ +#define USE_ADDLOG_ARRAY + +/* Define if you use zcat command for compressed file input */ +#undef ZCAT + +/* Define if you have socklen definition */ +#undef HAVE_SOCKLEN_T + +/* Define if you have the <sndfile.h> header file. */ +#undef HAVE_SNDFILE_H + +/* Define if you have the <unistd.h> header file. */ +#undef HAVE_UNISTD_H + +/* Define if you have the nsl library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the socket library (-lsocket). */ +#undef HAVE_LIBSOCKET + +/* Define if you have zlib library (-lz). */ +#define HAVE_ZLIB + +/* Define if you have strcasecmp function */ +#undef HAVE_STRCASECMP + +/* Define if you have sleep function */ +#undef HAVE_SLEEP + +/* Define if you have iconv function */ +#undef HAVE_ICONV + +/* Define if you use libjcode */ +#undef USE_LIBJCODE + +/* Define if you allow class N-gram */ +#define CLASS_NGRAM + +/* Define if you want to enable process forking for each adinnet connection */ +#undef FORK_ADINNET + +/* Define if use sin/cos table for MFCC calculation */ +#define MFCC_SINCOS_TABLE + +/* Define if <sys/soundcard.h> found */ +#undef HAVE_SYS_SOUNDCARD_H + +/* Define if <machine/soundcard.h> found */ +#undef HAVE_MACHINE_SOUNDCARD_H + +/* Define if <alsa/asoundlib.h> found */ +#undef HAVE_ALSA_ASOUNDLIB_H + +/* Define if <sys/asoundlib.h> exist and <alsa/asoundlib.h> not exist */ +#undef HAVE_SYS_ASOUNDLIB_H + +/* Define if <esd.h> exist */ +#undef HAVE_ESD_H + +/* Define if MSD-HMM support is enabled */ +#undef ENABLE_MSD Index: julius4/msvc/config/version.c diff -u /dev/null julius4/msvc/config/version.c:1.1 --- /dev/null Thu Oct 22 01:47:20 2009 +++ julius4/msvc/config/version.c Thu Oct 22 01:47:20 2009 @@ -0,0 +1,252 @@ +/** + * @file version.c + * + * <JA> + * @brief ¥Ð¡¼¥¸¥ç¥ó¤ª¤è¤Ó¥³¥ó¥Ñ¥¤¥EþÀßÄê¤Î½ÐÎÏ + * + * </JA> + * + * <EN> + * @brief Output version and compilation-time configuration. + * + * </EN> + * + * @author Akinobu Lee + * @date Mon Sep 12 01:34:15 2005 + * + * $Revision: 1.1 $ + * + */ +/* + * Copyright (c) 1991-2007 Kawahara Lab., Kyoto University + * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology + * Copyright (c) 2005-2007 Julius project team, Nagoya Institute of Technology + * All rights reserved + */ + +/* Generated automatically from version.c.in by configure. */ + +#include <julius/julius.h> + +#define CC "MSVC" ///< Used compiler +#define CFLAGS "" ///< Used flags for compilation + +/** + * <JA> + * ¥Ø¥Ã¥À¤ò½ÐÎϤ¹¤E + * + * @param strm [in] ½ÐÎÏ¥¹¥È¥ê¡¼¥E * </JA> + * <EN> + * Output application header. + * + * @param strm [in] output stream + * </EN> + */ +void +j_put_header(FILE *strm){ + if (strm == NULL) return; + fprintf(strm,"%s rev.%s (%s)\n\n", JULIUS_PRODUCTNAME, JULIUS_VERSION, JULIUS_SETUP); +} + +/** + * <JA> + * ¥Ð¡¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ¹¤E * + * @param strm [in] ½ÐÎÏ¥¹¥È¥ê¡¼¥E * </JA> + * <EN> + * Output version information. + * + * @param strm [in] output stream + * </EN> + */ +void +j_put_version(FILE *strm){ + if (strm == NULL) return; + fprintf(strm,"\n%s rev.%s (%s) built for %s\n\n", + JULIUS_PRODUCTNAME, JULIUS_VERSION, JULIUS_SETUP, JULIUS_HOSTINFO); + fprintf(strm,"Copyright (c) 1991-2009 Kawahara Lab., Kyoto University\n"); + fprintf(strm,"Copyright (c) 1997-2000 Information-technology Promotion Agency, Japan\n"); + fprintf(strm,"Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology\n"); + fprintf(strm,"Copyright (c) 2005-2009 Julius project team, Nagoya Institute of Technology\n\n"); +} + +/** + * <JA> + * ¥³¥ó¥Ñ¥¤¥Eþ¤ÎÀßÄê¤ò½ÐÎϤ¹¤E + * + * @param strm [in] ÆþÎÏ¥¹¥È¥ê¡¼¥E * </JA> + * <EN> + * Output compile-time settings. + * + * @param strm [in] input stream + * </EN> + */ +void +j_put_compile_defs(FILE *strm){ + if (strm == NULL) return; + fprintf(strm,"Engine specification:\n"); + fprintf(strm," - Base setup : %s\n", JULIUS_SETUP); + fprintf(strm," - Supported LM : DFA, N-gram, Word\n"); + fprintf(strm," - Extension :"); +#ifndef UNIGRAM_FACTORING + fprintf(strm, ", 2gramFactoring"); +#endif + +# ifdef GRAPHOUT_DYNAMIC +# ifdef GRAPHOUT_SEARCH + /* this is default */ + //fprintf(strm, " GraphOutSearch"); +# else + fprintf(strm, " GraphOutNonSearchTermination"); +# endif +# else + fprintf(strm, " GraphOutFromNBest"); +# endif +# ifndef GRAPHOUT_PRECISE_BOUNDARY + fprintf(strm, " DisableGraphOutPostFitting"); +# endif + +#ifdef CM_SEARCH_LIMIT +# ifdef CM_SEARCH_LIMIT_AFTER + fprintf(strm, " CMPruning_OnlyAfterReached"); +# else + fprintf(strm, " CMPruning"); +# endif +# ifdef CM_SEARCH_LIMIT_POP + fprintf(strm, " CMPruningOnPOP"); +# endif +#endif + +# ifndef LM_FIX_DOUBLE_SCORING + fprintf(strm, " NoLMFix"); +# endif + +# ifndef CLASS_NGRAM + fprintf(strm, " NoClassNGram"); +# endif + +#ifdef WORDS_INT + fprintf(strm, " WordsInt"); +#endif + +# ifdef LOWMEM + fprintf(strm, " SingleTree"); +# else +# ifdef LOWMEM2 + /* fprintf(strm, " HiFreqLinearTree");*/ +# else + fprintf(strm, " ShortWordTree"); +# endif +# endif + +# ifndef CATEGORY_TREE + //fprintf(strm, " NoCategoryTree"); +# endif + +#ifdef MONOTREE + fprintf(strm, " MonoTree1"); +#endif +#ifndef SCAN_BEAM + fprintf(strm, " NoScoreEnvelope"); +#endif +#ifndef PASS1_IWCD + fprintf(strm, " NoIWCD1"); +#endif +#ifdef PASS2_STRICT_IWCD + fprintf(strm, " StrictIWCD2"); +#endif + +#ifdef WPAIR +# ifdef WPAIR_KEEP_NLIMIT + fprintf(strm, " WordPairNApprox"); +# else + fprintf(strm, " WordPairApprox"); +# endif +#endif + +#ifdef WORD_GRAPH + fprintf(strm, " 1stPassWordGraph"); +#endif + +#ifndef CONFIDENCE_MEASURE + fprintf(strm, " NoCM"); +#else +# ifdef CM_NBEST + fprintf(strm, " N-bestCM"); +# endif +# ifdef CM_MULTIPLE_ALPHA + fprintf(strm, " MultiCMOutput"); +# endif +#endif /* CONFIDENCE_MEASURE */ + +#ifndef USE_MIC + fprintf(strm, " NoMic"); +#endif +#ifdef USE_NETAUDIO + fprintf(strm, " NetAudio"); +#endif +#ifndef HAVE_PTHREAD + fprintf(strm, " NoPThread"); +#endif +#ifdef HAVE_LIBSNDFILE + fprintf(strm, " LibSndFile"); +#endif + +#ifdef VISUALIZE + fprintf(strm, " Visualize"); +#endif + +#ifdef FORK_ADINNET + fprintf(strm, " ForkOnAdinnet"); +#endif + +#ifndef MFCC_SINCOS_TABLE + fprintf(strm, " DisableMFCCTable"); +#endif + +#ifndef LM_FIX_DOUBLE_SCORING + fprintf(strm, " DisableLMFix3.4"); +#endif + +#ifdef USE_LIBJCODE + fprintf(strm, " Libjcode"); +#endif + +#ifdef HAVE_ICONV + fprintf(strm, " IconvOutput"); +#endif + +#ifdef GMM_VAD + fprintf(strm, " GMMVAD"); +#endif + +#ifdef SPSEGMENT_NAIST + fprintf(strm, " DecoderVAD"); +#endif + +#ifdef POWER_REJECT + fprintf(strm, " PowerReject"); +#endif + + fprintf(strm, "\n"); + fprintf(strm," - Compiled by : %s %s\n", CC, CFLAGS); +} + +/** + * <JA> + * ¥é¥¤¥Ö¥é¥ê¤ÎÀßÄê¤ò½ÐÎϤ¹¤E * + * @param strm [in] ½ÐÎÏ¥¹¥È¥ê¡¼¥E * </JA> + * <EN> + * Output library configuration. + * + * @param strm [in] output stream + * </EN> + */ +void +j_put_library_defs(FILE *strm) { + if (strm == NULL) return; + fprintf(strm, "Library configuration: "); + confout(strm); + fprintf(strm, "\n"); +} + +/* end of file */