Skip to content

Commit

Permalink
fix bugfix :P
Browse files Browse the repository at this point in the history
  • Loading branch information
l3thal committed Mar 5, 2013
1 parent 2d36fac commit fe71142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/speech/audio_to_text.rb
Expand Up @@ -65,7 +65,7 @@ def convert_chunk(easy, chunk, options={})
self.captured_json['status'] = data['status']
self.captured_json['id'] = data['id']
self.captured_json['hypotheses'] = data['hypotheses'].map {|ut| [ut['utterance'], ut['confidence']] }
if data.key?('hypotheses') && !data['hypotheses'].nil? && data['hypotheses'].first
if data.key?('hypotheses') && data['hypotheses'].first
self.best_match_text += " " + data['hypotheses'].first['utterance']
self.score += data['hypotheses'].first['confidence']
self.segments += 1
Expand Down

0 comments on commit fe71142

Please sign in to comment.