您的位置:首页 > 其它

解决的问题(补充)

2011-07-20 16:58 113 查看
解决的问题

1、编译cmuclmtk
http://www.cnblogs.com/libtool: line 479: CDPATH: command not found
http://www.cnblogs.com/libtool: line 1308: func_opt_split: command not found

libtool: Version mismatch error. This is libtool 2.2.8, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.8

libtool: and run autoconf again.

make[3]: *** [arpa_bo_ng_prob.lo] error 1

make[3]: Leaving directory `/home/speech/sphinx/cmuclmtk/src/liblmest'

make[2]: *** [all-recursive] error 1

make[2]: Leaving directory `/home/speech/sphinx/cmuclmtk/src'

make[1]: *** [all-recursive] error 1

make[1]: Leaving directory `/home/speech/sphinx/cmuclmtk'

make: *** [all] error 2

解决办法:

1、rm -rf aclocal.m4;

autoreconf

2、将已安装的libtool覆盖到编译目录

./configure

cp /usr/bin/libtool /home/speech/sphinx/cmuclmtk

make

make install

3、cd /usr/local/bin

./sphinx3-simple

………

INFO: srch_time_switch_tree.c(350): Time for building trees, 0.0290 CPU 0.0446 Clk

INFO: srch_time_switch_tree.c(372): Lextrees(0), 1 nodes(filler)

INFO: srch_time_switch_tree.c(372): Lextrees(1), 1 nodes(filler)

INFO: srch_time_switch_tree.c(372): Lextrees(2), 1 nodes(filler)

INFO: vithist.c(168): Initializing Viterbi-history module

INFO: Initialization of srch_t, report:

INFO: Operation Mode = 4, Operation Name = fwdtree

INFO:

INFO: s3_decode.c(259): Input data will NOT be byte swapped

INFO: s3_decode.c(264): Partial hypothesis WILL be dumped

press ENTER to start recording

2、Soundrecorder不起作用

pocketsphinx_continuous -lm 2916.lm -dict 2916.dic

INFO: ngram_search_fwdtree.c(186): Creating search tree

INFO: ngram_search_fwdtree.c(191): before: 0 root, 0 non-root channels, 12 single-phone words

INFO: ngram_search_fwdtree.c(324): after: max nonroot chan increased to 142

INFO: ngram_search_fwdtree.c(333): after: 6 root, 14 non-root channels, 11 single-phone words

INFO: ngram_search_fwdflat.c(153): fwdflat: min_ef_width = 4, max_sf_win = 25

INFO: continuous.c(261): pocketsphinx_continuous COMPILED ON: Feb 18 2011, AT: 10:04:56

FATAL_ERROR: "continuous.c", line 135: cont_ad_calib failed

原因:Soundrecorder不起作用。

SPHINXBASE_EXPORT int32 cont_ad_calib (cont_ad_t *cont)

Calibrate the silence filter. 校准静音滤波器

Calibrate the silence filter.

Calibration to determine an initial silence threshold. This function can be called any number of times. It should be called at least once immediately after cont_ad_init. The silence threshold is also updated internally once in a while, so this function only needs to be called in the middle if there is a definite change in the recording environment. The application is responsible for making sure that the raw audio source is turned on before the calibration. Return value: 0 if successful, <0 otherwise.

Parameters: cont In: object pointer returned by cont_ad_init

Definition at line 1022 of file cont_ad_base.c.

References cont_ad_t::ad, cont_ad_t::adbuf, cont_ad_calib(), cont_ad_t::headfrm, cont_ad_t::n_calib_frame, cont_ad_t::n_frm, cont_ad_t::pow_hist, cont_ad_t::spf, and cont_ad_t::thresh_update.

Referenced by cont_ad_calib().

3、vmware+安装ubuntu10.10,soundrecorder使用正常

./pocketsphinxcontinuous

INFO: ngram_search_fwdtree.c(186): Creating search tree

INFO: ngram_search_fwdtree.c(191): before: 0 root, 0 non-root channels, 12 single-phone words

INFO: ngram_search_fwdtree.c(324): after: max nonroot chan increased to 142

INFO: ngram_search_fwdtree.c(333): after: 6 root, 14 non-root channels, 11 single-phone words

INFO: ngram_search_fwdflat.c(153): fwdflat: min_ef_width = 4, max_sf_win = 25

ad_oss.c(103): Failed to open audio device(/dev/dsp): No such file or directory

FATAL_ERROR: "continuous.c", line 259: ad_open_dev failed

解决办法:

Sudo apt-get install libasound2-dev

recompiled sphinxbase

…………..

4、my_db.transtription存在“/n”

ODULE: 00 verify training files

O.S. is case sensitive ("A" != "a").

Phones will be treated as case sensitive.

Phase 1: DICT - Checking to see if the dict and filler dict agrees with the phonelist file.

Found 16 words using 16 phones

Phase 2: DICT - Checking to make sure there are not duplicate entries in the dictionary

Phase 3: CTL - Check general format; utterance length (must be positive); files exist

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

WARNING: CTL line does not parse correctly:

Phase 4: CTL - Checking number of lines in the transcript should match lines in control file

Phase 5: CTL - Determine amount of training data, see if n_tied_states seems reasonable.

Total Hours Training: 0.000789957264957265

This is a small amount of data, no comment at this time

Phase 6: TRANSCRIPT - Checking that all the words in the transcript are in the dictionary

Words in dictionary: 13

Words in filler dictionary: 3

Phase 7: TRANSCRIPT - Checking that all the phones in the transcript are in the phonelist, and all phones in the phonelist appear at least once

Something failed: (/sphinx/MyTrain/scripts_pl/00.verify/verify_all.pl)

5、 error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory

出现此问题,那就表示系统不知道xxx.so 放在哪个目录下,这个时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。

一般而言,你默认安装后,默认会生成在/usr/local/lib这个目录下,所以在/etc/ld.so.conf中加入/usr/local/lib这一行,可以解决此问题。

将/etc/ld.so.conf存档后,执行「/sbin/ldconfig –v」来更新一下才会生效。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: