c++ - 如何在 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,所以如果有人给我一些帮助,我将不胜感激
解决方案
推荐阅读
- oracle - 这个 UPDATE SQL JOIN 语法有什么问题?
- angular - Angular 中的异步调用
- jointjs - addTools 在 rappidjs 中给出异常
- spring-boot - Spring Boot + Apache Wicket - JSP 页面正在下载而不是渲染
- java - 如何在 Resttemplate Spring 中做
- javascript - 如何构建一个无限的画布并有能力将图纸保存和恢复到原来的位置?
- android - 两个具有相同 ID 但不同通知渠道的通知
- node.js - 如何使用momentjs在mysql中保存本地时区的日期时间
- three.js - 修改后的网格照明看起来不正确
- android - 如何处理启动阶段Android应用程序的崩溃?