diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-27 15:52:54 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-27 15:52:54 +0200 |
| commit | 5902f695fc0d7d706867d182c7a70fa9f0beac41 (patch) | |
| tree | 631c9202a7722707232ff57c1f468cccd9bd9d2c /client | |
| parent | 5d6d5177f9bf4947d861815db837dfb813a4964c (diff) | |
| download | jasper-client-5902f695fc0d7d706867d182c7a70fa9f0beac41.tar.gz jasper-client-5902f695fc0d7d706867d182c7a70fa9f0beac41.zip | |
Added missing import in stt.py
Diffstat (limited to 'client')
| -rw-r--r-- | client/stt.py | 3 |
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. |
