You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👍
I also have this problem. This is because i use an empty or only noisy audio file to post to google. And google return {"status":5,"id":"d67b8bcf33e6d87ccce91839671bad2c-1","hypotheses":[]}
My error log is :
NoMethodError: undefined method []' for nil:NilClass /Users/viki/Documents/Project/vendor/ruby/1.9.1/gems/speech2text-0.3.6/lib/speech/audio_to_text.rb:78:inconvert_chunk'
/Users/viki/Documents/Project/vendor/ruby/1.9.1/gems/speech2text-0.3.6/lib/speech/audio_to_text.rb:40:in block in to_json' /Users/viki/Documents/Project/vendor/ruby/1.9.1/gems/speech2text-0.3.6/lib/speech/audio_to_text.rb:36:ineach'
/Users/viki/Documents/Project/vendor/ruby/1.9.1/gems/speech2text-0.3.6/lib/speech/audio_to_text.rb:36:in to_json' /Users/viki/Documents/Project/vendor/ruby/1.9.1/gems/speech2text-0.3.6/lib/speech/audio_to_text.rb:21:into_text'
Checked the source code because I also ran in this error just today. It only happens when Google was unable to convert the audio to text. You should check your audio input and try again with a different file. Make sure it's loud and clear and in wav format. Also try to run the sample wav files from the repository.
The text was updated successfully, but these errors were encountered: