我正在从Qwiklabs学习Google Cloud Speech API。( Qwiklabs Google Cloud Speech API链接:https://google.qwiklabs.com/focuses/588?parent=catalog)
我不知道下面的命令在Google Cloud Shell中做什么。
curl -s -X POST -H "Content-Type: application/json" --data-binary @request.json \ "https://speech.googleapis.com/v1/speech:recognize?key=${API_KEY}"
有人解释命令的每个部分以及命令的用法。
发布于 2019-10-10 12:58:03
curl、-s、-x、-h、post、--data-binary、content-type都有清楚的解释。
发布于 2019-10-09 19:10:56
curl是一个允许您发出HTTP请求的命令。
在本例中,您与Cloud speech API进行交互,向语音识别端点(POST /v1/ Speech : recognition https://cloud.google.com/speech-to-text/docs/reference/rest/v1/speech/recognize)发出POST HTTP请求(curl -s -X POST),将报头中请求的内容类型(-H)设置为application/json,并使用配置和要识别的音频设置json主体(--data-binary)。
https://stackoverflow.com/questions/58298626
复制相似问题