-
Notifications
You must be signed in to change notification settings - Fork 913
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
Python - end to end instruction on using this library easily (also in notebook) #69
Comments
Step by step instructionsPython librariesUse your package manager to install
Versions do not matter Library installation
Code
Let's try it
|
I was able to get this working after passing None into init of the RNNoise class as such:
|
Is there a way with python (or matlab) to return the features? Thanks! |
You need to import Line 306 in 9acc1e5
I don't know how to do it. But if you find a way post it here please. p.s. @snakers4 btw thanks for open_stt! |
Thanks, I have a windows though and I don't think I can run autogen.sh on it. I'll post if I find a way around. |
The example works as it should! I managed to inference an exported tflite model with a little bit of debugging. There is a way to separate the functionality into three parts (feature_extraction -> tflite_inference -> meta_process). The only difficult part is to properly allocate the numpys in Python, create c_type pointers and pass them by reference to the C functions. The C functions looks like this : Pre-process (feature extraction)
Meta-process
|
hey can you help why none worked |
@pranshurastogi29 In the rnnoise_demo.c file provided you'll see that the rnnoise_create() function is called with NULL passed in as its only parameter. I'm guessing that something needs to be passed in when we call rnnoise_create() in our Python script, so in a way None can act as the Python equivalent of NULL - but that's just a guess. |
Hi! I had Segmentation fault when running this example, but during debugging I found out that adding |
You can do this on Linux. |
However, just as you mentioned, adding print() before the denoiser initialization (denoiser = RNNoise()) doesn't work for me. Do you know what cause such segmentation fault, Thx. |
rnnoise_create requires a parameter since 231b9c02 (2019-05-29). the parameter denotes the model to use; NULL can be used as default. if this parameter is not added, mysterious segfaults occur: xiph/rnnoise#69 (comment)
Will post this instruction shortly
The text was updated successfully, but these errors were encountered: