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

Android SDk - java.io.IOException: Initialization failed. #96

Closed
vinitagetaido opened this issue Jun 24, 2021 · 3 comments
Closed

Android SDk - java.io.IOException: Initialization failed. #96

vinitagetaido opened this issue Jun 24, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@vinitagetaido
Copy link

vinitagetaido commented Jun 24, 2021

Did not get params.pv file
After saving .ppn file in android , app giving null pointer exception.

Expected behaviour

Porcupine should run and able to detect custom wake word

Actual behaviour

IO error and porcupine null pointer exception

Steps to reproduce the behaviour

porcupineManager = new PorcupineManager.Builder()
.setKeywordPath(keywordFilePath)
.build(getApplicationContext(),
new PorcupineManagerCallback() {
@OverRide
public void invoke(int keywordIndex) {
}
});
}
});
} catch (PorcupineException e) {
Log.i("exception ",e.toString());
}

@vinitagetaido vinitagetaido added the bug Something isn't working label Jun 24, 2021
@dbartle dbartle added help wanted Extra attention is needed and removed bug Something isn't working labels Jun 24, 2021
@dbartle
Copy link
Contributor

dbartle commented Jun 24, 2021

  1. Please format your code to be more legible. I also don't see where you're actually setting the keyword path.

  2. The keyword files generated with Picovoice Console are not permitted for distribution, so do not attach them.

  3. Can you reproduce this issue using the Android demo? This will provide the most straightforward path to a resolution, as we support our demo code. We generally do not assist with 3rd party code.

  4. The subject mentions a model .pv file, but the content of your message is talking about keyword (.ppn) file. Can you clarify why you mentioned the .pv file?

@vinitagetaido
Copy link
Author

vinitagetaido commented Jun 25, 2021

When I have created a custom wake word from an enterprise account, I got a .ppn file.
I have added that ppn file in raw folder and given the path inside setKeywordPath(keywordFilePath).
Thats it . But every time I ran the app , it gives null pointer exception.
ai.picovoice.porcupine.PorcupineException: java.io.IOException: Initialization failed.
Thanks for any help.

@vinitagetaido vinitagetaido changed the title Android SDk - where to get params.pv file , Android SDk - java.io.IOException: Initialization failed. Jun 25, 2021
@dbartle
Copy link
Contributor

dbartle commented Jun 25, 2021

You should be able to recreate this issue using the Android demo, and then provide us all of the relevant changes that you applied. You did not provide the information needed to help, so I am closing this issue.

@dbartle dbartle closed this as completed Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants