summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/stt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/stt.py b/client/stt.py
index 899775b..b4cc038 100644
--- a/client/stt.py
+++ b/client/stt.py
@@ -5,6 +5,7 @@ import traceback
import wave
import json
import tempfile
+import pkgutil
import logging
from abc import ABCMeta, abstractmethod
import requests
@@ -148,7 +149,7 @@ class PocketSphinxSTT(AbstractSTTEngine):
@classmethod
def is_available(cls):
- return (pkgutil.get_loader('pocketsphinx') is not None and os.path.exits(cls._get_hmm_dir()))
+ return (pkgutil.get_loader('pocketsphinx') is not None)
"""
Speech-To-Text implementation which relies on the Google Speech API.