常见问题

常见问题 #

需要查看错误信息时,请先将 omit_error 设置为 false

断开连接 #

  1. 建立 Websocket 连接后 10s 内没有发送 Starter 包,中控会主动断开连接。

  2. 超过 60s 没有发送请求或 ping,中控会主动断开连接。

  3. Starter 中填写的 Workflow Type 不存在,WebSocket 会关闭并返回如下错误:

    websocket: close 1002 (protocol error): invalid asr vendor id: 7
    
  4. Starter 中填写的 AuthN Token 错误,当服务端要求鉴权时,WebSocket 会关闭并返回如下错误:

    {
        "service": "auth",
        "status": "fail",
        "error": "invalid authentication token",
        "session": "1a521259-3347-41a8-85fa-1f114424e7dd"
    }
    
    websocket: close 1008 (policy violation): invalid authentication token
    
  5. Starter 中填写的 AuthN Token 为空,当服务端要求鉴权时,WebSocket 会关闭并返回如下错误:

    {
        "service": "auth",
        "status": "fail",
        "error": "authentication token is required",
        "session": "2342963a-2cf6-4fa6-9344-189fbfe1109c"
    }
    
    websocket: close 1008 (policy violation): authentication token is required
    
  6. 超出并发限制时,WebSocket 会关闭并返回如下错误:

    websocket: close 1011 (unexpected error): task flow error: TTS3: maximum number of connections reached: 1
    

NLP 错误 #

  1. NLP2 device 漏填或为空字符串,则返回如下错误:

    {
        "service": "nlp",
        "status": "fail",
        "error": "http error status, code: 500, body: {\"error\":\"500 Internal Server Error\"}\n",
        "session": "b3c451cc-edf7-41f8-b375-08ffc5b16daf",
        "trace": "ae810786-3eca-46e6-b839-af0950cd750b"
    }
    

TTS 错误 #

  1. TTS1、TTS2 合成内容过长导致超时错误

    目前看合成内容长度有限制约 166 个汉字(即 1 倍语速下的 30 秒),服务端最多等待引擎 10 秒钟返回结果。

    {
        "service": "tts",
        "status": "fail",
        "error": "tts2 timeout: 70o51q56ao0d033wucip62fpb",
        "session": "3d7343bf-4a1c-4ec5-b549-1b5ed3cbed63",
        "trace": "f5bcda6b-8a3d-4c7c-8b3c-18f4f955cd36"
    }
    
  2. 指定了不存在的发音人导致错误

    TTS1, TTS2:

    {
        "service": "tts",
        "status": "fail",
        "error": "tts2 failed: 75fc8a81-2dfa-4783-8e0a-19301b842556, error: http error status, code: 500, body: {\"status\":500,\"message\":\"\",\"error\":\"Internal Server Error\"}",
        "session": "d8a3d2d6-2c3a-4c60-bc6b-28b86f33fbb1",
        "trace": "801e7732-2f24-45a0-b228-30dd538048dd",
        "tts": {
            "id": "75fc8a81-2dfa-4783-8e0a-19301b842556",
            "index": 0,
            "type": "eof"
        }
    }
    

    TTS3:

    {
        "service": "tts",
        "status": "fail",
        "error": "engine status error: failed, Not found voice config",
        "session": "aeb3c065-66b0-4ff1-887f-67c37a0037a5",
        "trace": "8134d448-54e7-4340-83ad-2e02b97cdafe",
        "tts": {
            "id": "7a32a2e7-8f33-44bb-8201-df087e63aa8e",
            "index": 1,
            "type": "eof"
        }
    }
    

    TTS4:

    {
        "service": "tts",
        "status": "fail",
        "error": "http get: invalid status: 403 Forbidden",
        "session": "96d1af38-0609-411d-8f7a-13c0a8a88788",
        "trace": "27bb7737-df97-49a8-89fe-9fac8ea5e601",
        "tts": {
            "id": "288f7c64-6a31-4c3a-9682-e348c002b94f",
            "index": 0,
            "type": "eof"
        }
    }
    
  3. TTS4 4XX 错误信息 参考 此链接

其他问题 #

  1. 使用 Text 类型发送 ASR 音频数据

    中控会忽略所有未按照指定 WebSocket 数据类型发送的数据