我和visual社区一起编译的。
我最初想要测试的文件长达一个多小时,所以我尝试了3秒的音频,尽管如此,也发生了同样的事情。下面是我使用的命令行参数:
C:\path\to\pocketsphinx_continuous -infile C:\path\to\file.wav -hmm C:\path\to\en-us -kws_threshold 1e-40 -keyphrase "what I need to detect" -time yes我被告知要像这样转换文件:
ffmpeg -i file.mp3 -ar 16000 -ac 1 file.wav所以我做了,但我也尝试了没有转换。
当我运行这个程序时,程序似乎运行得很好,但是它在这里崩溃了:
INFO: tmat.c(206): Reading HMM transition probability matrices: en-us/transition_matrices在使用调试版本的sphinxbase.dll运行时,会弹出一个包含以下内容的警报:
Debug Assertion Failed!
Program: pocketsphinx_continuous.exe
File: minkernel\crts\ucrt\src\appcrt\lowio\read.cpp
Line: 387
Expression: _osfile(fh) & FOPEN就在坠机前。我已经尝试了我所能想到的一切,但是似乎没有什么是可行的,所以任何帮助都会受到极大的感谢。
发布于 2015-10-05 14:31:00
当您下载该文件时,bin/Release中已经编译好了二进制文件。使用这些而不是自己编译它。
感谢Nikolay Shmyrev
https://stackoverflow.com/questions/32906675
复制相似问题