2
感谢您打开此页面。Watson Speech to Text:如何在Windows上设置我的用户名和密码10
我想将讲座会议的音频文件转录为文本,并使用Speech to Text和curl文本。
也许我有一个基本错误。 我阅读官方Bluemix文档,但我无法理解它们。
我已经拿到了我的服务凭证。 但我无法设置它们。
我试着像这样设置它们。
上Bluemix一个例子公文>>
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"
试过1 >>
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"
试过2 >>
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"
此代码下面的错误,而不是工作。
警告:无法从文件中读取数据 “{}路径音频file.flac”警告:这使得空 POST。卷曲:(60)SSL证书的问题:自签名的证书 链的更多细节证书这里: http://curl.haxx.se/docs/sslcerts.html
而且我不知道我应该把我的音频文件,并从那里我应该路径文件。 我从终端的pwd到他们的路径,我把它们放在我的本地目录。这是错的吗?
你能给我你的建议吗?
非常感谢您!现在它运作良好。 –