Picovoice / picovoice

On-device voice assistant platform powered by deep learning
Apache License 2.0
577 stars 109 forks source link

Error on Leopard build when using custom model #747

Closed Stexjy closed 11 months ago

Stexjy commented 11 months ago

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)

ErisMik commented 11 months ago

Hi, could you please provide some additional information for your report:

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.

Stexjy commented 11 months ago

Thanks for the reply, I didn't realize I was quite a few versions behind with the sdk. Updating it fixed everything