-
Notifications
You must be signed in to change notification settings - Fork 9
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
Picovoice Error (code 00000136
) when running cobra on RPI via Node
#210
Comments
Which Raspberry Pi model are you using? Are you using Debian directly or via the Rpi OS? Are you using 32-bit or 64-bit for Debian? |
64bit raspberry pi OS installed via pi imager. |
Thanks, and which model are you using? |
Ah, sorry. It's 3 B. |
I'm not able to reproduce the error on my device. Could you give our Node.js demo a try and confirm that that works on your device? |
Just tested. It is the same error via the demo:
The following command records the wav with the input from mic:
|
Is your device connected to internet while initializing? |
Ah, I ran the demo using the full RPi OS instead of the Lite - it's possible you're missing a package. We use mini audio to access the recording device. Could you run one of their examples and make sure mini audio is recording properly? Alternatively, you can also try our file demo instead, which doesn't require any recording device. |
I didn't find a quick and easy way to check if it is working in their docs. The example page you referenced doesn't make a lot of sense to me honestly. Maybe you could suggest which steps I should perform to validate mini audio. |
Here's how you can run the examples:
If this doesn't work, it would be helpful if you could try our file demo and see if that works. |
I was able to play audio file via compiled miniaudio. How it can help though? |
Can you try the simple capture example to see if you can record audio, since that is how PvRecorder will be used? As well, please also try our file demo so we can see if Cobra can initialize. |
I just checked the simple capture example. Indeed it seems smth is missing:
|
Okay, so since it seems like the issue stems from miniaudio, I recommend you check out the miniaudio docs and see if you can get it working on your device. |
Closing because this seems like an issue with miniaudio/audio recording and not cobra |
Have you checked the docs and existing issues?
SDK
Node.js
Cobra package version
2.0.0
Framework version
Node v18.19.0
Platform
Raspberry Pi
OS/Browser version
Debian GNU/Linux 12 (bookworm)
Describe the bug
Running the Cobra on the device gives an initialization error.
An API key is correctly set up, and the internet connection and USB microphone suppose to work.
The error I am getting that doesn't make a lot of sense:
Steps To Reproduce
Expected Behavior
The error message gives more details, or the error code is described in Picovoise documentation.
The text was updated successfully, but these errors were encountered: