Curl 沃森演讲到文字:如何在windows 10上设置我的用户名和密码

Curl 沃森演讲到文字:如何在windows 10上设置我的用户名和密码,curl,ibm-cloud,speech-to-text,Curl,Ibm Cloud,Speech To Text,谢谢你打开这个页面 我想把一个演讲会的音频文件转录成语音对文本的文本,然后把文本卷成卷曲 也许我有一个基本的错误。 我阅读了Bluemix的官方文件,但我无法理解它们 我已经拿到了我的服务凭证。 但我无法设置它们 我试着把它们设置成这样 Bluemix官方文档示例>> curl -X POST -u {username}:{password} --header "Content-Type: audio/flac" --header "Transfer-Encoding: chunked" --d

谢谢你打开这个页面

我想把一个演讲会的音频文件转录成语音对文本的文本,然后把文本卷成卷曲

也许我有一个基本的错误。 我阅读了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"
此代码有以下错误且不工作

警告:无法从文件中读取数据 “{path}audio file.flac”,警告:这会使 邮递curl:(60)SSL证书问题:中的自签名证书 证书链更多详细信息请参见:

此外,我不知道我应该把我的音频文件放在哪里,我应该从哪里找到文件的路径。 我从终端的pwd找到它们的路径,并将它们放在本地目录中。错了吗


您能给我一些建议吗?

您需要设置音频文件的绝对路径

例如(如果文件在我的当前目录中):

curl -X POST -u "myusername":"mypassword" --header "Content-Type: audio/flac" --data-binary "@audio-file1.flac" --data-binary "@audio-file2.flac" "https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?timestamps=true&word_alternatives_threshold=0.9&keywords=%22colorado%22%2C%22tornado%22%2C%22tornadoes%22&keywords_threshold=0.5&continuous=true"