Skip to content

Instantly share code, notes, and snippets.

@fairchild
Forked from hemantborole/gist:210491
Created October 14, 2009 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fairchild/210507 to your computer and use it in GitHub Desktop.
Save fairchild/210507 to your computer and use it in GitHub Desktop.
#!/bin/bash
##CURL Request Directly to WATSON
WATSON_SERVER=
MINERVA_SERVER="ec2-174-129-82-133.compute-1.amazonaws.com"
PORT=80
W_PORT=9000
AUDIO_TEST_FILE="./files/india.au"
# curl -i --header 'Transfer-Encoding: Chunked' "http://$WATSON_SERVER:$W_PORT>/smm/watson?imei=hemant&grammar=business.search.lm&resultFormat=json&metrics=1&audioFormat=amr" --data-binary @$AUDIO_TEST_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 @$AUDIO_TEST_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