split model downloading away from autogen.sh

This commit is contained in:
Jean-Marc Valin 2021-10-04 15:51:06 -04:00
parent 82c31b4c63
commit be4f70bc7e
2 changed files with 12 additions and 6 deletions

View file

@ -7,12 +7,7 @@ test -n "$srcdir" && cd "$srcdir"
#SHA1 of the first commit compatible with the current model
commit=b7d25ac
if [ ! -f lpcnet_data-$commit.tar.gz ]; then
echo "Downloading latest model"
wget https://media.xiph.org/lpcnet/data/lpcnet_data-$commit.tar.gz
fi
tar xvf lpcnet_data-$commit.tar.gz
./download_model.sh $commit
echo "Updating build configuration files for lpcnet, please wait...."

11
dnn/download_model.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
model=lpcnet_data-$1.tar.gz
if [ ! -f $model ]; then
echo "Downloading latest model"
wget https://media.xiph.org/lpcnet/data/$model
fi
tar xvf $model
mv src/*.[ch] .