Skip to content

Instantly share code, notes, and snippets.

@hemantborole
Created October 14, 2009 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save hemantborole/210491 to your computer and use it in GitHub Desktop.
Save hemantborole/210491 to your computer and use it in GitHub Desktop.
##CURL Request Directly to WATSON
curl -i --header 'Transfer-Encoding: Chunked' "http://<WATSON_SERVER:PORT>/smm/watson?imei=hemant&grammar=business.search.lm&resultFormat=json&metrics=1&audioFormat=amr" --data-binary @<path_to_audio_amr_file>
##CURL Request to Minerva
curl -i --header 'Transfer-Encoding: Chunked' "http://<MINERVA_SERVER:PORT>/asr?imei=hemant&grammar=qme.lm&resultFormat=json&audioFormat=au" --data-binary @<path_to_audio_au_file>
## if you have a au audio file instead of the amr, change the audioFormat in the urls above. (applies to both minerva and watson)
## the grammar parameter is the one that points to a directory name under /mnt/grammars/lm, in case you want to change that to chacha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment