From 82817f38203580d18bfd6ec5170f07d8d7ba236c Mon Sep 17 00:00:00 2001 From: David Date: Sat, 23 Mar 2019 18:52:59 +1030 Subject: [PATCH] downloads ready made nnet_data files --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bcd9a84..dc560c5 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ -# Makefile for LPCNet +# Makefile for FreeDV vesion of LPCNet +# TODO: 1/ Will this work win corss compiling for Windows? +# 2/ Should this standardise on just AVX? As machine we run on +# may be different to machine we build on CC=gcc CFLAGS+=-Wall -W -Wextra -Wno-unused-function -O3 -g -I../include -MD LDFLAGS+=-Lsrc @@ -16,6 +19,7 @@ CFLAGS+=-mavx endif endif +# RPi ifneq ($(NEON),0) CFLAGS+=-mfpu=neon -march=armv8-a -mtune=cortex-a53 endif @@ -26,6 +30,11 @@ all: $(PROG) LIB=./src/liblpcnetfreedv.a +# grab latest NN model (or substitute your own) +src/nnet_data.c src/nnet_data.h: + wget -N http://rowetel.com/downloads/deep/lpcnet_190215.tgz -O src/lpcnet_190215.tgz + cd src; tar xzf lpcnet_190215.tgz + lpcnet_freedv_objs := src/freq.o src/kiss_fft.o src/celt_lpc.o src/pitch.o src/codec2_pitch.o \ src/mbest.o src/lpcnet_quant.o src/4stage_pred_vq.o src/lpcnet_dump.o \ src/4stage_pred_vq.o src/4stage_direct_split_vq.o \