-
-
Save fairchild/210507 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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