Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
MEOWJARVIS opened this issue Mar 9, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
question Further information is requested

Comments

@MEOWJARVIS
Copy link

MEOWJARVIS commented Mar 9, 2024

Have you checked the docs and existing issues?

  • I have read all of the relevant Picovoice Porcupine docs
  • I have searched the existing issues for Porcupine

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

@MEOWJARVIS MEOWJARVIS added the bug Something isn't working label Mar 9, 2024
@ErisMik ErisMik self-assigned this Mar 11, 2024
@ErisMik ErisMik added question Further information is requested and removed bug Something isn't working labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants