alphacep / alphacep/vosk-unity-asr

DllNotFoundException in windows build

未关闭
#17 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
128
派生
26
PR 合并指标
30 天内没有已合并 PR

描述

I'm using Unity 2022, everything works fine in the editor, but in the Windows build I get an error.
Player log errors:
Fallback handler could not load library D:/Unity/Builds/vosk/New Unity Project_Data/MonoBleedingEdge/libvosk
DllNotFoundException: libvosk assembly: type: member:(null)
at (wrapper managed-to-native) Vosk.VoskPINVOKE.new_Model(string)
at Vosk.Model..ctor (System.String model_path) [0x00000] in D:\GitHub\my-vosk\Assets\ThirdParty\Vosk\Model.cs:32
at VoskSpeechToText+d__24.MoveNext () [0x000ae] in D:\GitHub\my-vosk\Assets\Scripts\VoskSpeechToText.cs:138
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00020] in C:\build\output\unity\unity\Runtime\Export\Scripting\Coroutines.cs:17

I checked the build folder and there was no libvosk.dll file there. If I just copy the necessary files into the build folder, everything works, but the problem is that they are not included in the build automatically. In the .dll file inspector, if you select the toggles x86 and x64 and click apply, their value is reset to false again.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。