Julius 4.2
マクロ定義 | 関数 | 変数
libsent/src/util/jlog.c

メッセージテキスト出力とエラー終了 [詳細]

#include <sent/stddefs.h>
#include <sent/tcpip.h>
#include <stdarg.h>

ソースコードを見る。

マクロ定義

#define MAX_PRINTF_LEN   4096
 Maximum string length at one printf call.

関数

void jlog_set_output (FILE *fp)
 Set file pointer to output the log.
FILE * jlog_get_fp ()
 Return the current file pointer to output log.
void jlog (char *fmt,...)
 Output a normal message to log.
int jlog_flush ()
 Flush text message.

変数

static FILE * outdev
static boolean initialized = FALSE

説明

メッセージテキスト出力とエラー終了

メッセージ出力用の汎用関数の定義です. 認識結果の端末出力やネットワークへの出力といった, Julius の主要な出力はここの関数を使って行われます. また,出力文字コードの変換もここで行います.

作者:
Akinobu LEE
日付:
Thu Feb 17 16:02:41 2005
Revision:
1.3

jlog.c で定義されています。


関数

void jlog_set_output ( FILE *  fp)

Set file pointer to output the log.

Set to NULL to totally disable the log outputs.

引数:
fp[in] file pointer or NULL to disable

jlog.c52 行で定義されています。

FILE* jlog_get_fp ( )

Return the current file pointer to output log.

戻り値:
the file pointer.

jlog.c65 行で定義されています。

参照元 check_hmm_limit(), make_dfa_voca_ref(), print_engine_info(), wordgraph_check_coherence(), と wordgraph_remove_context().

void jlog ( char *  fmt,
  ... 
)

Output a normal message to log.

引数:
fmt[in] format string, like printf.
...[in] variable length argument like printf.

jlog.c80 行で定義されています。

