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

Recording byte rate falls drastically on long term usage - down to 12bytes #25

Open
shekit opened this issue Mar 21, 2017 · 2 comments
Open

Comments

@shekit
Copy link

shekit commented Mar 21, 2017

Hey,

I'm using node-record to listen for a hotword and then stream the rest of the command to a speech to text api. I have been facing some issues with my program failing to work after 15-16 hours and began tracking node-record. I realized that the recording byte rate is falling really low down to 12bytes before stopping completely. It also becomes very jumpy, jumping from between 12 and 44 bytes. At these rates it obviously is unable to stream anything useful. On restarting the application it begins recording again at 4000bytes.

I'm running it on a raspberry pi 3 using 'arecord' in an electron app.

Any idea why this would be happening?

@gillesdemey
Copy link
Owner

gillesdemey commented Apr 26, 2017

Can you try to isolate this and see if it's perhaps related to arecord on a RasPi? Am I understanding correctly that this occurs after 15-16 hours of continuous listening?

There isn't much complexity going on in this module, besides building the CLI command and returning stdout as a stream. My speculation is that this is either related to arec or a bug in Node Streams.

@shekit
Copy link
Author

shekit commented Apr 30, 2017

Yes that is correct, this usually occurs after several hours of continuous listening. I tried to isolate and see whether this is related to arecord only but it doesn't seem to be the case. There don't seem to be any memory issues either. Perhaps it's related to node streams?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants