Picovoice / porcupine

On-device wake word detection powered by deep learning
https://picovoice.ai/
Apache License 2.0
3.67k stars 496 forks source link

Porcupine Issue:namespace name 'PorcupineManager' could not be found #1239

Closed MEOWJARVIS closed 1 month ago

MEOWJARVIS commented 6 months ago

Have you checked the docs and existing issues?

SDK

Unity

Porcupine package version

3.0.2

Framework version

Unity 2021.3.33

Platform

Windows (x86_64)

OS/Browser version

Windows10.0

Describe the bug

Subject: Error CS0246: Unable to Find PorcupineManager in Unity Script Dear laves, Firstly, I'd like to express my gratitude for your work on the Porcupine Unity package. I'm encountering an issue while trying to use the PorcupineManager in Unity. Despite importing the Pv.Unity namespace using using Pv.Unity;I continue to receive the following error:Error CS0246: The type or namespace name 'PorcupineManager' could not be found (are you missing a using directive or an assembly reference?) Could you please provide guidance on how to resolve this error?

Steps To Reproduce

1.download picovoice Unity sdk 2.code: string accessKey = "${ACCESS_KEY}"; // // AccessKey obtained from Picovoice Console (https://console.picovoice.ai/)

List keywordPaths = new List() { "/path/to/keyword/file/one.ppn", "/path/to/keyword/file/two.ppn" }; string modelPath = "path/to/model/file.pv"; List sensitivities = new List(){ 0.25f, 0.6f };

PorcupineManager _porcupineManager = PorcupineManager.FromKeywordPaths( accessKey, keywordPaths, OnWakeWordDetected, modelPath: modelPath, sensitivities: sensitivities, errorCallback: OnError);

void OnError(Exception ex){ Debug.LogError(ex.ToString()); }

Expected Behavior

I expect the PorcupineManager to be accessible and functional within my Unity script, allowing me to detect wake words as intended.Thank you for your assistance with this matter.

Best regards, Jarvis

ErisMik commented 1 month ago

@MEOWJARVIS My apologies for the late reply, and thank you for using the issue template. Could you try running the provided demo and seeing if Porcupine works? This let's us know whether it's an issue with your Unity setup or with the usage of the binding.

ksyeo1010 commented 1 month ago

Closing due to inactivity.