xiph / rnnoise

Recurrent neural network for audio noise reduction
BSD 3-Clause "New" or "Revised" License
4.1k stars 896 forks source link

Has anyone built this and tested the demo in Windows> #99

Open sumanrbt opened 4 years ago

sumanrbt commented 4 years ago

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?

BenedicteLeo commented 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.

BenedicteLeo commented 4 years ago

I just found this in the resolved issues: https://github.com/jagger2048/rnnoise-windows. I'm about to give it a try!

BenedicteLeo commented 4 years ago

The VS project works for me. I have no idea why the default example doesn't work.

LittleKita commented 4 years ago

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.

wegylexy commented 4 years ago

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).

petterreinholdtsen commented 3 years ago

I guess #88 indicate that someone is working on a Windows edition. It does not adjust the file opening mode, but perhaps it should.