2017-10-07 11:43:26 +09:00
|
|
|
---
|
|
|
|
title: OSXに音声解析エンジンJuliusを入れる with Homebrew
|
|
|
|
date: 2013-07-07 09:00:00 +09:00
|
2019-08-14 21:24:00 +09:00
|
|
|
redirect_from: /blog/2013/07/07/install-julius-with-homebrew
|
2017-10-07 11:43:26 +09:00
|
|
|
---
|
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
Homebrew を使って macOS に音声解析エンジン Julius をインストールします。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
|
|
|
# 前提
|
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
OS X 用のパッケージ管理ツール Homebrew がインストールされている必要がある。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
インストール方法
|
|
|
|
は[こちら](http://www.engineyard.co.jp/blog/2012/homebrew-os-xs-missing-package-manager/)を
|
|
|
|
参照。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
|
|
|
# インストール
|
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
デフォルトの Homebrew リポジトリに Julius は含まれていないので
|
|
|
|
、[homebrew-nlp](https://github.com/uetchy/homebrew-nlp) を tap する。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ brew tap uetchy/nlp
|
|
|
|
```
|
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
Tap し終わったら、`julius`と`julius-dictation-kit`をインストールする。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ brew install julius julius-dictation-kit
|
|
|
|
```
|
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
これで Julius と Julius ディクテーションキットがインストールされた。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
ディクテーションキットの場所は `brew --prefix julius-dictation-kit` コマンドで調
|
|
|
|
べられる。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
後は、上記の `brew --prefix` コマンドでディクテーションキット内の **main.jconf**
|
|
|
|
と **am-gmm.jconf** のパスを調べて `julius` に渡すことで音声認識が出来るようにな
|
|
|
|
る。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ julius \
|
|
|
|
-C `brew --prefix julius-dictation-kit`/share/main.jconf \
|
|
|
|
-C `brew --prefix julius-dictation-kit`/share/am-gmm.jconf
|
|
|
|
```
|
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
上記のコマンドで Julius は GMM モードで待機状態になり、喋った内容をリアルタイム
|
|
|
|
で音声認識してくれるようになる。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
2017-11-20 21:34:36 +09:00
|
|
|
Julius をより精密な DNN モードで起動したい場合は以下のように、**am-gmm.jconf**
|
|
|
|
を **am-dnn.jconf** に変更するだけだ。
|
2017-10-07 11:43:26 +09:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ julius \
|
|
|
|
-C `brew --prefix julius-dictation-kit`/share/main.jconf \
|
|
|
|
-C `brew --prefix julius-dictation-kit`/share/am-dnn.jconf
|
|
|
|
```
|
|
|
|
|
|
|
|
ディクテーションキットに関するドキュメントは下記のコマンドから参照可能だ。
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ open `brew --prefix julius-dictation-kit`/share/doc
|
|
|
|
```
|
|
|
|
|
|
|
|
### 実行中の様子
|
|
|
|
|
2018-06-18 14:04:33 +09:00
|
|
|

|