Skip to main content

CreateVoiceAccessProfile

Creates a voice access profile.

Try it now

You can directly run this API in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.

RAM authorization

The following table describes the authorization information for this API. You can use the Action element in a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details:
  • Operation: the specific permission.
  • Access level: the access level of each operation, which can be Write, Read, or List.
  • Resource type: the resource types that can be authorized in the operation. Details:
    • Required resource types are indicated with a preceding asterisk (*).
    • For operations that do not support resource-level authorization, All resources is used.
  • Condition keyword: the condition keys defined by the cloud service itself.
  • Related operation: other permissions required to successfully perform the operation. The caller must also have the permissions of the related operation for the operation to succeed.

Operation

Access level

Resource type

Condition keyword

Related operation

bailianvoicebot:CreateVoiceAccessProfile

create

*All resources

*

NoneNone

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

BusinessUnitId

string

No

The ID of the Model Studio business space.

llm-xdne77rxe14ziszr

NlsEngine

string

No

The voice engine.

VOLC

Profile

object

No

The parameter configuration.

AppKey

string

No

This parameter is required when you use Doubao.

2541370123

AccessKey

string

No

This parameter is required when you use Doubao.

HwRnTXgwnQlsj68URDS5_VMm4Wtapq9

AppId

string

No

This parameter is required when you use iFLYTEK.

5b123bfb

ApiKey

string

No

This parameter is required when you use Model Studio or iFLYTEK.

sk-12341e259b1049e8872b47981e545f78

ApiSecret

string

No

This parameter is required when you use iFLYTEK.

c0358c6e51c1013b446fdeb21a3a1234

AsrAppKey

string

No

Not in use.

Not in use

TtsApiKey

string

No

Not in use.

Not in use

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

CF6D3484-19A1-5C77-863B-AC8B5754D37C

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The error message.

Instance llm-zzu528i29ecnprcl does not exist.

Code

string

The internal error code.

OK

Data

string

The configuration ID.

a395011f-a247-400f-bc69-28796749fd52

Params

array

The list of dynamic error parameters.

string

A dynamic error parameter.

llm-baployoyopf22m2r

Examples

Success response JSON format
{
  "RequestId": "CF6D3484-19A1-5C77-863B-AC8B5754D37C",
  "HttpStatusCode": 200,
  "Message": "Instance llm-zzu528i29ecnprcl does not exist.",
  "Code": "OK",
  "Data": "a395011f-a247-400f-bc69-28796749fd52\n",
  "Params": [
    "llm-baployoyopf22m2r"
  ]
}

Error codes

See Error Center for more error codes.

Release notes

For more information, see Change details.