修改话术配置

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String ModifyScriptVoiceConfig

系统规定参数。取值:ModifyScriptVoiceConfig。

InstanceId String bdd49242-114c-4045-b1d1-25ccc1756c75

实例id

ScriptId String 1d7a26e0-628b-4c3c-9918-7f2e23273f54

话术id

ScriptVoiceConfigId String e15cc646-50e5-4bc0-87ec-e4f2d1063b90

录音配置id

Type String WAVEFORM

录音类型,TTS 或者 WAVEFORM

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

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

返回数据

名称 类型 示例值 描述
Code String OK

接口状态码

HttpStatusCode Integer 200

http 状态码

Message String Success

接口提示消息

RequestId String 254EB995-DEDF-48A4-9101-9CA5B72FFBCC

请求id

ScriptVoiceConfig Struct

话术录音配置信息

InstanceId String bdd49242-114c-4045-b1d1-25ccc1756c75

实例id

ScriptContent String 你好

语音对应文本

ScriptId String 1d7a26e0-628b-4c3c-9918-7f2e23273f54

话术id

ScriptVoiceConfigId String 4ddea690-6534-4c88-9cbd-0b5882ec64c0

录音配置id

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

录音对应关系数据

Source String DIALOGUE_FLOW

话术源

Type String WAVEFORM

播音类型

Success Boolean true

是否成功

示例

请求示例

http(s)://[Endpoint]/?Action=ModifyScriptVoiceConfig
&InstanceId=bdd49242-114c-4045-b1d1-25ccc1756c75
&ScriptId=1d7a26e0-628b-4c3c-9918-7f2e23273f54
&ScriptVoiceConfigId=e15cc646-50e5-4bc0-87ec-e4f2d1063b90
&Type=WAVEFORM
&<公共请求参数>

正常返回示例

XML 格式

<Code>OK</Code>
<HttpStatusCode>200</HttpStatusCode>
<RequestId>f765d3ee-ec03-4765-b235-6877501d99d1</RequestId>
<ScriptVoiceConfig>
    <InstanceId>291cfc6a-8703-4bdd-a99d-9cba32d5288a</InstanceId>
    <ScriptContent>你的花呗欠款逾期了需要处理,你现在能处理一下吗?</ScriptContent>
    <ScriptId>947e0875-b5d4-4b33-b18c-7b2cf85bcb4f</ScriptId>
    <ScriptWaveformRelation>[{"ScriptContent":"你好","ScriptWaveformId":"6facc560-9f25-420f-bb0b-99f4299ad0d5"},{"ScriptContent":"吗","ScriptWaveformId":"76f48266-e253-4f44-ab4f-f64f7d38f1b4"}]</ScriptWaveformRelation>
    <Source>DIALOGUE_FLOW</Source>
    <Type>WAVEFORM</Type>
    <ScriptVoiceConfigId>4ddea690-6534-4c88-9cbd-0b5882ec64c0</ScriptVoiceConfigId>
</ScriptVoiceConfig>
<Success>true</Success>

JSON 格式

{
    "Code": "OK",
    "HttpStatusCode": 200,
    "RequestId": "f765d3ee-ec03-4765-b235-6877501d99d1",
    "ScriptVoiceConfig": {
        "InstanceId": "291cfc6a-8703-4bdd-a99d-9cba32d5288a",
        "ScriptContent": "你的花呗欠款逾期了需要处理,你现在能处理一下吗?",
        "ScriptId": "947e0875-b5d4-4b33-b18c-7b2cf85bcb4f",
        "ScriptWaveformRelation": "[{\"ScriptContent\":\"你好\",\"ScriptWaveformId\":\"6facc560-9f25-420f-bb0b-99f4299ad0d5\"},{\"ScriptContent\":\"吗\",\"ScriptWaveformId\":\"76f48266-e253-4f44-ab4f-f64f7d38f1b4\"}]",
        "Source": "DIALOGUE_FLOW",
        "Type": "WAVEFORM",
        "ScriptVoiceConfigId": "4ddea690-6534-4c88-9cbd-0b5882ec64c0"
    },
    "Success": true
}

错误码

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

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