我正在尝试在Windows上使用python的包epitran https://pypi.org/project/epitran/0.10/,该包返回单词的IPA表示形式。如网站所述,对于英语,我需要从http://tts.speech.cs.cmu.edu/awb/flite-2.0.5-current.tar.bz2此处安装flite。
在网上进行了一些研究之后,我已经下载了文件并尝试使用cygwin安装它。
我还将两个cp -pd实例都更改为cp -pR作为Epitran的网站,并提出了Error installing flite on Mac OSX的建议。
到目前为止,我已经在cygwin终端中执行了以下几行。
$ tar xjf flite-2.0.5-current.tar.bz2
$ cd flite-2.0.5-current
但是当我执行此操作时:
$ ./configure && make
我收到以下错误
gcc -I. -DCST_AUDIO_NONE -I../../include -g -O2 -Wall -c auclient.c -o ../../build/x86_64-cygwin/obj/src/audio/auclient.o
In file included from auclient.c:46:0:
../../include/cst_file.h: In function 'c99_vsnprintf':
../../include/cst_file.h:108:20: warning: implicit declaration of function '_vsnprintf_s' [-Wimplicit-function-declaration]
count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
^~~~~~~~~~~~
../../include/cst_file.h:108:44: error: '_TRUNCATE' undeclared (first use in this function)
count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
^~~~~~~~~
../../include/cst_file.h:108:44: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [../../config/common_make_rules:105: ../../build/x86_64-cygwin/obj/src/audio/auclient.o] Error 1
make[1]: *** [../config/common_make_rules:133: ../build/x86_64-cygwin/obj/src/.make_build_dirs] Error 2
make: *** [config/common_make_rules:133: build/x86_64-cygwin/obj//.make_build_dirs] Error 2
由于我对C ++或Linux经验为0,所以我基本上不知道我在做什么,并且可能会出错,所以如果有人给我一些帮助,我将非常感激