mirror of
https://github.com/xiph/opus.git
synced 2025-05-31 07:37:42 +00:00
split model downloading away from autogen.sh
This commit is contained in:
parent
82c31b4c63
commit
be4f70bc7e
2 changed files with 12 additions and 6 deletions
|
@ -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
11
dnn/download_model.sh
Executable 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] .
|
Loading…
Add table
Add a link
Reference in a new issue