Skip to content

Vosk in unity android #1630

Open
Open
@b00lliie

Description

@b00lliie

Hello! I want to use vosk for my school project (android application). I always get this error even though I already added the libvosk.so files (this is where I got them: https://github.com/alphacep/vosk-api/releases).
this is where I placed them: BB\Assets\Plugins\Android

Also when I build it and inspect the apk I can see the libvosk.so files in there.

Error message:
DllNotFoundException: libvosk assembly: type: member:(null)
Vosk.Model..ctor (System.String model_path) (at Assets/Plugins/Vosk/Model.cs:32)
VoskSpeechRecognizer+d__5.MoveNext () (at Assets/_app/Scripts/VoskSpeechRecognizer.cs:46)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
VoskSpeechRecognizer:Start() (at Assets/_app/Scripts/VoskSpeechRecognizer.cs:27)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions