ModifyScriptVoiceConfig - 修改话术配置

修改话术配置。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
InstanceIdstring

实例 id

bdd49242-114c-4045-b1d1-25ccc1756c75
ScriptIdstring

话术 id

1d7a26e0-628b-4c3c-9918-7f2e23273f54
ScriptVoiceConfigIdstring

录音配置 id

e15cc646-50e5-4bc0-87ec-e4f2d1063b90
Typestring

录音类型,TTS 或者 WAVEFORM

WAVEFORM
ScriptWaveformRelationstring

话术文本和录音的对应关系

[{"ScriptContent":"请问你是","ScriptWaveformId":"07db2f0a-acb2-4e68-b9f4-66397414f50c"},{"ScriptContent":"吗?","ScriptWaveformId":"c2a69440-03e3-406e-b0a9-a9791fccb31b"}]

返回参数

名称类型描述示例值
object
HttpStatusCodeinteger

http 状态码

200
Codestring

接口状态码

OK
Messagestring

接口提示消息

Success
RequestIdstring

请求 id

254EB995-DEDF-48A4-9101-9CA5B72FFBCC
Successboolean

是否成功

true
ScriptVoiceConfigobject

话术录音配置信息

Typestring

播音类型

WAVEFORM
ScriptVoiceConfigIdstring

录音配置 id

4ddea690-6534-4c88-9cbd-0b5882ec64c0
ScriptContentstring

语音对应文本

你好
InstanceIdstring

实例 id

bdd49242-114c-4045-b1d1-25ccc1756c75
ScriptWaveformRelationstring

录音对应关系数据

[{"ScriptContent":"你好","ScriptWaveformId":"6facc560-9f25-420f-bb0b-99f4299ad0d5"},{"ScriptContent":"吗","ScriptWaveformId":"76f48266-e253-4f44-ab4f-f64f7d38f1b4"}]
ScriptIdstring

话术 id

1d7a26e0-628b-4c3c-9918-7f2e23273f54
Sourcestring

话术源

DIALOGUE_FLOW

示例

正常返回示例

JSON格式

{
  "HttpStatusCode": 200,
  "Code": "OK",
  "Message": "Success",
  "RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
  "Success": true,
  "ScriptVoiceConfig": {
    "Type": "WAVEFORM",
    "ScriptVoiceConfigId": "4ddea690-6534-4c88-9cbd-0b5882ec64c0",
    "ScriptContent": "你好",
    "InstanceId": "bdd49242-114c-4045-b1d1-25ccc1756c75",
    "ScriptWaveformRelation": "[{\"ScriptContent\":\"你好\",\"ScriptWaveformId\":\"6facc560-9f25-420f-bb0b-99f4299ad0d5\"},{\"ScriptContent\":\"吗\",\"ScriptWaveformId\":\"76f48266-e253-4f44-ab4f-f64f7d38f1b4\"}]",
    "ScriptId": "1d7a26e0-628b-4c3c-9918-7f2e23273f54",
    "Source": "DIALOGUE_FLOW"
  }
}

JSON格式

{
  "HttpStatusCode": 200,
  "Code": "OK",
  "Message": "Success",
  "RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
  "Success": true,
  "ScriptVoiceConfig": {
    "Type": "WAVEFORM",
    "ScriptVoiceConfigId": "4ddea690-6534-4c88-9cbd-0b5882ec64c0",
    "ScriptContent": "你好",
    "InstanceId": "bdd49242-114c-4045-b1d1-25ccc1756c75",
    "ScriptWaveformRelation": "[{\"ScriptContent\":\"你好\",\"ScriptWaveformId\":\"6facc560-9f25-420f-bb0b-99f4299ad0d5\"},{\"ScriptContent\":\"吗\",\"ScriptWaveformId\":\"76f48266-e253-4f44-ab4f-f64f7d38f1b4\"}]",
    "ScriptId": "1d7a26e0-628b-4c3c-9918-7f2e23273f54",
    "Source": "DIALOGUE_FLOW"
  }
}

错误码

HTTP status code错误码错误信息描述
404NotExist.InstanceThe specified Instance does not exist.指定的实例不存在。
404NotExist.ScriptThe specified Script does not exist.指定的话术不存在。
500InternalErrorAn error occurred while processing your request. Please try again later. Submit a ticket if the error still exists.内部错误。建议重试,如果多次重试报错请提交工单。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史