I'm trying to use the ibm watson speech to text service. Using Curl and the appropriate credentials i'm getting an error and don't understand why. I'm new to this so i need some help
I'm using this command-lines to get the text out of an audio file:
curl -u username:password -X POST \ --header "Content-Type: audio/flac" \ --header "Transfer-Encoding: chunked" \ --data-binary @/tmp/0001.flac \ "https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?continuous=true"
and i'm getting this error:
curl: (6) Could not resolve host: --header curl: (6) Could not resolve host: Content-Type curl: (6) Could not resolve host: --header curl: (6) Could not resolve host: Transfer-Encoding curl: (6) Could not resolve host: --data-binary curl: (6) Could not resolve host: curl: (1) Protocol https not supported or disabled in libcurl
does anybody know what i'm doing wrong?
\ --headerescapes the space before--headerso it's not recognized as an option. - Kenney\would mean to append the next line. But when it's not the last character in the line, it escapes the next character, changing the--headerparameter to ` --header` (with an extra space). It doesn't start with--and is seen as the hostname rather than an option. - Kenney