GetAudioFile

Updated at:

Retrieves the information about an audio file for a specified audio resource ID in a specified instance.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

ccc-test

AudioResourceId

string

Yes

The audio resource ID, which is the unique identifier of the audio file.

c1a06b46-302a-4c6e-928b-a43c0df485cf

Response elements

Element

Type

Description

Example

object

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The request ID.

EEE26562-D921-5CB2-AE49-E4C45A42D432

Code

string

The response code.

OK

Message

string

The response message.

None

Data

object

The audio file data.

AudioFileName

string

The name of the audio file.

test-file.wav

OssFileKey

string

The key of the audio resource file in OSS.

ccc-test/test-file.wav

UpdatedTime

string

The time when the audio resource was last modified. The format is YYYY-MM-DD HH:mm:ss.S.

2021-07-14 10:48:43.0

AudioResourceId

string

The audio resource ID, which is the unique identifier of the audio file.

c1a06b46-302a-4c6e-928b-a43c0df485cf

InstanceId

string

The instance ID.

ccc-test

Name

string

The display name of the audio file.

Welcome message

CreatedTime

string

The time when the audio resource was created. The format is YYYY-MM-DD HH:mm:ss.S.

2021-07-14 10:48:43.0

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "RequestId": "EEE26562-D921-5CB2-AE49-E4C45A42D432",
  "Code": "OK",
  "Message": "无",
  "Data": {
    "AudioFileName": "test-file.wav",
    "OssFileKey": "ccc-test/test-file.wav",
    "UpdatedTime": "2021-07-14 10:48:43.0",
    "AudioResourceId": "c1a06b46-302a-4c6e-928b-a43c0df485cf",
    "InstanceId": "ccc-test",
    "Name": "欢迎语\n",
    "CreatedTime": "2021-07-14 10:48:43.0"
  }
}

Error codes

HTTP status code

Error code

Error message

Description

404 NotExists.InstanceId The specified instance %s does not exist. The specified call center instance does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.