From 5902f695fc0d7d706867d182c7a70fa9f0beac41 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 27 Sep 2014 15:52:54 +0200 Subject: Added missing import in stt.py --- client/stt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit v1.3.1