Open sumanrbt opened 4 years ago
I did build an exe in Windows. However, when I run it it only produces garbage.
To build the demo, install Mingw and add its binary path to the path environment variables. I think you also need to add the msys binary path that comes with Mingw. Then you can run autogen, configure and make.
The input I pass in is a raw pcm 48kHz 16bit little endian file of size ~1000kB. The output I get is 40kB, lasts way shorter and sounds like a high pitch scratch. I've tried every possible input possible (different endianness, etc.) and nothing works. Please let me know if it works for you.
I just found this in the resolved issues: https://github.com/jagger2048/rnnoise-windows. I'm about to give it a try!
The VS project works for me. I have no idea why the default example doesn't work.
It also run on cygwin. You can build and run the rnnoise_demo.exe, just as if you were doing it under linux. (./autogen.sh ./configure make) If you want the run the exe outside of cygwin you need the cygwin1.dll in the same directory. For compiling it is better to use the cygwin-gcc not the cygwin-minggw-gcc.
You need to read and write files in binary mode (rb
and wb
) on Windows, because \r
and \n
are handled differently in text mode (r
and w
).
I guess #88 indicate that someone is working on a Windows edition. It does not adjust the file opening mode, but perhaps it should.
I cloned the repo and built it using WSL ubuntu and the demo is working, is there a way to get a .exe of this project?