ListAudioFiles
Lists the audio files of a specified instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| PageNumber |
integer |
Yes |
The page number. Valid values: 1 to 100. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. Valid values: 1 to 100. |
10 |
| Status |
string |
No |
The status of the audio file. Valid values:
|
Completed |
| Usage |
string |
No |
The usage of the audio file. Default value: General (used for scenarios such as IVR). Another valid value is HoldMusic (used as hold music). |
General |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
53223330-EBF1-586B-A2CB-93C3B711FDA0 |
| Code |
string |
The response code. |
OK |
| Message |
string |
The response message. |
None |
| Data |
object |
The data. |
|
| PageNumber |
integer |
The page number. Valid values: 1 to 100. |
1 |
| PageSize |
integer |
The number of entries per page. Valid values: 1 to 100. |
10 |
| TotalCount |
integer |
The total number of entries. |
10 |
| List |
array<object> |
The list of audio files. |
|
|
object |
The audio file information. |
||
| AudioFileName |
string |
The name of the audio file. |
test-file.wav |
| OssFileKey |
string |
The key of the audio resource file in Object Storage Service (OSS). |
ccc-test/test-file.wav |
| UpdatedTime |
string |
The time when the audio resource was last modified. The time is in the YYYY-MM-DD HH:mm:ss.S format. |
2021-03-08 15:34:49.0 |
| AudioResourceId |
string |
The ID of the audio resource, which is the unique identifier of the audio file. |
d5cd7a94-3b6a-47d2-b7fd-0b1cd839bf77 |
| InstanceId |
string |
The instance ID. |
ccc-test |
| Name |
string |
The display name of the audio resource. |
Welcome greeting |
| CreatedTime |
string |
The time when the audio resource was created. The time is in the YYYY-MM-DD HH:mm:ss.S format. |
2021-03-05 17:35:45.0 |
| Status |
string |
The status of the audio file. |
Completed |
| Usage |
string |
The usage of the audio file. Default value: General (used for scenarios such as IVR). Another valid value is HoldMusic (used as hold music). |
General |
| AuditResult |
string |
The risk review result of the audio content. |
None |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "53223330-EBF1-586B-A2CB-93C3B711FDA0",
"Code": "OK",
"Message": "无",
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 10,
"List": [
{
"AudioFileName": "test-file.wav",
"OssFileKey": "ccc-test/test-file.wav",
"UpdatedTime": "2021-03-08 15:34:49.0",
"AudioResourceId": "d5cd7a94-3b6a-47d2-b7fd-0b1cd839bf77",
"InstanceId": "ccc-test",
"Name": "欢迎语",
"CreatedTime": "2021-03-05 17:35:45.0",
"Status": "Completed",
"Usage": "General",
"AuditResult": "无"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Maximum | The parameter %s must be less than or equal to %s. | The parameter must be less than or equal to the maximum value defined by the system. |
| 400 | Parameter.Minimum | The parameter %s must be greater than or equal to %s. | The parameter must be greater than or equal to the minimum value defined by the system. |
| 500 | InternalService.Common | An internal service error occurred. %s | An internal service error occurred. |
| 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.