Closed Stexjy closed 11 months ago
Hi, could you please provide some additional information for your report:
OS
and OS
version are you using?SDK
are you using and what is the version of the SDK
and the language
?Based off what you've given me please ensure that path to the model (.pv
) is correct and that it's version matches the version of your leopard
sdk.
Thanks for the reply, I didn't realize I was quite a few versions behind with the sdk. Updating it fixed everything
this.leopard = new Leopard.Builder() .setAccessKey(accessKey) .setModelPath("C:\Users\goost\Documents\Development\Progetti\CustomAI\src\main\resources\leopard.pv") .build();
if I don't use custom model path then it works just fine
Error: ai.picovoice.leopard.LeopardIOException: Initialization failed. at ai.picovoice.leopard.LeopardNative.init(Native Method) at ai.picovoice.leopard.Leopard.(Leopard.java:54)
at ai.picovoice.leopard.Leopard.(Leopard.java:21)
at ai.picovoice.leopard.Leopard$Builder.build(Leopard.java:231)
at customai.speech_recognition.SpeechRecognition.instantiateLeopard(SpeechRecognition.java:30)
at customai.speech_recognition.SpeechRecognition.(SpeechRecognition.java:21)