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

what are the changes to be made if we want too change the FRAME SIZE from 480 to 160? #236

Open
sanjuktasr opened this issue Aug 22, 2024 · 2 comments

Comments

@sanjuktasr
Copy link

sanjuktasr commented Aug 22, 2024

by changing the the frame size from 480 to 160 and not changing anything else the code is not working. there is some memory issues? What are the respective changes needed to be made if the frame size has to be 160? getting stack smashing error after changing FRAME SIZE to 160 and PITCH_FRAME_SIZE to 320 keeping the original 480:960 ratio?

@gbernaldo82
Copy link

I don't know if this is going to help you, but I tried to change those macros from 480 to 160 cause I need those values too but in my case it didn't work. I rebuilt the library and I installed it and I tested the demo which comes with the source but it didn't work anyway. I think it didn't work because I need to retrain the model again but I'm not sure, sorry I'm not an expert in ML or that stuff. So finally, I left those macros untouched.

@LigangSun
Copy link

I think, you don't need to change the frame size;
Instead, create a buffer with size 480, and fill your 160 frame samples into 480 buffer, and keep the reset part of the buffer 0. after denoise with rnnoise, get the result from the 480 buffer and fill back to you frame;

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

3 participants