Verifying Timbre Models (Self-Developed and Third-Party Timbres)
Function
Checks whether the timbre model is available. If the model is available, the model information is returned. If the model is unavailable, the reason why the model is unavailable is returned.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
POST /v1/{project_id}/ttsc/check-voice-asset/{voice_asset_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
|
voice_asset_id |
Yes |
String |
Timbre asset ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
No |
String |
User token. This parameter is mandatory when token authentication is used. You can obtain the token by calling the IAM API used to obtain a user token. Value of X-Subject-Token in the response header. |
|
Authorization |
No |
String |
Authentication information. This parameter is mandatory for AK/SK authentication. |
|
X-Sdk-Date |
No |
String |
Time when a request is sent. This parameter is mandatory for AK/SK authentication. |
|
X-Project-Id |
No |
String |
Project ID. This parameter is mandatory for AK/SK authentication. |
|
X-App-UserId |
No |
String |
Third-party user ID, which does not allow Chinese characters. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
asset_id |
String |
Asset ID. |
|
asset_name |
String |
Asset name. |
|
asset_type |
String |
Asset type. Public asset type. Options:
|
|
asset_state |
String |
Asset status.
|
|
create_time |
String |
Time when an asset is created. |
|
update_time |
String |
Time when an asset is updated. |
|
asset_extra_meta |
TtscAssetExtraMeta object |
Asset metadata. Specify this parameter based on the asset type. |
|
files |
Array of TtscAssetFileInfo objects |
Files under an asset. |
|
Parameter |
Type |
Description |
|---|---|---|
|
voice_model_meta |
TtscVoiceModelAssetMeta object |
Timbre model metadata. |
|
Parameter |
Type |
Description |
|---|---|---|
|
sex |
String |
Timbre gender. Options:
The default value is UNKNOW. Default value: UNKNOW |
|
external_voice_meta |
TtscExternalVoiceAssetMeta object |
Third-party TTS timbre metadata. |
|
language |
String |
Voice language. Options:
The default value is UNKNOW. Default value: UNKNOW |
|
speed_ratio |
Float |
Speaking speed zoom ratio Value range: 0~100 Default value: 1 |
|
volume_ratio |
Float |
Volume zoom ratio Value range: 0~100 Default value: 1 |
|
Parameter |
Type |
Description |
|---|---|---|
|
provider |
String |
Third-party TTS vendor. Options:
|
|
mobvoi_voice_meta |
TtscMobvoiVoiceAssetMeta object |
DupDub TTS timbre metadata. |
|
audiox_voice_meta |
TtscAudioxVoiceAssetMeta object |
AudioX TTS timbre metadata. |
|
Parameter |
Type |
Description |
|---|---|---|
|
speaker |
String |
Specifies the voice for the synthesized speech. |
|
Parameter |
Type |
Description |
|---|---|---|
|
speaker |
String |
Specifies the voice for the synthesized speech. |
|
Parameter |
Type |
Description |
|---|---|---|
|
file_id |
String |
File ID. |
|
file_name |
String |
File name, which is case-insensitive during file creation. The value contains 1 to 256 characters. |
|
file_md5 |
String |
MD5 value of the file content. The value must contain 24 characters. |
|
file_size |
Long |
Total file size. The value ranges from 1 to 5,368,709,120. Value range: 1~5368709120 |
|
file_type |
String |
File type (the file suffix is extracted by default). |
|
asset_file_category |
String |
File category in an asset. Each asset type contains different file categories.
NOTE:
|
|
download_url |
String |
URL for file download. The validity period is 24 hours. |
|
state |
String |
File status. Options:
|
|
reason |
String |
Rejection reason. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Return code.
|
|
error_msg |
String |
Return result description |
|
request_id |
String |
Unique ID of the request. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Return code.
|
|
error_msg |
String |
Return result description |
|
request_id |
String |
Unique ID of the request. |
Example Requests
POST https://{endpoint}/v1/3f0924078d1b471c884a5383d4dec9fa/ttsc/preload/858153064daf186c36a07802dc859234
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Succeeded. |
|
400 |
Parameter error. |
|
500 |
Server error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot