我正在创建一个使用Azure认知服务的语音方面的程序。当我仅通过控制台打印部署可执行文件(.exe)时,它就可以正常工作。该程序在VS代码环境中与Azure Voice完美配合,但一旦将其部署为可执行文件(.exe),它将完全出错,并出现以下错误:
RuntimeError: Exception with an error code: 0x38 (SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND)
[CALL STACK BEGIN]
> property_bag_copy
- synthesizer_create_speech_synthesizer_from_config
- synthesizer_create_speech_synthesizer_from_config
- 00007FFECED052D4 (SymFromAddr() error: Attempt to access invalid address.)
- 00007FFECED4DA6E (SymFromAddr() error: Attempt to access invalid address.)
- 00007FFECED4E0F3 (SymFromAddr() error: Attempt to access invalid address.)
- PyArg_ParseTuple_SizeT
- PyEval_EvalFrameDefault
- PyFunction_Vectorcall
- PyEval_EvalFrameDefault
- PyObject_GC_Del
- PyFunction_Vectorcall
- PyType_GenericNew
- PyType_GenericNew
- PyObject_MakeTpCall
- PyEval_EvalFrameDefault
[CALL STACK END]
我已尝试重新安装所有依赖项
该错误表示无法找到音频系统库/
如果无法访问依赖项dll,则可能会出现此错误:
Microsoft.CognitiveServices.Speech.extension.audio.sys.dll
在将此dll转换为exe之前,可以将其添加到包中
该文件将位于安装python语音模块的位置
相关问题 更多 >
编程相关推荐