Skip to content

Instantly share code, notes, and snippets.

@CkuT
Created April 23, 2014 09:09
Show Gist options
  • Save CkuT/11208119 to your computer and use it in GitHub Desktop.
Save CkuT/11208119 to your computer and use it in GitHub Desktop.
# NOT WORKING (Broken pipe)
transcription = RestClient.post 'http://www.google.com/speech-api/v2/recognize', :myfile => File.new("17762-verba.flac", 'rb')
# WORKING
transcription = RestClient.post 'http://www.google.com/speech-api/v2/recognize', :myfile => File.new("heyoh.txt", 'rb')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment