drowe67 / LPCNet

Experimental Neural Net speech coding for FreeDV
BSD 3-Clause "New" or "Revised" License
68 stars 25 forks source link

[Win32] Generating nnet_data.[ch] #35

Closed gvanem closed 4 years ago

gvanem commented 4 years ago

I'm on Windows trying to build this library using a hacked up GNU-makefile (since Cmake fails).

In the process I need to generate src/nnet_data.c and src/nnet_data.h using the Python script src/dump_lpcnet.py. I already managed to pip install keras, but the requirement tensorflow seems impossible:

Collecting tensorflow
  ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

What? How are we supposed to generate these files?

hobbes1069 commented 4 years ago

Currently Win32 builds are typically cross-compiled from Linux using MinGW. What development tools are you using?

gvanem commented 4 years ago

I use clang-cl and MSVC-2019. But I found the needed files in this .tar-ball: https://media.xiph.org/lpcnet/data/lpcnet_data-8ea8396.tar.gz

gvanem commented 4 years ago

Trying to build Tensorflow myself using vcpkg install tensorflow-cc:x86-windows, gives me:

...
CMake Error at ports/tensorflow-cc/portfile.cmake:4 (message):
  TensorFlow does not support 32bit systems.

Thanks Google!