Watson Speech to Text:如何在 windows 10 上设置我的用户名和密码
Watson Speech to Text : How set my username and password on 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"
此代码有以下错误且无法正常工作。
Warning: Couldn't read data from file
"{path}audio-file.flac", Warning: this makes an empty
POST. curl: (60) SSL certificate problem: self signed certificate in
certificate chain More details here:
http://curl.haxx.se/docs/sslcerts.html
此外,我不知道我应该把我的音频文件放在哪里,我应该从哪里找到这些文件的路径。
我从终端的密码找到它们并将它们放在我的本地目录中。有错吗?
你能给我你的建议吗?
您需要输入音频文件的绝对路径。
例如(如果文件在我的当前目录中):
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"
感谢您打开此页面。
我想使用 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"
此代码有以下错误且无法正常工作。
Warning: Couldn't read data from file "{path}audio-file.flac", Warning: this makes an empty POST. curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: http://curl.haxx.se/docs/sslcerts.html
此外,我不知道我应该把我的音频文件放在哪里,我应该从哪里找到这些文件的路径。 我从终端的密码找到它们并将它们放在我的本地目录中。有错吗?
你能给我你的建议吗?
您需要输入音频文件的绝对路径。
例如(如果文件在我的当前目录中):
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"