UpdateModelApplication

Updated at:

Modifies a model application.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

aiccs:UpdateModelApplication

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ApplicationName

string

No

The name of the model application.

TestApplication

ApplicationCode

string

Yes

The code of the application.

DKSDLSA

ApplicationCps

integer

No

The number of concurrent requests for the application.

12

ModelCode

string

No

The code of the model.

1231

ModelVersion

string

No

The version of the model.

1

QualificationId

integer

No

The ID of the qualification.

61

QualificationName

string

No

The name of the qualification.

TestQualification

SpeechId

integer

No

The ID of the speech script.

15

SpeechContent

string

No

The content of the speech script.

TestSpeechScript

UsageDesc

string

No

The usage description.

TestUsage

DyvmsSceneName

string

No

The name of the scenario.

TestScenario

StartWord

string

No

The opening statement.

Hello, this is a test opening statement

StartWordType

integer

No

The type of the opening statement.

0

RecordingFile

string

No

The URL of the recording audio file.

https://xxxxxxxxxxxxxxx.wav

Prompt

string

No

The prompt.

TestPrompt

TtsConfig

object

No

The text-to-speech (TTS) configuration, including voice, volume, and speed.

VoiceCode

string

No

The code of the voice.

12123213123

MixingTemplate

integer

No

The ID of the mixing template.

111

BackgroundEnabled

boolean

No

Specifies whether to enable background sound.

true

TtsVolume

integer

No

The volume for TTS variable playback. Valid values: 0 to 100. Default value: 0.

11

TtsStyle

string

No

The voice style.

voice

ResourceId

string

No

The resource ID.

122

CustomerAccountId

integer

No

The account ID.

47

VoiceType

string

No

The voice type. Valid values:

  • SYSTEM: system voice.

  • COSYCLONE: cloned voice.

  • BL-CUSTOM: custom premium cloned voice.

SYSTEM

MixingEnabled

boolean

No

Specifies whether to enable audio mixing.

true

TtsSpeed

integer

No

The speed for TTS variable playback. Valid values: -200 to 200. Default value: 0.

7

BackgroundSound

integer

No

The ID of the background sound.

111

BackgroundVolume

integer

No

The background sound volume (ID). Valid values:

  • 0: low.

  • 1: medium.

  • 2: high.

1

MuteDuration

integer

No

The mute duration.

85

MuteActive

boolean

No

Specifies whether the first mute event triggers the model.

true

MutePushMode

string

No

The push mode for mute events.

FIRST_ONLY

MuteHangupNum

integer

No

The number of consecutive mute events before the system proactively hangs up.

70

CallAssistantRecognize

boolean

No

Specifies whether to enable call assistant recognition.

true

CallAssistantHangup

boolean

No

Specifies whether to hang up when an intelligent answering service is detected.

false

EnableMorse

boolean

No

Specifies whether to enable Morse code configuration. This feature is disabled by default.

false

SessionTimeout

integer

No

The maximum call duration.

49

Source

string

No

The source. Fixed value: USER.

USER

InterruptConfig

object

No

The interruption configuration.

EnableStartwordEntireNotInterrupt

boolean

No

Specifies whether to disable interruption during the entire opening statement.

true

EnableAvoidInterrupt

boolean

No

Specifies whether to enable the continuous interruption prevention feature.

true

EnableStartwordNotInterrupt

boolean

No

Specifies whether to enable the opening line no-interrupt configuration.

true

StartwordProtectDuration

number

No

The opening line protection duration.

1.4699

EnableInterruptBackchannel

boolean

No

Specifies whether to enable the interrupt filler word configuration.

true

AvoidInterruptDTO

object

No

The continuous interruption prevention configuration.

InterruptProtectDuration

number

No

The interrupt protection duration.

16.417547

InterruptNum

integer

No

The number of consecutive interruptions.

3

EnableDtmfReceive

boolean

No

Specifies whether to enable DTMF key collection. Default value: false.

false

DtmfInputTimeout

integer

No

The DTMF input timeout period in seconds. Valid values: 1 to 10.

1

DtmfDigitCount

integer

No

The number of DTMF key digits. Valid values: 1 to 12.

1

DtmfAutoValidateEnable

boolean

No

Specifies whether to enable automatic key value validation.

true

DtmfAllowedDigits

string

No

The enumeration of allowed key digits, specified as comma-separated text such as 1,2,3. A maximum of 20 values are supported.

1

DtmfOutOfRangeAction

string

No

The action to take when the input is out of range. Valid values:

  • RETURN_MODEL

  • AUTO_RETRY

RETURN_MODEL

DtmfRetryPlayTimes

integer

No

The number of retry attempts (PlayTimes). Valid values: 1 to 3. This parameter takes effect only when DtmfOutOfRangeAction is set to AUTO_RETRY.

1

DtmfRetryPromptText

string

No

The custom retry prompt text. The maximum length is 50 characters. If this parameter is left empty, the default prompt "Invalid input. Enter again." is used.

Sample text

EnableDtmfSend

boolean

No

Specifies whether to enable DTMF key sending.

true

DtmfSendWaitTimeout

integer

No

The timeout period for waiting for DTMF key sending.

58

DtmfSendMaxCount

integer

No

The maximum number of DTMF key sending attempts.

90

CallConnectedTriggerModel

boolean

No

Specifies whether to enable call-connected event push. This feature is disabled by default.

false

PauseTime

integer

No

The ASR recognition pause duration.

350

Response elements

Element

Type

Description

Example

object

The RequestBody parameters.

AccessDeniedDetail

string

The detailed reason why access was denied.

None

RequestId

string

The request ID.

D9CB3933-9FE3-4870-BA8E-2BEE91B69D23

Message

string

The description of the status code.

successful

Data

string

The data list.

DKSDLSA

Code

string

The request status code. OK indicates that the request was successful.

OK

Success

boolean

Indicates whether the API call was successful. Valid values:

  • true: Successful.

  • false: Failed.

true

Examples

Success response

JSON format

{
  "AccessDeniedDetail": "None",
  "RequestId": "D9CB3933-9FE3-4870-BA8E-2BEE91B69D23",
  "Message": "successful",
  "Data": "DKSDLSA",
  "Code": "OK",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.