diff --git a/Dockerfile b/Dockerfile index 3951b37..df091b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM python:3.7 COPY . /app WORKDIR /app -RUN wget https://github.com/robinhad/voice-recognition-ua/releases/download/v0.1/uk.tflite -RUN wget https://github.com/mozilla/DeepSpeech/releases/download/v0.7.3/deepspeech-0.7.3-models.tflite +RUN wget https://github.com/robinhad/voice-recognition-ua/releases/download/v0.2/uk.tflite +RUN wget https://github.com/mozilla/DeepSpeech/releases/download/v0.9.1/deepspeech-0.9.1-models.tflite RUN pip install -r requirements.txt CMD uwsgi app.ini --http 0.0.0.0:$PORT \ No newline at end of file diff --git a/README.md b/README.md index b2886ad..070d026 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # voice-recognition-ua How to run: 1. Make sure to download: -2. https://github.com/robinhad/voice-recognition-ua/releases/download/0.1/uk.tflite -3. https://github.com/mozilla/DeepSpeech/releases/download/v0.7.3/deepspeech-0.7.3-models.tflite +2. https://github.com/robinhad/voice-recognition-ua/releases/download/v0.2/uk.tflite +3. https://github.com/mozilla/DeepSpeech/releases/download/v0.9.1/deepspeech-0.9.1-models.tflite How to launch: ``` diff --git a/client.py b/client.py index 1a298c5..7bc97b1 100644 --- a/client.py +++ b/client.py @@ -19,7 +19,7 @@ def client(audio_file, lang="uk"): if lang == "uk": model = "./uk.tflite" if lang == "en": - model = "./deepspeech-0.7.3-models.tflite" + model = "./deepspeech-0.9.1-models.tflite" ds = Model(model) # sphinx-doc: python_ref_model_stop diff --git a/requirements.txt b/requirements.txt index f2aae1c..3aa9338 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ Flask==1.1.2 -deepspeech-tflite==0.7.3 +deepspeech-tflite==0.9.1 numpy==1.17.0 uwsgi==2.0.19.1 \ No newline at end of file