alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
8.06k stars 1.11k forks source link

C#. Attempted to read or write protected memory #1238

Closed Neogamezzz closed 1 year ago

Neogamezzz commented 1 year ago

C# console aplication: VoskRecognizer rec = new VoskRecognizer(model, 16000.0f);

Error: System.AccessViolationException HResult=0x80004003 Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Source= StackTrace:

![Screenshot 2022-12-25 034025](https://user-images.githubusercontent.com/47366635/209455473-e6bda0ec-daf2-40e3-8b0b-7fa0c1af9e1f.jpg)
nshmyrev commented 1 year ago

You probably didn't download the model, same as #824