Tag: flite

Flite tts demo无法运行

我最近一直在尝试在我的项目中使用Flite文本到语音系统(2.0),当我调用flite_text_to_speech() ,程序将退出并显示以下消息: VAL: tried to access lexicon in -1 type val 我根据Flite文档中提供的代码制作了一个小测试程序: /* File: test.cpp */ #include int main(int argc, char **argv) { cst_voice *v; flite_init(); v = new_voice(); flite_text_to_speech(“This is a test”,v,”play”); return 0; } 这完全符合: g++ -Wall -g -o flite_test test.cpp -I/usr/local/include/flite -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite -lasound -lm 但是,当我运行./flite-test时,我仍然得到同样的错误: VAL: tried to access […]