我正在按照本教程在 IBM Bluemix 中设置语音到文本服务:https ://www.ibm.com/watson/developercloud/doc/speech-to-text/tutorial.shtml
我已经安装并测试了先决条件,但不知何故,当我尝试输入时出现错误:
curl -X POST -u <username>:<password>
--header "Content-Type: audio/flac"
--header "Transfer-Encoding: chunked"
--data-binary @<path>audio-file.flac
"https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?continuous=true"
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
Run Code Online (Sandbox Code Playgroud)
我在直接访问 url 时测试了用户名和密码并且它工作正常。我为音频文件输入的路径也是正确的,因为我刚刚复制了它。
有谁知道如何解决这一问题?提前致谢!:)
我懂了test.yaml:
volumes:
- name: var-log
hostPath:
path: /var/log
- name: dev-log
hostPath:
path: /dev/log
Run Code Online (Sandbox Code Playgroud)
并希望使用 Go 实现以下目标yq- https://github.com/mikefarah/yq/
volumes:
- name: var-log
hostPath:
path: /var/log
- name: dev-log
hostPath:
path: /dev/log
- name: sys
mountPath: /sys
Run Code Online (Sandbox Code Playgroud)
我真的无法理解它 - 与:
yq eval '.volumes |= (. + {"name":{"name":"sys"}})' test.yaml我几乎明白了,但是缺少第三个字段名称(应该是,name: sys但它只是name:)
volumes:
- name: var-log
hostPath:
path: /var/log
- name: dev-log
hostPath:
path: /dev/log
- name:
mountPath: /sys
Run Code Online (Sandbox Code Playgroud)
我现在摆弄了一段时间,但无法让它工作。