Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) SendCodeVoice(request *SendCodeVoiceRequest) (response *SendCodeVoiceResponse, err error)
- func (c *Client) SendCodeVoiceWithContext(ctx context.Context, request *SendCodeVoiceRequest) (response *SendCodeVoiceResponse, err error)
- func (c *Client) SendTtsVoice(request *SendTtsVoiceRequest) (response *SendTtsVoiceResponse, err error)
- func (c *Client) SendTtsVoiceWithContext(ctx context.Context, request *SendTtsVoiceRequest) (response *SendTtsVoiceResponse, err error)
- type SendCodeVoiceRequest
- type SendCodeVoiceRequestParams
- type SendCodeVoiceResponse
- type SendCodeVoiceResponseParams
- type SendStatus
- type SendTtsVoiceRequest
- type SendTtsVoiceRequestParams
- type SendTtsVoiceResponse
- type SendTtsVoiceResponseParams
Constants ¶
const ( // 访问上下游模块超时。 FAILEDOPERATION_ACCESSUPSTREAMTIMEOUT = "FailedOperation.AccessUpstreamTimeout" // 语音内容中含有敏感词,请[联系我们](https://cloud.tencent.com/document/product/1128/37720)沟通解决。 FAILEDOPERATION_CONTAINSENSITIVEWORD = "FailedOperation.ContainSensitiveWord" // 后端请求包解析失败,通常由于没有遵守 API 接口说明规范导致的,请参见[1004错误详解](https://cloud.tencent.com/document/product/1128/38004#Q5)。 FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" // 套餐包余量不足,请及时[购买语音套餐包](https://buy.cloud.tencent.com/voice)。 FAILEDOPERATION_INSUFFICIENTBALANCEINVOICEPACKAGE = "FailedOperation.InsufficientBalanceInVoicePackage" // 无效 JSON,请核查发送的请求是否为标准的 JSON 格式。 FAILEDOPERATION_INVALIDJSONPARAMETERS = "FailedOperation.InvalidJsonParameters" // 无效参数,请核查发送的请求参数是否为对应 API 所需参数。 FAILEDOPERATION_INVALIDPARAMETERS = "FailedOperation.InvalidParameters" // 解析请求包体时候失败。 FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" // 语音未知错误,请[联系我们](https://cloud.tencent.com/document/product/1128/37720)沟通解决。 FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError" // 未申请号码或申请的号码资源已过期,请及时支付月功能费用和信息服务费用,具体操作请参见[购买指南](https://cloud.tencent.com/document/product/1128/90745)。 FAILEDOPERATION_PHONENUMBERUNAPPLIEDOREXPIRED = "FailedOperation.PhonenumberUnappliedOrExpired" // 模板未审核或请求的内容与审核通过的模板内容不匹配,请参见[1014错误详解](https://cloud.tencent.com/document/product/1128/38004#Q6) FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved" // 访问上游超时网络,请稍后重试。 INTERNALERROR_ACCESSUPSTREAMTIMEOUT = "InternalError.AccessUpstreamTimeout" // 请求发起时间不正常,通常由您的服务器与腾讯云服务器之间的时间差超过10分钟引起。 INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" // 后端不存在该 REST API 接口,请核查 REST API 接口说明。 INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" // 后端 Sig 校验失败。 INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" // 内部sso通道超时。 INTERNALERROR_SSOSENDRECVFAIL = "InternalError.SsoSendRecvFail" // 语音上游错误,请[联系我们](https://cloud.tencent.com/document/product/1128/37720)沟通解决。 INTERNALERROR_UPSTREAMERROR = "InternalError.UpstreamError" // 被叫手机号码格式校验失败。 INVALIDPARAMETERVALUE_CALLEDNUMBERVERIFYFAIL = "InvalidParameterValue.CalledNumberVerifyFail" // 语音模板中单个变量长度超过限制,如需调整限制,请[联系我们](https://cloud.tencent.com/document/product/1128/37720)。 INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = "InvalidParameterValue.ContentLengthLimit" // SDK AppID 不存在。 INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppidNotExist" // 下发语音消息时命中频率限制策略,如需申请不受频率限制的测试号码或更改限制策略,请[联系我们](https://cloud.tencent.com/document/product/1128/37720)。 LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = "LimitExceeded.DeliveryFrequencyLimit" // SDK AppID 禁用发送语音消息,如有需要请[联系我们](https://cloud.tencent.com/document/product/1128/37720)。 UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" // 因腾讯云账号欠费被停止服务,请及时为您的腾讯云账号[充值](https://cloud.tencent.com/document/product/555/7425)缴清欠款。 UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears" // VoiceSdkAppid 校验失败。 UNAUTHORIZEDOPERATION_VOICESDKAPPIDVERIFYFAIL = "UnauthorizedOperation.VoiceSdkAppidVerifyFail" // 操作不支持。 UNSUPPORTEDOPERATION = "UnsupportedOperation" )
const APIVersion = "2020-09-02"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) SendCodeVoice ¶
func (c *Client) SendCodeVoice(request *SendCodeVoiceRequest) (response *SendCodeVoiceResponse, err error)
SendCodeVoice 给用户发语音验证码(仅支持数字)。
可能返回的错误码:
FAILEDOPERATION_ACCESSUPSTREAMTIMEOUT = "FailedOperation.AccessUpstreamTimeout" FAILEDOPERATION_CONTAINSENSITIVEWORD = "FailedOperation.ContainSensitiveWord" FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_INSUFFICIENTBALANCEINVOICEPACKAGE = "FailedOperation.InsufficientBalanceInVoicePackage" FAILEDOPERATION_INVALIDJSONPARAMETERS = "FailedOperation.InvalidJsonParameters" FAILEDOPERATION_INVALIDPARAMETERS = "FailedOperation.InvalidParameters" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError" FAILEDOPERATION_PHONENUMBERUNAPPLIEDOREXPIRED = "FailedOperation.PhonenumberUnappliedOrExpired" FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved" INTERNALERROR_ACCESSUPSTREAMTIMEOUT = "InternalError.AccessUpstreamTimeout" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_SSOSENDRECVFAIL = "InternalError.SsoSendRecvFail" INTERNALERROR_UPSTREAMERROR = "InternalError.UpstreamError" INVALIDPARAMETERVALUE_CALLEDNUMBERVERIFYFAIL = "InvalidParameterValue.CalledNumberVerifyFail" INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = "InvalidParameterValue.ContentLengthLimit" INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppidNotExist" LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = "LimitExceeded.DeliveryFrequencyLimit" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears" UNAUTHORIZEDOPERATION_VOICESDKAPPIDVERIFYFAIL = "UnauthorizedOperation.VoiceSdkAppidVerifyFail" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) SendCodeVoiceWithContext ¶ added in v1.0.324
func (c *Client) SendCodeVoiceWithContext(ctx context.Context, request *SendCodeVoiceRequest) (response *SendCodeVoiceResponse, err error)
SendCodeVoice 给用户发语音验证码(仅支持数字)。
可能返回的错误码:
FAILEDOPERATION_ACCESSUPSTREAMTIMEOUT = "FailedOperation.AccessUpstreamTimeout" FAILEDOPERATION_CONTAINSENSITIVEWORD = "FailedOperation.ContainSensitiveWord" FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_INSUFFICIENTBALANCEINVOICEPACKAGE = "FailedOperation.InsufficientBalanceInVoicePackage" FAILEDOPERATION_INVALIDJSONPARAMETERS = "FailedOperation.InvalidJsonParameters" FAILEDOPERATION_INVALIDPARAMETERS = "FailedOperation.InvalidParameters" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError" FAILEDOPERATION_PHONENUMBERUNAPPLIEDOREXPIRED = "FailedOperation.PhonenumberUnappliedOrExpired" FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved" INTERNALERROR_ACCESSUPSTREAMTIMEOUT = "InternalError.AccessUpstreamTimeout" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_SSOSENDRECVFAIL = "InternalError.SsoSendRecvFail" INTERNALERROR_UPSTREAMERROR = "InternalError.UpstreamError" INVALIDPARAMETERVALUE_CALLEDNUMBERVERIFYFAIL = "InvalidParameterValue.CalledNumberVerifyFail" INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = "InvalidParameterValue.ContentLengthLimit" INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppidNotExist" LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = "LimitExceeded.DeliveryFrequencyLimit" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears" UNAUTHORIZEDOPERATION_VOICESDKAPPIDVERIFYFAIL = "UnauthorizedOperation.VoiceSdkAppidVerifyFail" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) SendTtsVoice ¶
func (c *Client) SendTtsVoice(request *SendTtsVoiceRequest) (response *SendTtsVoiceResponse, err error)
SendTtsVoice 给用户发送指定模板的语音通知。
可能返回的错误码:
FAILEDOPERATION_ACCESSUPSTREAMTIMEOUT = "FailedOperation.AccessUpstreamTimeout" FAILEDOPERATION_CONTAINSENSITIVEWORD = "FailedOperation.ContainSensitiveWord" FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_INSUFFICIENTBALANCEINVOICEPACKAGE = "FailedOperation.InsufficientBalanceInVoicePackage" FAILEDOPERATION_INVALIDJSONPARAMETERS = "FailedOperation.InvalidJsonParameters" FAILEDOPERATION_INVALIDPARAMETERS = "FailedOperation.InvalidParameters" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError" FAILEDOPERATION_PHONENUMBERUNAPPLIEDOREXPIRED = "FailedOperation.PhonenumberUnappliedOrExpired" FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved" INTERNALERROR_ACCESSUPSTREAMTIMEOUT = "InternalError.AccessUpstreamTimeout" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_SSOSENDRECVFAIL = "InternalError.SsoSendRecvFail" INTERNALERROR_UPSTREAMERROR = "InternalError.UpstreamError" INVALIDPARAMETERVALUE_CALLEDNUMBERVERIFYFAIL = "InvalidParameterValue.CalledNumberVerifyFail" INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = "InvalidParameterValue.ContentLengthLimit" INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppidNotExist" LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = "LimitExceeded.DeliveryFrequencyLimit" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears" UNAUTHORIZEDOPERATION_VOICESDKAPPIDVERIFYFAIL = "UnauthorizedOperation.VoiceSdkAppidVerifyFail" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) SendTtsVoiceWithContext ¶ added in v1.0.324
func (c *Client) SendTtsVoiceWithContext(ctx context.Context, request *SendTtsVoiceRequest) (response *SendTtsVoiceResponse, err error)
SendTtsVoice 给用户发送指定模板的语音通知。
可能返回的错误码:
FAILEDOPERATION_ACCESSUPSTREAMTIMEOUT = "FailedOperation.AccessUpstreamTimeout" FAILEDOPERATION_CONTAINSENSITIVEWORD = "FailedOperation.ContainSensitiveWord" FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_INSUFFICIENTBALANCEINVOICEPACKAGE = "FailedOperation.InsufficientBalanceInVoicePackage" FAILEDOPERATION_INVALIDJSONPARAMETERS = "FailedOperation.InvalidJsonParameters" FAILEDOPERATION_INVALIDPARAMETERS = "FailedOperation.InvalidParameters" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError" FAILEDOPERATION_PHONENUMBERUNAPPLIEDOREXPIRED = "FailedOperation.PhonenumberUnappliedOrExpired" FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved" INTERNALERROR_ACCESSUPSTREAMTIMEOUT = "InternalError.AccessUpstreamTimeout" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_SSOSENDRECVFAIL = "InternalError.SsoSendRecvFail" INTERNALERROR_UPSTREAMERROR = "InternalError.UpstreamError" INVALIDPARAMETERVALUE_CALLEDNUMBERVERIFYFAIL = "InvalidParameterValue.CalledNumberVerifyFail" INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = "InvalidParameterValue.ContentLengthLimit" INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppidNotExist" LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = "LimitExceeded.DeliveryFrequencyLimit" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears" UNAUTHORIZEDOPERATION_VOICESDKAPPIDVERIFYFAIL = "UnauthorizedOperation.VoiceSdkAppidVerifyFail" UNSUPPORTEDOPERATION = "UnsupportedOperation"
type SendCodeVoiceRequest ¶
type SendCodeVoiceRequest struct { *tchttp.BaseRequest // 验证码,仅支持填写数字,实际播报语音时,会自动在数字前补充语音文本"您的验证码是"。 CodeMessage *string `json:"CodeMessage,omitnil,omitempty" name:"CodeMessage"` // 被叫手机号码,采用 e.164 标准,格式为+[国家或地区码][用户号码]。 // 例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。 CalledNumber *string `json:"CalledNumber,omitnil,omitempty" name:"CalledNumber"` // 在[语音控制台](https://console.cloud.tencent.com/vms)添加应用后生成的实际SdkAppid,示例如1400006666。 VoiceSdkAppid *string `json:"VoiceSdkAppid,omitnil,omitempty" name:"VoiceSdkAppid"` // 播放次数,可选,最多3次,默认2次。 PlayTimes *uint64 `json:"PlayTimes,omitnil,omitempty" name:"PlayTimes"` // 用户的 session 内容,腾讯 server 回包中会原样返回。 SessionContext *string `json:"SessionContext,omitnil,omitempty" name:"SessionContext"` }
func NewSendCodeVoiceRequest ¶
func NewSendCodeVoiceRequest() (request *SendCodeVoiceRequest)
func (*SendCodeVoiceRequest) FromJsonString ¶
func (r *SendCodeVoiceRequest) 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 (*SendCodeVoiceRequest) ToJsonString ¶
func (r *SendCodeVoiceRequest) ToJsonString() string
type SendCodeVoiceRequestParams ¶ added in v1.0.426
type SendCodeVoiceRequestParams struct { // 验证码,仅支持填写数字,实际播报语音时,会自动在数字前补充语音文本"您的验证码是"。 CodeMessage *string `json:"CodeMessage,omitnil,omitempty" name:"CodeMessage"` // 被叫手机号码,采用 e.164 标准,格式为+[国家或地区码][用户号码]。 // 例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。 CalledNumber *string `json:"CalledNumber,omitnil,omitempty" name:"CalledNumber"` // 在[语音控制台](https://console.cloud.tencent.com/vms)添加应用后生成的实际SdkAppid,示例如1400006666。 VoiceSdkAppid *string `json:"VoiceSdkAppid,omitnil,omitempty" name:"VoiceSdkAppid"` // 播放次数,可选,最多3次,默认2次。 PlayTimes *uint64 `json:"PlayTimes,omitnil,omitempty" name:"PlayTimes"` // 用户的 session 内容,腾讯 server 回包中会原样返回。 SessionContext *string `json:"SessionContext,omitnil,omitempty" name:"SessionContext"` }
Predefined struct for user
type SendCodeVoiceResponse ¶
type SendCodeVoiceResponse struct { *tchttp.BaseResponse Response *SendCodeVoiceResponseParams `json:"Response"` }
func NewSendCodeVoiceResponse ¶
func NewSendCodeVoiceResponse() (response *SendCodeVoiceResponse)
func (*SendCodeVoiceResponse) FromJsonString ¶
func (r *SendCodeVoiceResponse) 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 (*SendCodeVoiceResponse) ToJsonString ¶
func (r *SendCodeVoiceResponse) ToJsonString() string
type SendCodeVoiceResponseParams ¶ added in v1.0.426
type SendCodeVoiceResponseParams struct { // 语音验证码发送状态。 SendStatus *SendStatus `json:"SendStatus,omitnil,omitempty" name:"SendStatus"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type SendStatus ¶
type SendTtsVoiceRequest ¶
type SendTtsVoiceRequest struct { *tchttp.BaseRequest // 模板 ID,在控制台审核通过的模板 ID。 TemplateId *string `json:"TemplateId,omitnil,omitempty" name:"TemplateId"` // 被叫手机号码,采用 e.164 标准,格式为+[国家或地区码][用户号码]。 // 例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。 CalledNumber *string `json:"CalledNumber,omitnil,omitempty" name:"CalledNumber"` // 在[语音控制台](https://console.cloud.tencent.com/vms)添加应用后生成的实际SdkAppid,示例如1400006666。 VoiceSdkAppid *string `json:"VoiceSdkAppid,omitnil,omitempty" name:"VoiceSdkAppid"` // 模板参数,若模板没有参数,请提供为空数组。 // 注:语音消息的内容长度不超过350字。 TemplateParamSet []*string `json:"TemplateParamSet,omitnil,omitempty" name:"TemplateParamSet"` // 播放次数,可选,最多3次,默认2次。 PlayTimes *uint64 `json:"PlayTimes,omitnil,omitempty" name:"PlayTimes"` // 用户的 session 内容,腾讯 server 回包中会原样返回。 SessionContext *string `json:"SessionContext,omitnil,omitempty" name:"SessionContext"` }
func NewSendTtsVoiceRequest ¶
func NewSendTtsVoiceRequest() (request *SendTtsVoiceRequest)
func (*SendTtsVoiceRequest) FromJsonString ¶
func (r *SendTtsVoiceRequest) 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 (*SendTtsVoiceRequest) ToJsonString ¶
func (r *SendTtsVoiceRequest) ToJsonString() string
type SendTtsVoiceRequestParams ¶ added in v1.0.426
type SendTtsVoiceRequestParams struct { // 模板 ID,在控制台审核通过的模板 ID。 TemplateId *string `json:"TemplateId,omitnil,omitempty" name:"TemplateId"` // 被叫手机号码,采用 e.164 标准,格式为+[国家或地区码][用户号码]。 // 例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号。 CalledNumber *string `json:"CalledNumber,omitnil,omitempty" name:"CalledNumber"` // 在[语音控制台](https://console.cloud.tencent.com/vms)添加应用后生成的实际SdkAppid,示例如1400006666。 VoiceSdkAppid *string `json:"VoiceSdkAppid,omitnil,omitempty" name:"VoiceSdkAppid"` // 模板参数,若模板没有参数,请提供为空数组。 // 注:语音消息的内容长度不超过350字。 TemplateParamSet []*string `json:"TemplateParamSet,omitnil,omitempty" name:"TemplateParamSet"` // 播放次数,可选,最多3次,默认2次。 PlayTimes *uint64 `json:"PlayTimes,omitnil,omitempty" name:"PlayTimes"` // 用户的 session 内容,腾讯 server 回包中会原样返回。 SessionContext *string `json:"SessionContext,omitnil,omitempty" name:"SessionContext"` }
Predefined struct for user
type SendTtsVoiceResponse ¶
type SendTtsVoiceResponse struct { *tchttp.BaseResponse Response *SendTtsVoiceResponseParams `json:"Response"` }
func NewSendTtsVoiceResponse ¶
func NewSendTtsVoiceResponse() (response *SendTtsVoiceResponse)
func (*SendTtsVoiceResponse) FromJsonString ¶
func (r *SendTtsVoiceResponse) 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 (*SendTtsVoiceResponse) ToJsonString ¶
func (r *SendTtsVoiceResponse) ToJsonString() string
type SendTtsVoiceResponseParams ¶ added in v1.0.426
type SendTtsVoiceResponseParams struct { // 语音通知发送状态。 SendStatus *SendStatus `json:"SendStatus,omitnil,omitempty" name:"SendStatus"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user