v20200824

package
v1.0.939 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CAM权限错误。
	AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation"

	// 任务状态错误。
	FAILEDOPERATION_ERRORINVALIDTASKSTATUS = "FailedOperation.ErrorInvalidTaskStatus"

	// 任务不存在。
	FAILEDOPERATION_NOSUCHTASK = "FailedOperation.NoSuchTask"

	// 检测失败。
	FAILEDOPERATION_VOICEEVALUATEFAILED = "FailedOperation.VoiceEvaluateFailed"

	// 音频质量差。
	FAILEDOPERATION_VOICENOTQUALIFIED = "FailedOperation.VoiceNotQualified"

	// 内部错误。
	INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"

	// 参数错误。
	INVALIDPARAMETER = "InvalidParameter"

	// 音频数据错误。
	INVALIDPARAMETERVALUE_AUDIODATA = "InvalidParameterValue.AudioData"

	// 音频时长超限,时长不可超过15s
	INVALIDPARAMETERVALUE_AUDIODURATIONEXCEEDSLIMIT = "InvalidParameterValue.AudioDurationExceedsLimit"

	// Codec非法,请参考Codec参数说明。
	INVALIDPARAMETERVALUE_CODEC = "InvalidParameterValue.Codec"

	// 无效TaskId。
	INVALIDPARAMETERVALUE_ERRORINVALIDTASKID = "InvalidParameterValue.ErrorInvalidTaskId"

	// SampleRate非法,请参考SampleRate参数说明。
	INVALIDPARAMETERVALUE_SAMPLERATE = "InvalidParameterValue.SampleRate"

	// 音色性别错误。
	INVALIDPARAMETERVALUE_VOICEGENDER = "InvalidParameterValue.VoiceGender"

	// 音色语言错误。
	INVALIDPARAMETERVALUE_VOICELANGUAGE = "InvalidParameterValue.VoiceLanguage"

	// 音色名称错误。
	INVALIDPARAMETERVALUE_VOICENAME = "InvalidParameterValue.VoiceName"

	// 无声音复刻任务配额
	UNSUPPORTEDOPERATION_VRSQUOTAEXHAUSTED = "UnsupportedOperation.VRSQuotaExhausted"
)
View Source
const APIVersion = "2020-08-24"

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelVRSTaskRequest added in v1.0.703

