I am trying to do a cURL query to a google server directly from the command line (on windows 7). The server belongs to google's speech api and does speech recognition. Therefore it needs an upload of a audio file, and gives back the recognition result. So I connect two cURL queries, one uploading, one downloading. Like that:
curl
"https://...
" & curl"https://...
"
I get back the following error:
<HTML>
<HEAD>
<TITLE>HTTP method GET is not supported by this URL</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>HTTP method GET is not supported by this URL</H1>
<H2>Error 405</H2>
</BODY>
</HTML>
{"result":[]}
Since I do not directly use the GET method I can't change anything. Please help.
Thanks!
Edit:
The URLs (with x, y and z for keys etc.):
curl "https://www.google.com/speech-api/full-duplex/v1/down?pair=xxxxxx" & curl "https://www.google.com/speech-api/full-duplex/v1/up?lang=de-DE&lm=dictation&client=yyyy&pair=xxxxxx&key=zzzzzzz" --header "Content-Type: audio/amr; rate=16000" --data-binary @test.amr