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

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

请求示例

配置音色为知倩(资讯女声),形象选择小娅正装深色西装站姿,阅读内容第一张图片为“1111213第一段文本播报一下,第一段文本播报一下,第一段文本播报一下,第一段文本播报一下,第一段文本播报一下,第一段文本播报一下”,第二张图片为“看下第二张图片吧111111111”。

PUT https://{endpoint}/v1/{project_id}/digital-human/video/{video_id}/info

{
  "tts_config" : {
    "speed" : 0,
    "volume" : 50,
    "delay" : 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第一段文本播报一下,第一段文本播报一下,第一段文本播报一下,第一段文本播报一下,第一段文本播报一下,第一段文本播报一下"
    }, {
      "resolution" : {
        "x" : 1102,
        "y" : 620
      },
      "image_id" : "aac35c42-f217-4ead-xxx",
      "read_content" : "看下第二张图片吧111111111"
    } ],
    "read_type" : 1,
    "character_position" : 0
  }
}
support.huaweicloud.com/api-cbs/cbs_03_0135.html