vocalkitについて
DESCRIPTION
2010年12月4日に行われたyidev(横浜iPhone開発者勉強会)第七回で話した際の資料です。 iPhone SDKで利用できる音声認識ライブラリ(Pocket Sphinxのラッパー)VocalKitの紹介です。TRANSCRIPT
![Page 1: VocalKitについて](https://reader035.vdocuments.pub/reader035/viewer/2022080212/559b822a1a28ab15768b481c/html5/thumbnails/1.jpg)
VocalKitについて@shu223
2010年12月4日土曜日
![Page 2: VocalKitについて](https://reader035.vdocuments.pub/reader035/viewer/2022080212/559b822a1a28ab15768b481c/html5/thumbnails/2.jpg)
自己紹介•今年2月カヤック入社• iPhoneアプリ専任•カヤックでつくったアプリ
2010年12月4日土曜日
![Page 3: VocalKitについて](https://reader035.vdocuments.pub/reader035/viewer/2022080212/559b822a1a28ab15768b481c/html5/thumbnails/3.jpg)
勇気をください•「勇気をください」と言うと、勇気の出るエピソードが表示される
2010年12月4日土曜日
![Page 4: VocalKitについて](https://reader035.vdocuments.pub/reader035/viewer/2022080212/559b822a1a28ab15768b481c/html5/thumbnails/4.jpg)
VocalKitとは?
•オープンソースの音声認識エンジン、Sphinxのラッパー
• https://github.com/KingOfBrian/VocalKit
2010年12月4日土曜日
![Page 5: VocalKitについて](https://reader035.vdocuments.pub/reader035/viewer/2022080212/559b822a1a28ab15768b481c/html5/thumbnails/5.jpg)
使い方•録音を開始する[vk startListening];
• 認識を開始する[vk postNotificationOfRecognizedText];
• 認識結果を受け取る(NSNotificationが飛んでくる)
2010年12月4日土曜日
![Page 6: VocalKitについて](https://reader035.vdocuments.pub/reader035/viewer/2022080212/559b822a1a28ab15768b481c/html5/thumbnails/6.jpg)
単語辞書•単語名 音素1 音素2 音素3...• 同じ単語を複数の発音で定義したい場合は(2)とか(3)とかつける
•単語名は何でもいいわけじゃないらしいme!M IYencourage!EH N K ER IH JHencourage(2)!IH N K ER AH JH
2010年12月4日土曜日
![Page 7: VocalKitについて](https://reader035.vdocuments.pub/reader035/viewer/2022080212/559b822a1a28ab15768b481c/html5/thumbnails/7.jpg)
認識結果•NSNotificationのUserInfoプロパティ
NSDictionary *dict = [notification userInfo]; NSString *phrase = [dict objectForKey:VKRecognizedPhraseNotificationTextKey];NSNumber *score = [dict objectForKey:VKRecognizedPhraseNotificationScoreKey];
2010年12月4日土曜日
![Page 8: VocalKitについて](https://reader035.vdocuments.pub/reader035/viewer/2022080212/559b822a1a28ab15768b481c/html5/thumbnails/8.jpg)
辞書作成のコツ
•単語数が多いと、処理も重いし認識率も悪い1. まず標準の辞書で、認識結果をためしてみる(sayコマンド便利)
2. 出てきた単語だけで辞書を再構成する
2010年12月4日土曜日