首页 > 解决方案 > 如何在 Windows 上为 Epitran 安装 flite

问题描述

我正在尝试在 Windows 上使用 python 的包 Epitran https://pypi.org/project/epitran/0.10/,它返回单词的 IPA 表示。对于英语,正如网站所说,我需要从这里安装 flite http://tts.speech.cs.cmu.edu/awb/flite-2.0.5-current.tar.bz2

在网上进行了一些研究后,我已经下载了该文件并尝试使用 cygwin 安装它。

我还将 cp -pd 的两个实例都更改为 cp -pR 作为 Epitran 的网站,并且建议在 Mac OSX 上安装 flite 时出现此错误

到目前为止,我已经在我的 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,所以如果有人给我一些帮助,我将不胜感激

标签: c++makefileflite

解决方案


推荐阅读