错误WATSNGWERR-0x0113001c意味着什么?

时间:2017-09-09 14:49:28

标签: ibm-cloud speech-to-text watson

$ curl -X POST -u "057e842a-ece8-4825-8199-e77053a64a9e":"xxx" --header "Content-Type: audio/flac" --data-binary "@meeting2.flac" "https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?timestamps=true&customization_id=0ae89a90-955e-11e7-9e8b-53863e154a1c"
curl: (55) SSL_write() returned SYSCALL, errno = 32
{ "code" : 500 , "error" : "Server Error" , "description" : "2017-09-09T10:36:46-04:00, Error WATSNGWERR-0x0113001c occurred when accessing https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?timestamps=true&customization_id=0ae89a90-955e-11e7-9e8b-53863e154a1c, Tran-Id: stream-dp01-2524637048 - Watson Gateway Error" }

$ curl -X GET -u "057e842a-ece8-4825-8199-e77053a64a9e":"xxx" "https://stream.watsonplatform.net/speech-to-text/api/v1/customizations/0ae89a90-955e-11e7-9e8b-53863e154a1c"
{
   "owner": "410e0660-26a8-4ee0-ba09-e101df7961e0",
   "base_model_name": "en-US_BroadbandModel",
   "customization_id": "0ae89a90-955e-11e7-9e8b-53863e154a1c",
   "dialect": "en-US",
   "created": "2017-09-09T12:54:40.057Z",
   "name": "sprint2",
   "description": "sprint2",
   "progress": 0,
   "language": "en-US",
   "status": "ready"
}

该模型存在,似乎已经准备就绪(但是,我希望在这种情况下进展= 100但是无论如何),但由于某种原因,我无法使用它。

有关此错误消息的含义的任何线索?

聚苯乙烯。如果我使用默认模型(不是自定义模型),它可以工作

2 个答案:

答案 0 :(得分:2)

您的自定义模型(0ae89a90-955e-11e7-9e8b-53863e154a1c)处于不一致状态。

尝试删除自定义并创建新自定义?

删除自定义

$ curl -X DELETE -u "057e842a-ece8-4825-8199-e77053a64a9e":"xxx"\
"https://stream.watsonplatform.net/speech-to-text/api/v1/customizations/0ae89a90-955e-11e7-9e8b-53863e154a1c"

答案 1 :(得分:1)

状态ready表示它已准备好进行培训,尚未准备好使用。

因此,您需要调用/train API以使其available可供使用,progress一旦100available

要调用/train API:

$ curl -X POST -u "057e842a-ece8-4825-8199-e77053a64a9e":"xxx" \
"https://stream.watsonplatform.net/speech-to-text/api/v1/customizations/0ae89a90-955e-11e7-9e8b-53863e154a1c/train"

可选,您可以在训练时指定自定义重量。

等一下,你应该

$ curl -X GET -u "057e842a-ece8-4825-8199-e77053a64a9e":"xxx" "https://stream.watsonplatform.net/speech-to-text/api/v1/customizations/0ae89a90-955e-11e7-9e8b-53863e154a1c"
{
   "owner": "410e0660-26a8-4ee0-ba09-e101df7961e0",
   "base_model_name": "en-US_BroadbandModel",
   "customization_id": "0ae89a90-955e-11e7-9e8b-53863e154a1c",
   "dialect": "en-US",
   "created": "2017-09-09T12:54:40.057Z",
   "name": "sprint2",
   "description": "sprint2",
   "progress": 100,
   "language": "en-US",
   "status": "available"
}

本文档非常有用:https://console.bluemix.net/docs/services/speech-to-text/language-create.html#trainModel