type CancelVRSTaskRequest struct {
	*tchttp.BaseRequest

	// 任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

func NewCancelVRSTaskRequest added in v1.0.703

func NewCancelVRSTaskRequest() (request *CancelVRSTaskRequest)

func (*CancelVRSTaskRequest) FromJsonString added in v1.0.703

func (r *CancelVRSTaskRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CancelVRSTaskRequest) ToJsonString added in v1.0.703

func (r *CancelVRSTaskRequest) ToJsonString() string

type CancelVRSTaskRequestParams added in v1.0.703

type CancelVRSTaskRequestParams struct {
	// 任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

Predefined struct for user

type CancelVRSTaskResponse added in v1.0.703

type CancelVRSTaskResponse struct {
	*tchttp.BaseResponse
	Response *CancelVRSTaskResponseParams `json:"Response"`
}

func NewCancelVRSTaskResponse added in v1.0.703

func NewCancelVRSTaskResponse() (response *CancelVRSTaskResponse)

func (*CancelVRSTaskResponse) FromJsonString added in v1.0.703

func (r *CancelVRSTaskResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CancelVRSTaskResponse) ToJsonString added in v1.0.703

func (r *CancelVRSTaskResponse) ToJsonString() string

type CancelVRSTaskResponseParams added in v1.0.703

type CancelVRSTaskResponseParams struct {
	// 任务ID
	Data *CancelVRSTaskRsp `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CancelVRSTaskRsp added in v1.0.703

type CancelVRSTaskRsp struct {
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CancelVRSTask added in v1.0.703

func (c *Client) CancelVRSTask(request *CancelVRSTaskRequest) (response *CancelVRSTaskResponse, err error)

CancelVRSTask 声音复刻取消任务接口

可能返回的错误码:

FAILEDOPERATION_ERRORINVALIDTASKSTATUS = "FailedOperation.ErrorInvalidTaskStatus"
FAILEDOPERATION_NOSUCHTASK = "FailedOperation.NoSuchTask"
INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"

func (*Client) CancelVRSTaskWithContext added in v1.0.703

func (c *Client) CancelVRSTaskWithContext(ctx context.Context, request *CancelVRSTaskRequest) (response *CancelVRSTaskResponse, err error)

CancelVRSTask 声音复刻取消任务接口

可能返回的错误码:

FAILEDOPERATION_ERRORINVALIDTASKSTATUS = "FailedOperation.ErrorInvalidTaskStatus"
FAILEDOPERATION_NOSUCHTASK = "FailedOperation.NoSuchTask"
INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"

func (*Client) CreateVRSTask

func (c *Client) CreateVRSTask(request *CreateVRSTaskRequest) (response *CreateVRSTaskResponse, err error)

CreateVRSTask 本接口服务对提交音频进行声音复刻任务创建接口,异步返回复刻结果。

• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"

• 签名方法参考 公共参数 中签名方法v3。

可能返回的错误码:

INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE_CODEC = "InvalidParameterValue.Codec"
INVALIDPARAMETERVALUE_SAMPLERATE = "InvalidParameterValue.SampleRate"
INVALIDPARAMETERVALUE_VOICEGENDER = "InvalidParameterValue.VoiceGender"
INVALIDPARAMETERVALUE_VOICELANGUAGE = "InvalidParameterValue.VoiceLanguage"
INVALIDPARAMETERVALUE_VOICENAME = "InvalidParameterValue.VoiceName"
UNSUPPORTEDOPERATION_VRSQUOTAEXHAUSTED = "UnsupportedOperation.VRSQuotaExhausted"

func (*Client) CreateVRSTaskWithContext

func (c *Client) CreateVRSTaskWithContext(ctx context.Context, request *CreateVRSTaskRequest) (response *CreateVRSTaskResponse, err error)

CreateVRSTask 本接口服务对提交音频进行声音复刻任务创建接口,异步返回复刻结果。

• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"

• 签名方法参考 公共参数 中签名方法v3。

可能返回的错误码:

INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE_CODEC = "InvalidParameterValue.Codec"
INVALIDPARAMETERVALUE_SAMPLERATE = "InvalidParameterValue.SampleRate"
INVALIDPARAMETERVALUE_VOICEGENDER = "InvalidParameterValue.VoiceGender"
INVALIDPARAMETERVALUE_VOICELANGUAGE = "InvalidParameterValue.VoiceLanguage"
INVALIDPARAMETERVALUE_VOICENAME = "InvalidParameterValue.VoiceName"
UNSUPPORTEDOPERATION_VRSQUOTAEXHAUSTED = "UnsupportedOperation.VRSQuotaExhausted"

func (*Client) DescribeVRSTaskStatus

func (c *Client) DescribeVRSTaskStatus(request *DescribeVRSTaskStatusRequest) (response *DescribeVRSTaskStatusResponse, err error)

DescribeVRSTaskStatus 在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。

• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 声音复刻结果回调 。

• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。

• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"

• 签名方法参考 公共参数 中签名方法v3。

可能返回的错误码:

FAILEDOPERATION_NOSUCHTASK = "FailedOperation.NoSuchTask"

func (*Client) DescribeVRSTaskStatusWithContext

func (c *Client) DescribeVRSTaskStatusWithContext(ctx context.Context, request *DescribeVRSTaskStatusRequest) (response *DescribeVRSTaskStatusResponse, err error)

DescribeVRSTaskStatus 在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。

• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 声音复刻结果回调 。

• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。

• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"

• 签名方法参考 公共参数 中签名方法v3。

可能返回的错误码:

FAILEDOPERATION_NOSUCHTASK = "FailedOperation.NoSuchTask"

func (*Client) DetectEnvAndSoundQuality

func (c *Client) DetectEnvAndSoundQuality(request *DetectEnvAndSoundQualityRequest) (response *DetectEnvAndSoundQualityResponse, err error)

DetectEnvAndSoundQuality 本接口用于检测音频的环境和音频质量。

• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"

• 签名方法参考 公共参数 中签名方法v3。

可能返回的错误码:

FAILEDOPERATION_VOICEEVALUATEFAILED = "FailedOperation.VoiceEvaluateFailed"
FAILEDOPERATION_VOICENOTQUALIFIED = "FailedOperation.VoiceNotQualified"
INVALIDPARAMETERVALUE_AUDIODATA = "InvalidParameterValue.AudioData"
INVALIDPARAMETERVALUE_AUDIODURATIONEXCEEDSLIMIT = "InvalidParameterValue.AudioDurationExceedsLimit"
INVALIDPARAMETERVALUE_CODEC = "InvalidParameterValue.Codec"
INVALIDPARAMETERVALUE_SAMPLERATE = "InvalidParameterValue.SampleRate"

func (*Client) DetectEnvAndSoundQualityWithContext

func (c *Client) DetectEnvAndSoundQualityWithContext(ctx context.Context, request *DetectEnvAndSoundQualityRequest) (response *DetectEnvAndSoundQualityResponse, err error)

DetectEnvAndSoundQuality 本接口用于检测音频的环境和音频质量。

• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"

• 签名方法参考 公共参数 中签名方法v3。

可能返回的错误码:

FAILEDOPERATION_VOICEEVALUATEFAILED = "FailedOperation.VoiceEvaluateFailed"
FAILEDOPERATION_VOICENOTQUALIFIED = "FailedOperation.VoiceNotQualified"
INVALIDPARAMETERVALUE_AUDIODATA = "InvalidParameterValue.AudioData"
INVALIDPARAMETERVALUE_AUDIODURATIONEXCEEDSLIMIT = "InvalidParameterValue.AudioDurationExceedsLimit"
INVALIDPARAMETERVALUE_CODEC = "InvalidParameterValue.Codec"
INVALIDPARAMETERVALUE_SAMPLERATE = "InvalidParameterValue.SampleRate"

func (*Client) DownloadVRSModel added in v1.0.703

func (c *Client) DownloadVRSModel(request *DownloadVRSModelRequest) (response *DownloadVRSModelResponse, err error)

DownloadVRSModel 下载声音复刻离线模型

可能返回的错误码:

FAILEDOPERATION_ERRORINVALIDTASKSTATUS = "FailedOperation.ErrorInvalidTaskStatus"
FAILEDOPERATION_NOSUCHTASK = "FailedOperation.NoSuchTask"
INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"
INVALIDPARAMETERVALUE_ERRORINVALIDTASKID = "InvalidParameterValue.ErrorInvalidTaskId"

func (*Client) DownloadVRSModelWithContext added in v1.0.703

func (c *Client) DownloadVRSModelWithContext(ctx context.Context, request *DownloadVRSModelRequest) (response *DownloadVRSModelResponse, err error)

DownloadVRSModel 下载声音复刻离线模型

可能返回的错误码:

FAILEDOPERATION_ERRORINVALIDTASKSTATUS = "FailedOperation.ErrorInvalidTaskStatus"
FAILEDOPERATION_NOSUCHTASK = "FailedOperation.NoSuchTask"
INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"
INVALIDPARAMETERVALUE_ERRORINVALIDTASKID = "InvalidParameterValue.ErrorInvalidTaskId"

func (*Client) GetTrainingText

func (c *Client) GetTrainingText(request *GetTrainingTextRequest) (response *GetTrainingTextResponse, err error)

GetTrainingText 本接口用于获取声音复刻训练文本信息。

请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"

• 签名方法参考 公共参数 中签名方法v3。

可能返回的错误码:

FAILEDOPERATION_ERRORINVALIDTASKSTATUS = "FailedOperation.ErrorInvalidTaskStatus"
FAILEDOPERATION_NOSUCHTASK = "FailedOperation.NoSuchTask"
INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"
INVALIDPARAMETERVALUE_ERRORINVALIDTASKID = "InvalidParameterValue.ErrorInvalidTaskId"

func (*Client) GetTrainingTextWithContext

func (c *Client) GetTrainingTextWithContext(ctx context.Context, request *GetTrainingTextRequest) (response *GetTrainingTextResponse, err error)

GetTrainingText 本接口用于获取声音复刻训练文本信息。

请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"

• 签名方法参考 公共参数 中签名方法v3。

可能返回的错误码:

FAILEDOPERATION_ERRORINVALIDTASKSTATUS = "FailedOperation.ErrorInvalidTaskStatus"
FAILEDOPERATION_NOSUCHTASK = "FailedOperation.NoSuchTask"
INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"
INVALIDPARAMETERVALUE_ERRORINVALIDTASKID = "InvalidParameterValue.ErrorInvalidTaskId"

func (*Client) GetVRSVoiceTypes added in v1.0.795

func (c *Client) GetVRSVoiceTypes(request *GetVRSVoiceTypesRequest) (response *GetVRSVoiceTypesResponse, err error)

GetVRSVoiceTypes 查询复刻音色

可能返回的错误码:

AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation"
INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"

func (*Client) GetVRSVoiceTypesWithContext added in v1.0.795

func (c *Client) GetVRSVoiceTypesWithContext(ctx context.Context, request *GetVRSVoiceTypesRequest) (response *GetVRSVoiceTypesResponse, err error)

GetVRSVoiceTypes 查询复刻音色

可能返回的错误码:

AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation"
INTERNALERROR_FAILACCESSDATABASE = "InternalError.FailAccessDatabase"

type CreateVRSTaskRequest

type CreateVRSTaskRequest struct {
	*tchttp.BaseRequest

	// 唯一请求 ID
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`

	// 音色名称
	VoiceName *string `json:"VoiceName,omitnil,omitempty" name:"VoiceName"`

	// 音色性别:
	//
	// 1-male
	//
	// 2-female
	VoiceGender *int64 `json:"VoiceGender,omitnil,omitempty" name:"VoiceGender"`

	// 语言类型:
	//
	// 1-中文
	VoiceLanguage *int64 `json:"VoiceLanguage,omitnil,omitempty" name:"VoiceLanguage"`

	// 音频ID集合
	AudioIdList []*string `json:"AudioIdList,omitnil,omitempty" name:"AudioIdList"`

	// 音频采样率:
	//
	// 16000:16k
	SampleRate *int64 `json:"SampleRate,omitnil,omitempty" name:"SampleRate"`

	// 音频格式,音频类型(wav,mp3,aac,m4a)
	Codec *string `json:"Codec,omitnil,omitempty" name:"Codec"`

	// 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。
	// 回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}
	CallbackUrl *string `json:"CallbackUrl,omitnil,omitempty" name:"CallbackUrl"`

	// 模型类型 1:在线 2:离线  默认为1
	ModelType *int64 `json:"ModelType,omitnil,omitempty" name:"ModelType"`

	// 复刻类型。 0 - 轻量版声音复刻(默认)。
	TaskType *int64 `json:"TaskType,omitnil,omitempty" name:"TaskType"`

	// 校验音频ID。
	VPRAudioId *string `json:"VPRAudioId,omitnil,omitempty" name:"VPRAudioId"`
}

func NewCreateVRSTaskRequest

func NewCreateVRSTaskRequest() (request *CreateVRSTaskRequest)

func (*CreateVRSTaskRequest) FromJsonString

func (r *CreateVRSTaskRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateVRSTaskRequest) ToJsonString

func (r *CreateVRSTaskRequest) ToJsonString() string

type CreateVRSTaskRequestParams

type CreateVRSTaskRequestParams struct {
	// 唯一请求 ID
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`

	// 音色名称
	VoiceName *string `json:"VoiceName,omitnil,omitempty" name:"VoiceName"`

	// 音色性别:
	//
	// 1-male
	//
	// 2-female
	VoiceGender *int64 `json:"VoiceGender,omitnil,omitempty" name:"VoiceGender"`

	// 语言类型:
	//
	// 1-中文
	VoiceLanguage *int64 `json:"VoiceLanguage,omitnil,omitempty" name:"VoiceLanguage"`

	// 音频ID集合
	AudioIdList []*string `json:"AudioIdList,omitnil,omitempty" name:"AudioIdList"`

	// 音频采样率:
	//
	// 16000:16k
	SampleRate *int64 `json:"SampleRate,omitnil,omitempty" name:"SampleRate"`

	// 音频格式,音频类型(wav,mp3,aac,m4a)
	Codec *string `json:"Codec,omitnil,omitempty" name:"Codec"`

	// 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。
	// 回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}
	CallbackUrl *string `json:"CallbackUrl,omitnil,omitempty" name:"CallbackUrl"`

	// 模型类型 1:在线 2:离线  默认为1
	ModelType *int64 `json:"ModelType,omitnil,omitempty" name:"ModelType"`

	// 复刻类型。 0 - 轻量版声音复刻(默认)。
	TaskType *int64 `json:"TaskType,omitnil,omitempty" name:"TaskType"`

	// 校验音频ID。
	VPRAudioId *string `json:"VPRAudioId,omitnil,omitempty" name:"VPRAudioId"`
}

Predefined struct for user

type CreateVRSTaskRespData

type CreateVRSTaskRespData struct {
	// 任务ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

type CreateVRSTaskResponse

type CreateVRSTaskResponse struct {
	*tchttp.BaseResponse
	Response *CreateVRSTaskResponseParams `json:"Response"`
}

func NewCreateVRSTaskResponse

func NewCreateVRSTaskResponse() (response *CreateVRSTaskResponse)

func (*CreateVRSTaskResponse) FromJsonString

func (r *CreateVRSTaskResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateVRSTaskResponse) ToJsonString

func (r *CreateVRSTaskResponse) ToJsonString() string

type CreateVRSTaskResponseParams

type CreateVRSTaskResponseParams struct {
	// 创建任务结果
	Data *CreateVRSTaskRespData `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeVRSTaskStatusRequest

type DescribeVRSTaskStatusRequest struct {
	*tchttp.BaseRequest

	// 任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

func NewDescribeVRSTaskStatusRequest

func NewDescribeVRSTaskStatusRequest() (request *DescribeVRSTaskStatusRequest)

func (*DescribeVRSTaskStatusRequest) FromJsonString

func (r *DescribeVRSTaskStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeVRSTaskStatusRequest) ToJsonString

func (r *DescribeVRSTaskStatusRequest) ToJsonString() string

type DescribeVRSTaskStatusRequestParams

type DescribeVRSTaskStatusRequestParams struct {
	// 任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

Predefined struct for user

type DescribeVRSTaskStatusRespData

type DescribeVRSTaskStatusRespData struct {
	// 任务ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// 任务状态码,0:任务等待,1:任务执行中,2:任务成功,3:任务失败。
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。
	// 注意:此字段可能返回 null,表示取不到有效值。
	StatusStr *string `json:"StatusStr,omitnil,omitempty" name:"StatusStr"`

	// 音色id。
	// 注意:此字段可能返回 null,表示取不到有效值。
	VoiceType *int64 `json:"VoiceType,omitnil,omitempty" name:"VoiceType"`

	// 失败原因说明。
	// 注意:此字段可能返回 null,表示取不到有效值。
	ErrorMsg *string `json:"ErrorMsg,omitnil,omitempty" name:"ErrorMsg"`
}

type DescribeVRSTaskStatusResponse

type DescribeVRSTaskStatusResponse struct {
	*tchttp.BaseResponse
	Response *DescribeVRSTaskStatusResponseParams `json:"Response"`
}

func NewDescribeVRSTaskStatusResponse

func NewDescribeVRSTaskStatusResponse() (response *DescribeVRSTaskStatusResponse)

func (*DescribeVRSTaskStatusResponse) FromJsonString

func (r *DescribeVRSTaskStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeVRSTaskStatusResponse) ToJsonString

func (r *DescribeVRSTaskStatusResponse) ToJsonString() string

type DescribeVRSTaskStatusResponseParams

type DescribeVRSTaskStatusResponseParams struct {
	// 声音复刻任务结果
	Data *DescribeVRSTaskStatusRespData `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DetectEnvAndSoundQualityRequest

type DetectEnvAndSoundQualityRequest struct {
	*tchttp.BaseRequest

	// 标注文本信息 ID
	TextId *string `json:"TextId,omitnil,omitempty" name:"TextId"`

	// 语音数据 要使用base64编码(采用python语言时注意读取文件时需要转成base64字符串编码,例如:str(base64.b64encode(open("input.aac", mode="rb").read()), encoding='utf-8') )。
	AudioData *string `json:"AudioData,omitnil,omitempty" name:"AudioData"`

	// 1:环境检测 2:音质检测
	TypeId *int64 `json:"TypeId,omitnil,omitempty" name:"TypeId"`

	// 音频格式,音频类型(wav,mp3,aac,m4a)
	Codec *string `json:"Codec,omitnil,omitempty" name:"Codec"`

	// 音频采样率:
	//
	// 16000:16k(默认)
	SampleRate *int64 `json:"SampleRate,omitnil,omitempty" name:"SampleRate"`
}

func NewDetectEnvAndSoundQualityRequest

func NewDetectEnvAndSoundQualityRequest() (request *DetectEnvAndSoundQualityRequest)

func (*DetectEnvAndSoundQualityRequest) FromJsonString

func (r *DetectEnvAndSoundQualityRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DetectEnvAndSoundQualityRequest) ToJsonString

func (r *DetectEnvAndSoundQualityRequest) ToJsonString() string

type DetectEnvAndSoundQualityRequestParams

type DetectEnvAndSoundQualityRequestParams struct {
	// 标注文本信息 ID
	TextId *string `json:"TextId,omitnil,omitempty" name:"TextId"`

	// 语音数据 要使用base64编码(采用python语言时注意读取文件时需要转成base64字符串编码,例如:str(base64.b64encode(open("input.aac", mode="rb").read()), encoding='utf-8') )。
	AudioData *string `json:"AudioData,omitnil,omitempty" name:"AudioData"`

	// 1:环境检测 2:音质检测
	TypeId *int64 `json:"TypeId,omitnil,omitempty" name:"TypeId"`

	// 音频格式,音频类型(wav,mp3,aac,m4a)
	Codec *string `json:"Codec,omitnil,omitempty" name:"Codec"`

	// 音频采样率:
	//
	// 16000:16k(默认)
	SampleRate *int64 `json:"SampleRate,omitnil,omitempty" name:"SampleRate"`
}

Predefined struct for user

type DetectEnvAndSoundQualityResponse

type DetectEnvAndSoundQualityResponse struct {
	*tchttp.BaseResponse
	Response *DetectEnvAndSoundQualityResponseParams `json:"Response"`
}

func NewDetectEnvAndSoundQualityResponse

func NewDetectEnvAndSoundQualityResponse() (response *DetectEnvAndSoundQualityResponse)

func (*DetectEnvAndSoundQualityResponse) FromJsonString

func (r *DetectEnvAndSoundQualityResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DetectEnvAndSoundQualityResponse) ToJsonString

func (r *DetectEnvAndSoundQualityResponse) ToJsonString() string

type DetectEnvAndSoundQualityResponseParams

type DetectEnvAndSoundQualityResponseParams struct {
	// 检测结果
	Data *DetectionEnvAndSoundQualityRespData `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DetectionEnvAndSoundQualityRespData

type DetectionEnvAndSoundQualityRespData struct {
	// 音频ID (用于创建任务接口AudioIds),环境检测该值为空,仅在音质检测情况下返回
	// 注意:此字段可能返回 null,表示取不到有效值。
	AudioId *string `json:"AudioId,omitnil,omitempty" name:"AudioId"`

	// 检测code
	//
	// 0 表示当前语音通过
	// -1 表示检测失败,需要重试
	// -2 表示语音检测不通过,提示用户再重新录制一下(通常漏读,错读,或多读)
	// -3 表示语音中噪声较大,不通过
	// 注意:此字段可能返回 null,表示取不到有效值。
	DetectionCode *int64 `json:"DetectionCode,omitnil,omitempty" name:"DetectionCode"`

	// 检测提示信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	DetectionMsg *string `json:"DetectionMsg,omitnil,omitempty" name:"DetectionMsg"`

	// 检测提示信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	DetectionTip []*Words `json:"DetectionTip,omitnil,omitempty" name:"DetectionTip"`
}

type DownloadVRSModelRequest added in v1.0.703

type DownloadVRSModelRequest struct {
	*tchttp.BaseRequest

	// 任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

func NewDownloadVRSModelRequest added in v1.0.703

func NewDownloadVRSModelRequest() (request *DownloadVRSModelRequest)

func (*DownloadVRSModelRequest) FromJsonString added in v1.0.703

func (r *DownloadVRSModelRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DownloadVRSModelRequest) ToJsonString added in v1.0.703

func (r *DownloadVRSModelRequest) ToJsonString() string

type DownloadVRSModelRequestParams added in v1.0.703

type DownloadVRSModelRequestParams struct {
	// 任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

Predefined struct for user

type DownloadVRSModelResponse added in v1.0.703

type DownloadVRSModelResponse struct {
	*tchttp.BaseResponse
	Response *DownloadVRSModelResponseParams `json:"Response"`
}

func NewDownloadVRSModelResponse added in v1.0.703

func NewDownloadVRSModelResponse() (response *DownloadVRSModelResponse)

func (*DownloadVRSModelResponse) FromJsonString added in v1.0.703

func (r *DownloadVRSModelResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DownloadVRSModelResponse) ToJsonString added in v1.0.703

func (r *DownloadVRSModelResponse) ToJsonString() string

type DownloadVRSModelResponseParams added in v1.0.703

type DownloadVRSModelResponseParams struct {
	// 响应
	Data *DownloadVRSModelRsp `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DownloadVRSModelRsp added in v1.0.703

type DownloadVRSModelRsp struct {
	// 模型cos地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	Model *string `json:"Model,omitnil,omitempty" name:"Model"`

	// 音色名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	VoiceName *string `json:"VoiceName,omitnil,omitempty" name:"VoiceName"`

	// 音色性别:
	// 1-male
	// 2-female
	// 注意:此字段可能返回 null,表示取不到有效值。
	VoiceGender *int64 `json:"VoiceGender,omitnil,omitempty" name:"VoiceGender"`

	// 语言类型:
	// 1-中文
	// 注意:此字段可能返回 null,表示取不到有效值。
	VoiceLanguage *int64 `json:"VoiceLanguage,omitnil,omitempty" name:"VoiceLanguage"`

	// 任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

type GetTrainingTextRequest

type GetTrainingTextRequest struct {
	*tchttp.BaseRequest
}

func NewGetTrainingTextRequest

func NewGetTrainingTextRequest() (request *GetTrainingTextRequest)

func (*GetTrainingTextRequest) FromJsonString

func (r *GetTrainingTextRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetTrainingTextRequest) ToJsonString

func (r *GetTrainingTextRequest) ToJsonString() string

type GetTrainingTextRequestParams

type GetTrainingTextRequestParams struct {
}

Predefined struct for user

type GetTrainingTextResponse

type GetTrainingTextResponse struct {
	*tchttp.BaseResponse
	Response *GetTrainingTextResponseParams `json:"Response"`
}

func NewGetTrainingTextResponse

func NewGetTrainingTextResponse() (response *GetTrainingTextResponse)

func (*GetTrainingTextResponse) FromJsonString

func (r *GetTrainingTextResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetTrainingTextResponse) ToJsonString

func (r *GetTrainingTextResponse) ToJsonString() string

type GetTrainingTextResponseParams

type GetTrainingTextResponseParams struct {
	// 文本列表
	Data *TrainingTexts `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetVRSVoiceTypesRequest added in v1.0.795

type GetVRSVoiceTypesRequest struct {
	*tchttp.BaseRequest
}

func NewGetVRSVoiceTypesRequest added in v1.0.795

func NewGetVRSVoiceTypesRequest() (request *GetVRSVoiceTypesRequest)

func (*GetVRSVoiceTypesRequest) FromJsonString added in v1.0.795

func (r *GetVRSVoiceTypesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetVRSVoiceTypesRequest) ToJsonString added in v1.0.795

func (r *GetVRSVoiceTypesRequest) ToJsonString() string

type GetVRSVoiceTypesRequestParams added in v1.0.795

type GetVRSVoiceTypesRequestParams struct {
}

Predefined struct for user

type GetVRSVoiceTypesResponse added in v1.0.795

type GetVRSVoiceTypesResponse struct {
	*tchttp.BaseResponse
	Response *GetVRSVoiceTypesResponseParams `json:"Response"`
}

func NewGetVRSVoiceTypesResponse added in v1.0.795

func NewGetVRSVoiceTypesResponse() (response *GetVRSVoiceTypesResponse)

func (*GetVRSVoiceTypesResponse) FromJsonString added in v1.0.795

func (r *GetVRSVoiceTypesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetVRSVoiceTypesResponse) ToJsonString added in v1.0.795

func (r *GetVRSVoiceTypesResponse) ToJsonString() string

type GetVRSVoiceTypesResponseParams added in v1.0.795

type GetVRSVoiceTypesResponseParams struct {
	// 复刻音色信息
	Data *VoiceTypeListData `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type TrainingText

type TrainingText struct {
	// 文本ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	TextId *string `json:"TextId,omitnil,omitempty" name:"TextId"`

	// 文本
	// 注意:此字段可能返回 null,表示取不到有效值。
	Text *string `json:"Text,omitnil,omitempty" name:"Text"`
}

type TrainingTexts

type TrainingTexts struct {
	// 训练文本列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	TrainingTextList []*TrainingText `json:"TrainingTextList,omitnil,omitempty" name:"TrainingTextList"`
}

type VoiceTypeInfo added in v1.0.795

type VoiceTypeInfo struct {
	// 音色id
	VoiceType *int64 `json:"VoiceType,omitnil,omitempty" name:"VoiceType"`

	// 音色名称
	VoiceName *string `json:"VoiceName,omitnil,omitempty" name:"VoiceName"`

	// 音色性别: 1-male 2-female
	VoiceGender *int64 `json:"VoiceGender,omitnil,omitempty" name:"VoiceGender"`

	// 复刻类型: 0-轻量版复刻 1-基础版复刻
	TaskType *int64 `json:"TaskType,omitnil,omitempty" name:"TaskType"`

	// 复刻任务 ID
	TaskID *string `json:"TaskID,omitnil,omitempty" name:"TaskID"`

	// 创建时间
	DateCreated *string `json:"DateCreated,omitnil,omitempty" name:"DateCreated"`

	// 部署状态。若已部署,则可通过语音合成接口调用该音色
	IsDeployed *bool `json:"IsDeployed,omitnil,omitempty" name:"IsDeployed"`
}

type VoiceTypeListData added in v1.0.795

type VoiceTypeListData struct {
	// 音色信息列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	VoiceTypeList []*VoiceTypeInfo `json:"VoiceTypeList,omitnil,omitempty" name:"VoiceTypeList"`
}

type Words

type Words struct {
	// 准确度 (<75则认为不合格)
	// 注意:此字段可能返回 null,表示取不到有效值。
	PronAccuracy *float64 `json:"PronAccuracy,omitnil,omitempty" name:"PronAccuracy"`

	// 流畅度 (<0.95则认为不合格)
	// 注意:此字段可能返回 null,表示取不到有效值。
	PronFluency *float64 `json:"PronFluency,omitnil,omitempty" name:"PronFluency"`

	// tag:
	// 0: match  匹配
	// 1: insert   多读
	// 2: delete  少读
	// 3: replace 错读
	// 4: oov  待评估字不在发音评估的词库
	// 5: unknown 未知错误
	// 注意:此字段可能返回 null,表示取不到有效值。
	Tag *int64 `json:"Tag,omitnil,omitempty" name:"Tag"`

	// 字
	// 注意:此字段可能返回 null,表示取不到有效值。
	Word *string `json:"Word,omitnil,omitempty" name:"Word"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL