<commit_before># Pihsi

Pihsi is a Ruby Speech Recognition toolkit based on [PocketSphinx](http://cmusphinx.sourceforge.net).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'pihsi'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install pihsi

## Usage

Initialize Pihsi::SpeechRecognizer with proper [hmm, lm and dict](http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx#initialization):

```ruby
recognizer = Pihsi::SpeechRecognizer.new hmm, lm, dict
```

Recognize a string read from your audio file:

```ruby
recognizer.recognize string_buffer
```

## Contributing

1. Fork it ( https://github.com/[my-github-username]/pihsi/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request<commit_msg>fix README.md fork description<commit_after># Pihsi

Pihsi is a Ruby Speech Recognition toolkit based on [PocketSphinx](http://cmusphinx.sourceforge.net).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'pihsi'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install pihsi

## Usage

Initialize Pihsi::SpeechRecognizer with proper [hmm, lm and dict](http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx#initialization):

```ruby
recognizer = Pihsi::SpeechRecognizer.new hmm, lm, dict
```

Recognize a string read from your audio file:

```ruby
recognizer.recognize string_buffer
```

## Contributing

1. Fork it ( https://github.com/siegfried/pihsi/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
{'fraction_non_alphanumeric': 0.11501079913606911, 'fraction_numerical': 0.005399568034557235, 'mean_word_length': 4.564564564564565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3882631', 'n_tokens_mistral': 654, 'n_tokens_neox': 598, 'n_words': 202}