参照元 accept_from(), add_bigram(), add_unigram(), adin_alsa_begin(), adin_alsa_end(), adin_alsa_open(), adin_alsa_read(), adin_alsa_standby(), adin_begin(), adin_cut(), adin_cut_callback_store_buffer(), adin_end(), adin_esd_standby(), adin_file_begin(), adin_file_close(), adin_file_open(), adin_file_read(), adin_file_standby(), adin_initialize(), adin_mic_begin(), adin_mic_end(), adin_mic_open(), adin_mic_read(), adin_mic_standby(), adin_netaudio_read(), adin_oss_begin(), adin_oss_read(), adin_oss_standby(), adin_pulseaudio_begin(), adin_pulseaudio_end(), adin_pulseaudio_read(), adin_pulseaudio_standby(), adin_select(), adin_setup_all(), adin_setup_param(), adin_sndfile_begin(), adin_sndfile_end(), adin_sndfile_open(), adin_sndfile_standby(), adin_stdin_begin(), adin_stdin_read(), adin_store_buffer(), adin_tcpip_begin(), adin_tcpip_end(), adin_tcpip_read(), adin_tcpip_send_pause(), adin_tcpip_send_resume(), adin_tcpip_send_terminate(), adin_tcpip_standby(), adin_thread_cancel(), adin_thread_create(), adin_thread_input_main(), adin_thread_process(), adjust_sc_index(), aptree_remove_entry(), bt_current_max_word(), build_state2gs(), build_wchmm(), build_wchmm2(), callback_add_core(), callback_delete(), callback_exec(), callback_exec_adin(), callback_list_error(), charconv_iconv_setup(), charconv_libjcode_setup(), charconv_win32(), charconv_win32_setup(), check_format(), check_header(), check_hmm_limit(), check_hmm_options(), check_wchmm(), checkpath(), clear_stocker(), CMN_load_from_file(), CMN_realtime_update(), CMN_save_to_file(), codebook_add(), config_file_parse(), config_string_parse(), confnet_create(), cp_add(), cp_remove(), cpair_append(), create_mfcc_calc_instances(), decode_end(), decode_proceed(), def_mpdf_macro(), dens_add(), detect_end_of_segment(), dfa_cp_append(), dfa_pause_word_append(), dfa_symbol_lookup(), do_align(), do_filter(), ds48to16(), ds48to16_new(), error_missing_left_triphone(), error_missing_right_triphone(), expand_env(), expand_tlist(), extract_cpair(), fclose_readfile(), finalize_1st_pass(), finalize_segment(), find_1pass_result(), find_1pass_result_word(), fix_uniprob_srilm(), fopen_readfile(), fopen_writefile(), get_back_trellis_end(), get_back_trellis_init(), get_back_trellis_proceed(), get_dens_data(), get_mpdf_data(), get_state_data(), get_streamweight_data(), get_total_info(), get_trans_data(), get_var_data(), gmm_init(), gmm_proceed(), gms_init(), gprune_none(), graph_forward_backward(), graph_make_order(), guess_abs_e_location(), guess_basenum(), guess_if_cd_hmm(), hmm_add_physical_to_logical(), hmm_add_pseudo_phones(), hmm_add_pseudo_phones_sub(), hmm_check(), htk_config_file_parse(), htk_hmm_has_several_arc_on_edge(), htk_hmm_set_pause_model(), htk_hmmdata_add(), init_dfa(), init_hmminfo(), init_ngram_arpa(), init_ngram_arpa_additional(), init_ngram_bin(), init_nodescore(), init_voca(), init_wordlist(), initialize_dict(), initialize_GMM(), initialize_GSHMM(), initialize_HMM(), j_add_option(), j_close_stream(), j_create_instance_from_jconf(), j_final_fusion(), j_get_amconf_by_id(), j_get_amconf_by_name(), j_get_lmconf_by_id(), j_get_lmconf_by_name(), j_get_searchconf_by_id(), j_get_searchconf_by_name(), j_jconf_am_regist(), j_jconf_finalize(), j_jconf_lm_regist(), j_jconf_search_regist(), j_launch_recognition_instance(), j_load_all(), j_load_am(), j_load_lm(), j_mfcccalc_new(), j_open_stream(), j_process_activate(), j_process_activate_by_id(), j_process_add_lm(), j_process_am_remove(), j_process_deactivate(), j_process_deactivate_by_id(), j_process_lm_remove(), j_process_remove(), j_recognize_stream(), j_recognize_stream_core(), list_error(), load_hmmlist_bin(), make_base_phone(), make_connection(), make_connection_unix(), make_costbl_hamming(), make_costbl_makemfcc(), make_dfa_voca_ref(), make_fft_table(), make_log_tbl(), make_ngram_ref(), make_sintbl_wcep(), make_successor_list(), make_voca_ref(), mark_word_edge(), max_successor_prob_iw(), merge_contexts(), mfcc_go(), mpdf_add(), mpdf_read(), multigram_activate(), multigram_add(), multigram_add_prefix_filelist(), multigram_add_prefix_list(), multigram_add_words_to_grammar(), multigram_append_to_global(), multigram_build(), multigram_deactivate(), multigram_delete(), multigram_exec_activate(), multigram_exec_delete(), multigram_get_grammar_by_id(), multigram_get_grammar_by_name(), multigram_get_id_by_name(), multigram_read_file_and_add(), multigram_update(), mycalloc(), myfread(), mymalloc(), mymalloc_big(), myread(), myrealloc(), NA_standby(), new_make_word_hmm_with_lm(), new_SS_calculate(), new_SS_load_from_file(), new_str2phseq(), new_str2wordseq(), next_arg(), ngram_compact_context(), ngram_nextwords(), ngram_prob(), ngram_read_arpa(), ngram_read_bin(), ngram_write_bin(), opt_parse(), outprob_init(), param_alloc(), param_check_and_adjust(), param_qualstr2code(), param_strip_zero(), print_engine_info(), print_format(), print_jconf_overview(), print_wchmm_info(), put_all_in_stack(), put_atom(), put_hypo_wname(), put_hypo_woutput(), rd(), rd_data(), rd_dens(), rd_header(), rd_mpdf(), rd_para(), rd_state(), rd_streamweight(), rd_tmix(), rd_trans(), rd_var(), rddfa_line(), rderr(), rdhmmdef(), rdhmmlist(), rdn_strfunc(), rdnfunc(), read_binhmm(), read_global_opt(), read_param(), ready_as_server(), RealTimeCMNUpdate(), RealTimeInit(), RealTimeParam(), RealTimePipeLine(), RealTimePipeLinePrepare(), regist_cdset(), reset_count_zc_e(), save_hmmlist_bin(), scan_word(), select_param_vmark(), set_beam_width(), set_global_opt(), set_ngram(), set_terminal_words(), set_unigram(), set_unknown_id(), setup_wav(), state_add(), strip_zero(), sw_add(), sw_read(), swap_leftword(), swap_rightword(), tmix_create_codebook_index(), trans_add(), trans_ok_p(), useropt_exec(), var_add(), var_read(), viterbi_segment(), voca_load_htkdict_line(), voca_load_wordlist_line(), voca_lookup_wid(), voca_mono2tri(), VTLN_recreate_fbank_cf(), Wav2MFCC(), wav2mfcc(), wchmm_add_word(), wchmm_fbs(), winfo_expand(), wordgraph_add_leftword(), wordgraph_add_rightword(), wordgraph_adjust_boundary(), wordgraph_adjust_boundary_sub(), wordgraph_check_and_add_leftword(), wordgraph_check_and_add_rightword(), wordgraph_check_coherence(), wordgraph_compaction_exacttime(), wordgraph_compaction_neighbor(), wordgraph_compaction_thesame(), wordgraph_depth_cut(), wordgraph_new(), wordgraph_purge_leaf_nodes(), wordgraph_remove_context(), write_binhmm(), write_header(), wrtfunc(), wrwav_close(), wt(), wt_data(), wt_dens(), wt_header(), wt_mpdf(), wt_pdf_sub(), wt_state(), wt_streamweight(), wt_tmix(), wt_trans(), と wt_var().

int jlog_flush ( )

Flush text message.

The output device can be changed by set_print_func().

戻り値:
the same as fflush, i.e. 0 on success, other if failed.

jlog.c103 行で定義されています。

参照元 j_recognize_stream_core(), rderr(), と wchmm_fbs().