前段时间,我用 Visual Studio 编写了一个 Text to Speech 和 Speech to Text 机器人。它在我的 Windows PC 上运行良好。我决定将这个软件带到带有 Raspbian 的 Raspberry Pi 4 上,但是当我尝试加载我的应用程序时,弹出了这个错误:
Unhandled Exception: System.TypeLoadException: Could not load type of field 'MyAppName.Form1:speechRecognizer' (2) due to: Could not load file or assembly 'Microsoft.CognitiveServices.Speech.csharp, Version=1.6.0.28, Culture=neutral, PublicKeyToken=d2e6dcccb609e663' or one of its dependencies. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'MyAppName.Form1:speechRecognizer' (2) due to: Could not load file or assembly 'Microsoft.CognitiveServices.Speech.csharp, Version=1.6.0.28, Culture=neutral, PublicKeyToken=d2e6dcccb609e663' or one of its dependencies.
我是 Linux 新手,不知道如何解决这个问题!