【问题标题】:Error WATSNGWERR-0x0113001c means what?错误 WATSNGWERR-0x0113001c 是什么意思?
【发布时间】:2018-02-18 06:54:59
【问题描述】:
$ 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"
}

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

关于这个错误信息是什么意思的任何线索?

附言。如果我使用默认模型(不是自定义模型),它可以工作

【问题讨论】:

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


    【解决方案1】:

    您的自定义模型 (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"
    

    【讨论】:

      【解决方案2】:

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

      因此,您需要调用/train API 以使其成为available 以供使用,而progress 将成为100,一旦它是available

      调用/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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-03-04
        • 2012-11-26
        • 2018-05-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-06-19
        • 2011-01-26
        相关资源
        最近更新 更多