I have found this to be an awesome tool, but IBM Watson changed its authentication and I wanted to post somewhere - since this took time to figure out - as to how to modify Igaetz’s code to work with the new authentication. Rather than using
"curl -s $CURL_OPTS -k -u $API_USERNAME:$API_PASSWORD -X POST \"
change it to this:
"curl -s $CURL_OPTS -k -u "apikey:{API KEY}" -X POST \"
Your API key is accessible from the Bluemix Console Dashboard.
This is another really helpful resource on how to install the Bluemix transcription on FreePBX: https://www.freepbxhosting.com/blog/howto-adventures-in-voicemail-transcripts/