对话机器人服务 CBS-配置视频:响应示例

时间:2024-05-10 17:02:37

响应示例

状态码: 200

OK

{
  "id" : "05abb2e4-613e-4c42-xxx",
  "status" : 2,
  "name" : "ceshi5",
  "tts_config" : {
    "speed" : 0.0,
    "volume" : 50,
    "delay" : 0.0,
    "audio_format" : "wav",
    "sample_rate" : "16000",
    "property" : "zhiqian",
    "tts_source" : 1
  },
  "video_config" : {
    "background_id" : "94e06659-75f6-461a-xxx",
    "show_subtitles" : false,
    "resolution_type" : 0
  },
  "character_config" : {
    "position" : {
      "x" : 371,
      "y" : 950
    },
    "character_id" : "xiaoya_suit_grey_stand"
  },
  "read_config" : {
    "image_read_configs" : [ {
      "resolution" : {
        "x" : 1102,
        "y" : 620
      },
      "image_id" : "d60acfdd-95df-4748-xxx",
      "read_content" : "1111213第一段文本播报一下,第一段文本播报一下,第一段文本播报一下,第一段文本播报一下,第一段文本播报一下,第一段文本播报一下",
      "name" : "fdsa"
    }, {
      "resolution" : {
        "x" : 1102,
        "y" : 620
      },
      "image_id" : "aac35c42-f217-4ead-xxx",
      "read_content" : "看下第二张图片吧111111111",
      "name" : "1245"
    } ],
    "ppt_read_configs" : [ ],
    "read_type" : 1,
    "character_position" : 0
  }
}

状态码: 400

Bad Request

{
  "error_code" : "CBS.0003",
  "error_msg" : "This resource Id:[33dbe0e2-bb9b-4efc-xxx] does not exist."
}

状态码: 500

Internal Server Error

{
  "error_code" : "CBS.0004",
  "error_msg" : "Internal Server Error"
}
support.huaweicloud.com/api-cbs/cbs_03_0135.html