Pihsi is a Ruby Speech Recognition toolkit based on PocketSphinx.
Add this line to your application's Gemfile:
gem 'pihsi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pihsi
Initialize Pihsi::SpeechRecognizer with proper hmm, lm and dict:
recognizer = Pihsi::SpeechRecognizer.new hmm: 'xxx', lm: 'yyy', dict: 'zzz'
Recognize a string read from your audio file or an object respond to #read (IO object):
recognizer.recognize data
- Fork it ( https://github.com/siegfried/pihsi/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request