ラズベリーパイ3があり、オフラインsppechをテキスト認識に使用しようとしている。ここからJasper(Pocketsphinx)を実行するとランタイムエラーが発生する - 隠しマルコフモデルが見つからない
私が従っているインストール手順: http://jasperproject.github.io/documentation/installation/ 方法3:手動インストールはその後、その後、その後、SVOXピコTTSエンジンの依存関係をインストールし、PocketSphinx STTエンジンの依存関係をインストールし、ジャスパーをインストールします。 Pocketsphinx STTエンジンを構成するとき、私はここに問題を持っているhttp://jasperproject.github.io/documentation/configuration/
:
は、上記を行った後、私は設定に移動しました。手順は次のとおりです: "必要なソフトウェアをインストールし、FSTモデル(g014b2b.fst)と隠しマルコフモデルディレクトリ(hub4wsj_sc_8k)を探します。以下のパスが間違っている場合は、profile.ymlに正しいパスを追加してください: 私はどちらもここうーんディレクトリを見つけることができませんstt_engine: sphinx
pocketsphinx:
fst_model: '../phonetisaurus/g014b2b.fst' #optional
hmm_dir: '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k' #optional"
または他の場所 は/ usr/local/share/pocketsphinx /モデルで/ HMM/en_USの/ hub4wsj_sc_8k
FSTモデルは、しかし見つけることができる。
ので、 Jasperを実行しようとすると、次のエラーが表示されます。
**ERROR:client.stt:hmm_dir '/usr/local/share/pocketsphinx/model/hmm/en_US /hub4wsj_sc_8k' does not exist! Please make sure that you have set the correct hmm_dir in your profile.
ERROR:root:Error occured!
Traceback (most recent call last):
File "jasper.py", line 146, in
app = Jasper()
File "jasper.py", line 109, in init
stt_passive_engine_class.get_passive_instance(),
File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
return cls.get_instance('keyword', phrases)
File "/home/pi/jasper/client/stt.py", line 42, in get_instance
instance = cls(**config)
File "/home/pi/jasper/client/stt.py", line 105, in init
raise RuntimeError(msg)
RuntimeError: hmm_dir '/usr/local/share/pocketsphinx/model/hmm/en_US /hub4wsj_sc_8k' does not exist! Please make sure that you have set the correct hmm_dir in your profile**
隠れマルコフモデルディレクトリが見つからず、インストール方法を知っている人はいますか?
ありがとうございます。
おかげでそれを使用することができます。私は最初のものをやった。今私は次のエラーが表示されます: –
エラー:ルート:エラーが発生しました! トレースバック(最新の呼び出しの最後):__init__ stt_passive_engine_class.get_passive_instance()、 ファイルで アプリ=ジャスパー() ファイル "jasper.py" で ファイル "jasper.py"、ライン146、ライン109、 "/home/pi/jasper/client/stt.py"、48行目、get_passive_instance 戻るcls.get_instance( 'キーワード'、フレーズ) ファイル "/home/pi/jasper/client/stt.py"、行42、get_instanceで インスタンス= CLS(**設定) ファイル "/home/pi/jasper/client/stt.py"、ライン126、__init__ ** vocabulary.decoder_kwargsに) はTypeError:__init __()が得予期しないキーワード引数 'hmm –
pocketsphinxのバージョンあなたはインストールしましたか? jasper-masterバージョンを使用している場合は、pocketsphinx 0.8を試してください。 – G10DRAS