complete revamps
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-24 03:20:02 +09:00
parent aca29317c6
commit 9a9c2343d1
66 changed files with 13682 additions and 4599 deletions

View File

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

View File

@@ -10,7 +10,7 @@ redirect_from: "/blog/2013/11/05/osx-http-proxy"
Mac のネットワーク環境は`networksetup -getcurrentlocation`コマンドで取得することが出来るので、
**.zshrc** 辺りに以下のシェルスクリプトを書いておけば Terminal で新しいタブを開いた時に自動でプロキシを設定してくれるはずである
**.zshrc** 辺りに以下のシェルスクリプトを書いておけば Terminal で新しいタブを開いた時に自動でプロキシを設定してくれる。
```bash
proxy=proxy.hogehoge.ac.jp
@@ -39,7 +39,7 @@ git config --global url."https://".insteadOf git://
先ほどのコマンドと組み合わせることで最終的なコードは以下のようになる。
```bash:switch_proxy.sh
```bash switch_proxy.sh
proxy=proxy.hogehoge.ac.jp:80
switch_trigger=大学
@@ -83,13 +83,12 @@ fi
このコードを **.zshrc** に保存して適当なターミナルで新しいセッションを開くと、`switch_trigger`で指定されたネットワーク環境下にいる時だけプロキシを通すことが出来る。
既に開いているセッションに対してプロキシを適用する方法わからなかった。
しかし既に開いているセッションに対してプロキシを適用する方法わからなかった。
Workaround として、コードを **~/.switch_proxy** 辺りに置いて、
```bash:~/.zshrc
```bash ~/.zshrc
alias nswitch=~/.switch_proxy
```
```
と`.zshrc`に書いておくことで、`nswitch`とタイプしてプロキシを切り替えられるようになる。
```

View File

@@ -8,7 +8,7 @@ redirect_from: "/blog/2013/12/05/qiita-alfred-workflow"
そこで、以前作った[Qiita の記事をインクリメンタルサーチする Alfred 2 Workflow](http://qiita.com/o_ame/items/f23e75bfc11e9e7b3a08)に、ストックした投稿を検索するコマンドを追加した。
![s1.png](/uploads/alfred-qiita-workflow.png)
![](/uploads/alfred-qiita-workflow.png)
> [Github リポジトリ](https://github.com/uetchy/alfred-qiita-workflow)から[ダウンロード](https://github.com/uetchy/alfred-qiita-workflow/archive/master.zip)