libvosk library not found
08:05 08 Jan 2026

I'm currently writing a personal MAUI application that should be able to listen to microphone input, recognize a set of words and do something with them.

I started using Vosk library, which is terribly great and my code works without any problem when I test it on Windows; unfortunately when I try to debug it on Android I get an exception stating

System.DllNotFoundException: libvosk
   at Vosk.Vosk.SetLogLevel(Int32 level)

This error raises when I try to instantiate VoskService class:

public class VoskService : IDisposable
    public VoskService(string modelPath)
    {
        Vosk.Vosk.SetLogLevel(0);
        _model = new Model(modelPath);
    }
}

In my MAUI project I used nuget package:

dotnet add package Vosk

In Windows a vosk folder has been created inside .nuget/packages folder and win-x64 files (several DLLs) have been linked to the project, so I suppose those are libraries needed, e.g. libvosk.dll.
Unfortunately i don't know if I have to copy those libraries inside my Android app folder or what else to make it work.

maui maui-android vosk