From 0269a10833bd7ffae0177255bf5be440a2ee2b30 Mon Sep 17 00:00:00 2001 From: Nickolay Shmyrev Date: Tue, 13 Oct 2020 01:28:46 +0200 Subject: [PATCH] Critical ivector bugfix and version 0.3.15 --- android/build.gradle | 2 +- nodejs/package.json | 2 +- python/setup.py | 2 +- src/model.cc | 2 ++ travis/Dockerfile.dockcross | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 9e600af3..bc3d20fd 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -14,7 +14,7 @@ plugins { } def archiveName = "vosk-android" -def libVersion = "0.3.13" +def libVersion = "0.3.15" allprojects { repositories { diff --git a/nodejs/package.json b/nodejs/package.json index b6c75f04..6111aee3 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -1,6 +1,6 @@ { "name": "vosk", - "version": "0.3.8", + "version": "0.3.15", "description": "Node binding for continuous offline voice recoginition with Vosk library.", "repository": { "type": "git", diff --git a/python/setup.py b/python/setup.py index 4501c921..d8b5d1b9 100644 --- a/python/setup.py +++ b/python/setup.py @@ -73,7 +73,7 @@ def run(self): setuptools.setup( name="vosk", - version="0.3.14", + version="0.3.15", author="Alpha Cephei Inc", author_email="contact@alphacephei.com", description="Offline open source speech recognition API based on Kaldi and Vosk", diff --git a/src/model.cc b/src/model.cc index 944436fa..7a102b0f 100644 --- a/src/model.cc +++ b/src/model.cc @@ -225,6 +225,8 @@ void Model::ReadDataFiles() ivector_extraction_opts.global_cmvn_stats_rxfilename = model_path_str_ + "/ivector/global_cmvn.stats"; ivector_extraction_opts.diag_ubm_rxfilename = model_path_str_ + "/ivector/final.dubm"; ivector_extraction_opts.ivector_extractor_rxfilename = model_path_str_ + "/ivector/final.ie"; + ivector_extraction_opts.max_count = 100; + feature_info_.use_ivectors = true; feature_info_.ivector_extractor_info.Init(ivector_extraction_opts); } else { diff --git a/travis/Dockerfile.dockcross b/travis/Dockerfile.dockcross index 10a91a0d..f826e1e1 100644 --- a/travis/Dockerfile.dockcross +++ b/travis/Dockerfile.dockcross @@ -90,7 +90,7 @@ RUN cd /opt \ && cd kaldi/tools \ && git clone -b v0.3.7 --single-branch https://github.com/xianyi/OpenBLAS \ && make PREFIX=$(pwd)/OpenBLAS/install TARGET="${OPENBLAS_ARCH}" HOSTCC=gcc USE_LOCKING=1 USE_THREAD=0 -C OpenBLAS all install \ - && git clone https://github.com/alphacep/openfst openfst \ + && git clone -b old-gcc --single-branch https://github.com/alphacep/openfst openfst \ && cd openfst \ && autoreconf -i \ && ./configure --prefix=/opt/kaldi/tools/openfst --enable-static --enable-shared --enable-far --enable-ngram-fsts --enable-lookahead-fsts --with-pic --disable-bin --host=${CROSS_TRIPLE} --build=x86-linux-gnu \