修改話術配置

調試

您可以在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. 指定的話術不存在。

訪問錯誤中心查看更多錯誤碼。