【问题标题】:Nist Sphere format filesNist Sphere 格式文件
【发布时间】:2013-04-29 23:00:50
【问题描述】:

为了读取 NIST sphere 格式文件,我正在尝试安装从here 下载的 NIST SPHERE 软件,但遇到了一些错误:

make[2]: Entering directory `/home/ibtissem/tools/nist/src/bin'
gcc  -I/home/ibtissem/tools/nist/include -L/home/ibtissem/tools/nist/lib -g -g -DNARCH_linux h_add.c  -lm -o h_add
h_add.c:31: error: undefined reference to 'sp_verbose'
h_add.c:31: error: undefined reference to 'sp_verbose'
h_add.c:28: error: undefined reference to 'hs_getopt'
h_add.c:42: error: undefined reference to 'sp_verbose'
h_add.c:42: error: undefined reference to 'sp_get_version'
h_add.c:44: error: undefined reference to 'hs_optind'
h_add.c:50: error: undefined reference to 'hs_optind'
h_add.c:53: error: undefined reference to 'hs_optind'
h_add.c:55: error: undefined reference to 'hs_optind'
h_add.c:71: error: undefined reference to 'sp_create_header'
h_add.c:93: error: undefined reference to 'sp_write_header'
h_add.c:103: error: undefined reference to 'sp_fpcopy'
collect2: error: ld returned 1 exit status
make[2]: *** [h_add] Error 1

有人知道这个错误吗?

【问题讨论】:

  • 你到底想编译哪个包?你是什​​么步骤。你有哪个操作系统。请记住,您提供的信息越多,您得到答案的速度就越快。
  • 感谢 Nikolay 的回复。我在 ubuntu 上从 here 下载了 sphere_2.6a.tar.Z 但是当我尝试使用命令 sh src/scripts/install.sh 安装它时,我遇到了上面列出的错误。

标签: speech-recognition


【解决方案1】:

这里有一个新版本的sphere: http://www.nist.gov/itl/iad/mig/tools.cfm

语料库构建工具中的第二个工具。根据包的readme文件,已经在以下Plantforms上进行了测试:

Mac OS X (10.6)
Linux (Ubuntu 11.04)
Cygwin(Windows XP 下 1.7)

【讨论】:

  • 另一个链接在这里找到 jaguar.ncsl.nist.gov/pub 但它是 2.6 版本
  • 对于使用此版本的任何人,我不得不将lib/makes/make_spg.txt 中的$(EXECUTABLE): $(OBJ) $(PROJECT_ROOT)/lib/lib$(COMBINEDLIB).a $(CC) $(CFLAGS) $@.c $(OBJ) $(LLIBS) -o $@ 更改为$(EXECUTABLE): $(OBJ) $(PROJECT_ROOT)/lib/lib$(COMBINEDLIB).a $(CC) $(CFLAGS) $@.c $(OBJ) $(LLIBS) -o $@ -lm ,因为我遇到了类似于stackoverflow.com/questions/9145264/undefined-reference-to-log 的错误
【解决方案2】:

我建议使用Sound Exchange。它包括一个转换器:

sox foo.sph foo.wav

还有一个简单的播放器:

play foo.sph

它也得到了很好的维护,并且可以做各种其他有用的事情。您无需编译即可轻松下载软件包。

【讨论】:

  • 给我以下错误:sph: unsupported coding alaw
【解决方案3】:

sphere_2.6a.tar.Z 是非常过时的软件包,现代系统不支持

要解码 SPHERE 文件,请下载 sph2pipe:

ftp://ftp.ldc.upenn.edu/pub/ldc/misc_sw/sph2pipe_v2.5.tar.gz

ftp://ftp.ldc.upenn.edu/pub/ldc/misc_sw/sph2pipe_v2.5.README_1ST

【讨论】:

    猜你喜欢
    • 2022-11-05
    • 1970-01-01
    • 2018-07-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-20
    • 1970-01-01
    相关资源
    最近更新 更多