From ffd810fe00d42a30d80ef626e1f3115837446360 Mon Sep 17 00:00:00 2001 From: Nickolay Shmyrev Date: Wed, 22 Apr 2020 22:15:45 +0200 Subject: [PATCH] Fix threading bug --- python/setup.py | 2 +- src/vosk.i | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/python/setup.py b/python/setup.py index 020f904a..6a71a685 100644 --- a/python/setup.py +++ b/python/setup.py @@ -7,7 +7,7 @@ setuptools.setup( name="vosk", # Replace with your own username - version="0.3.4", + version="0.3.5", author="Alpha Cephei Inc", author_email="contact@alphacephei.com", description="API for Kaldi and Vosk", diff --git a/src/vosk.i b/src/vosk.i index 04b5d090..286406bf 100644 --- a/src/vosk.i +++ b/src/vosk.i @@ -1,4 +1,4 @@ -%module(package="vosk") vosk +%module(package="vosk", "threads"=1) vosk %include @@ -10,8 +10,6 @@ %include #endif - - #if SWIGPYTHON %pybuffer_binary(const char *data, int len); #endif