shithub: opus

Download patch

ref: 849f3abf32c6df7a613c5bb4ca6a85693ffaddd2
parent: a0b0ece171d94c3ffc88f5daaaee37136ff2437b
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Mon Mar 18 17:43:36 EDT 2019

Making autogen.sh download and unpack the model

--- a/dnn/autogen.sh
+++ b/dnn/autogen.sh
@@ -5,6 +5,15 @@
 srcdir=`dirname $0`
 test -n "$srcdir" && cd "$srcdir"
 
+#SHA1 of the first commit compatible with the current model
+commit=8ea8396
+
+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
+
 echo "Updating build configuration files for lpcnet, please wait...."
 
 autoreconf -isf
--