v20190614

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2019-06-14"

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncRecognitionTaskInfo

type AsyncRecognitionTaskInfo struct {

	// 任务ID
	TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`

	// 音频流Url
	Url *string `json:"Url,omitempty" name:"Url"`
}

type AsyncRecognitionTasks

type AsyncRecognitionTasks struct {

	// 任务列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	Tasks []*AsyncRecognitionTaskInfo `json:"Tasks,omitempty" name:"Tasks" list`
}

type Client

type Client struct {
	common.Client
}

func NewClient

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

func NewClientWithSecretId

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

Deprecated

func (*Client) CloseAsyncRecognitionTask

func (c *Client) CloseAsyncRecognitionTask(request *CloseAsyncRecognitionTaskRequest) (response *CloseAsyncRecognitionTaskResponse, err error)

本接口用于关闭语音流异步识别任务。

func (*Client) CreateAsrVocab

func (c *Client) CreateAsrVocab(request *CreateAsrVocabRequest) (response *CreateAsrVocabResponse, err error)

用户通过本接口进行热词表的创建。 <br>• 默认最多可创建30个热词表。 <br>• 每个热词表最多可添加128个词,每个词最长10个字,不能超出限制。 <br>• 热词表可以通过数组或者本地文件形式上传。 <br>• 本地文件必须为UTF-8编码格式,每行仅添加一个热词且不能包含标点和特殊字符。 <br>• 热词权重取值范围为[1,10]之间的整数,权重越大代表该词被识别出来的概率越大。

func (*Client) CreateAsyncRecognitionTask

func (c *Client) CreateAsyncRecognitionTask(request *CreateAsyncRecognitionTaskRequest) (response *CreateAsyncRecognitionTaskResponse, err error)

本接口用于对语音流进行准实时识别,通过异步回调来返回识别结果。 <br>• 支持rtmp、hls、rtsp等流媒体协议,以及各类基于http协议的直播流 <br>• 音频流时长无限制,服务会自动拉取音频流数据,若连续10分钟拉不到流数据时,服务会终止识别任务 <br>• 服务通过回调的方式来提供识别结果,用户需要提供CallbackUrl <br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。 <br>• 默认单账号限制并发数为20路,如您有提高并发限制的需求,请提[工单](https://console.cloud.tencent.com/workorder/category)进行咨询。

func (*Client) CreateCustomization

func (c *Client) CreateCustomization(request *CreateCustomizationRequest) (response *CreateCustomizationResponse, err error)

用户使用该接口可以创建自学习模型,以供识别调用

func (*Client) CreateRecTask

func (c *Client) CreateRecTask(request *CreateRecTaskRequest) (response *CreateRecTaskResponse, err error)

本接口服务对时长5小时以内的录音文件进行识别,异步返回识别全部结果。 <br>• 支持中文普通话、英语、粤语、日语 <br>• 支持通用、音视频领域 <br>• 支持wav、mp3、m4a、flv、mp4、wma、3gp、amr、aac、ogg-opus、flac格式 <br>• 支持语音 URL 和本地语音文件两种请求方式 <br>• 语音 URL 的音频时长不能长于5小时,文件大小不超过512MB <br>• 本地语音文件不能大于5MB <br>• 提交录音文件识别请求后,在5小时内完成识别(半小时内发送超过1000小时录音或者2万条识别任务的除外),识别结果在服务端可保存7天 <br>• 支持回调或轮询的方式获取结果,结果获取请参考[ 录音文件识别结果查询](https://cloud.tencent.com/document/product/1093/37822)。 <br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8" <br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。 <br>• 默认接口请求频率限制:20次/秒,如您有提高请求频率限制的需求,请提[工单](https://console.cloud.tencent.com/workorder/category)进行咨询。

func (*Client) DeleteAsrVocab

func (c *Client) DeleteAsrVocab(request *DeleteAsrVocabRequest) (response *DeleteAsrVocabResponse, err error)

用户通过本接口进行热词表的删除。

func (*Client) DeleteCustomization

func (c *Client) DeleteCustomization(request *DeleteCustomizationRequest) (response *DeleteCustomizationResponse, err error)

用户通过该接口可以删除自学习模型

func (*Client) DescribeAsyncRecognitionTasks

func (c *Client) DescribeAsyncRecognitionTasks(request *DescribeAsyncRecognitionTasksRequest) (response *DescribeAsyncRecognitionTasksResponse, err error)

本接口用于查询当前在运行的语音流异步识别任务列表。 <br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。

func (*Client) DescribeTaskStatus

func (c *Client) DescribeTaskStatus(request *DescribeTaskStatusRequest) (response *DescribeTaskStatusResponse, err error)

在调用录音文件识别请求接口后,有回调和轮询两种方式获取识别结果。 <br>• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见[ 录音识别结果回调 ](https://cloud.tencent.com/document/product/1093/52632)。 <br>• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。 <br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8" <br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。 <br>• 默认接口请求频率限制:50次/秒,如您有提高请求频率限制的需求,请提[工单](https://console.cloud.tencent.com/workorder/category)进行咨询。

func (*Client) DownloadAsrVocab

func (c *Client) DownloadAsrVocab(request *DownloadAsrVocabRequest) (response *DownloadAsrVocabResponse, err error)

用户通过本接口进行热词表的下载,获得词表权重文件形式的 base64 值,文件形式为通过 “|” 分割的词和权重,即 word|weight 的形式。

func (*Client) DownloadCustomization

func (c *Client) DownloadCustomization(request *DownloadCustomizationRequest) (response *DownloadCustomizationResponse, err error)

用户通过该接口可以下载自学习模型的语料

func (*Client) GetAsrVocab

func (c *Client) GetAsrVocab(request *GetAsrVocabRequest) (response *GetAsrVocabResponse, err error)

用户根据词表的ID可以获取对应的热词表信息

func (*Client) GetAsrVocabList

func (c *Client) GetAsrVocabList(request *GetAsrVocabListRequest) (response *GetAsrVocabListResponse, err error)

用户通过该接口,可获得所有的热词表及其信息。

func (*Client) GetCustomizationList

func (c *Client) GetCustomizationList(request *GetCustomizationListRequest) (response *GetCustomizationListResponse, err error)

查询自学习模型列表

func (*Client) ModifyCustomization

func (c *Client) ModifyCustomization(request *ModifyCustomizationRequest) (response *ModifyCustomizationResponse, err error)

用户通过该接口可以更新自学习模型,如模型名称、模型类型、模型语料。

func (*Client) ModifyCustomizationState

func (c *Client) ModifyCustomizationState(request *ModifyCustomizationStateRequest) (response *ModifyCustomizationStateResponse, err error)

通过该接口,用户可以修改自学习模型状态,上下线自学习模型

func (*Client) SentenceRecognition

func (c *Client) SentenceRecognition(request *SentenceRecognitionRequest) (response *SentenceRecognitionResponse, err error)

本接口用于对60秒之内的短音频文件进行识别。 <br>• 支持中文普通话、英语、粤语、日语、上海话方言。 <br>• 支持本地语音文件上传和语音URL上传两种请求方式,音频时长不能超过60s。 <br>• 音频格式支持wav、mp3;采样率支持8000Hz或者16000Hz;采样精度支持16bits;声道支持单声道。 <br>• 当音频文件通过请求中body内容上传时,请求大小不能超过3MB。 <br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8" <br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。 <br>• 默认接口请求频率限制:25次/秒,如您有提高请求频率限制的需求,请提[工单](https://console.cloud.tencent.com/workorder/category)进行咨询。

func (*Client) SetVocabState

func (c *Client) SetVocabState(request *SetVocabStateRequest) (response *SetVocabStateResponse, err error)

用户通过该接口可以设置热词表的默认状态。初始状态为0,用户可设置状态为1,即为默认状态。默认状态表示用户在请求识别时,如不设置热词表ID,则默认使用状态为1的热词表。

func (*Client) UpdateAsrVocab

func (c *Client) UpdateAsrVocab(request *UpdateAsrVocabRequest) (response *UpdateAsrVocabResponse, err error)

用户通过本接口进行对应的词表信息更新。

type CloseAsyncRecognitionTaskRequest

type CloseAsyncRecognitionTaskRequest struct {
	*tchttp.BaseRequest

	// 语音流异步识别任务的唯一标识,在创建任务时会返回
	TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
}

func NewCloseAsyncRecognitionTaskRequest

func NewCloseAsyncRecognitionTaskRequest() (request *CloseAsyncRecognitionTaskRequest)

func (*CloseAsyncRecognitionTaskRequest) FromJsonString

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

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

func (*CloseAsyncRecognitionTaskRequest) ToJsonString

func (r *CloseAsyncRecognitionTaskRequest) ToJsonString() string

type CloseAsyncRecognitionTaskResponse

type CloseAsyncRecognitionTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCloseAsyncRecognitionTaskResponse

func NewCloseAsyncRecognitionTaskResponse() (response *CloseAsyncRecognitionTaskResponse)

func (*CloseAsyncRecognitionTaskResponse) FromJsonString

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

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

func (*CloseAsyncRecognitionTaskResponse) ToJsonString

func (r *CloseAsyncRecognitionTaskResponse) ToJsonString() string

type CreateAsrVocabRequest

type CreateAsrVocabRequest struct {
	*tchttp.BaseRequest

	// 热词表名称,长度在1-255之间
	Name *string `json:"Name,omitempty" name:"Name"`

	// 热词表描述,长度在0-1000之间
	Description *string `json:"Description,omitempty" name:"Description"`

	// 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10,权重为[1,10]之间整数,数组长度不大于128
	WordWeights []*HotWord `json:"WordWeights,omitempty" name:"WordWeights" list`

	// 词权重文件(纯文本文件)的二进制base64编码,以行分隔,每行的格式为word|weight,即以英文符号|为分割,左边为词,右边为权重,如:你好|5。
	// 当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
	WordWeightStr *string `json:"WordWeightStr,omitempty" name:"WordWeightStr"`
}

func NewCreateAsrVocabRequest

func NewCreateAsrVocabRequest() (request *CreateAsrVocabRequest)

func (*CreateAsrVocabRequest) FromJsonString

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

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

func (*CreateAsrVocabRequest) ToJsonString

func (r *CreateAsrVocabRequest) ToJsonString() string

type CreateAsrVocabResponse

type CreateAsrVocabResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 词表ID,可用于获取词表信息
		VocabId *string `json:"VocabId,omitempty" name:"VocabId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateAsrVocabResponse

func NewCreateAsrVocabResponse() (response *CreateAsrVocabResponse)

func (*CreateAsrVocabResponse) FromJsonString

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

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

func (*CreateAsrVocabResponse) ToJsonString

func (r *CreateAsrVocabResponse) ToJsonString() string

type CreateAsyncRecognitionTaskRequest

type CreateAsyncRecognitionTaskRequest struct {
	*tchttp.BaseRequest

	// 引擎模型类型。
	// • 16k_zh:16k 中文普通话通用;
	// • 16k_zh_video:16k 音视频领域;
	// • 16k_en:16k 英语;
	// • 16k_ca:16k 粤语;
	EngineType *string `json:"EngineType,omitempty" name:"EngineType"`

	// 语音流地址,支持rtmp、hls、rtsp等流媒体协议,以及各类基于http协议的直播流
	Url *string `json:"Url,omitempty" name:"Url"`

	// 支持HTTP和HTTPS协议,用于接收识别结果,您需要自行搭建公网可调用的服务。回调格式&内容详见:[语音流异步识别回调说明](https://cloud.tencent.com/document/product/1093/52633)
	CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"`

	// 用于生成回调通知中的签名
	SignToken *string `json:"SignToken,omitempty" name:"SignToken"`

	// 是否过滤脏词(目前支持中文普通话引擎)。0:不过滤脏词;1:过滤脏词;2:将脏词替换为 * 。默认值为 0
	FilterDirty *int64 `json:"FilterDirty,omitempty" name:"FilterDirty"`

	// 是否过语气词(目前支持中文普通话引擎)。0:不过滤语气词;1:部分过滤;2:严格过滤 。默认值为 0
	FilterModal *int64 `json:"FilterModal,omitempty" name:"FilterModal"`

	// 是否过滤标点符号(目前支持中文普通话引擎)。 0:不过滤,1:过滤句末标点,2:过滤所有标点。默认为0
	FilterPunc *int64 `json:"FilterPunc,omitempty" name:"FilterPunc"`

	// 是否进行阿拉伯数字智能转换。0:不转换,直接输出中文数字,1:根据场景智能转换为阿拉伯数字。默认值为1
	ConvertNumMode *int64 `json:"ConvertNumMode,omitempty" name:"ConvertNumMode"`

	// 是否显示词级别时间戳。0:不显示;1:显示,不包含标点时间戳,2:显示,包含标点时间戳。默认为0
	WordInfo *int64 `json:"WordInfo,omitempty" name:"WordInfo"`

	// 热词id。用于调用对应的热词表,如果在调用语音识别服务时,不进行单独的热词id设置,自动生效默认热词;如果进行了单独的热词id设置,那么将生效单独设置的热词id。
	HotwordId *string `json:"HotwordId,omitempty" name:"HotwordId"`
}

func NewCreateAsyncRecognitionTaskRequest

func NewCreateAsyncRecognitionTaskRequest() (request *CreateAsyncRecognitionTaskRequest)

func (*CreateAsyncRecognitionTaskRequest) FromJsonString

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

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

func (*CreateAsyncRecognitionTaskRequest) ToJsonString

func (r *CreateAsyncRecognitionTaskRequest) ToJsonString() string

type CreateAsyncRecognitionTaskResponse

type CreateAsyncRecognitionTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 请求返回结果,包含本次的任务ID(TaskId)
		Data *Task `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateAsyncRecognitionTaskResponse

func NewCreateAsyncRecognitionTaskResponse() (response *CreateAsyncRecognitionTaskResponse)

func (*CreateAsyncRecognitionTaskResponse) FromJsonString

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

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

func (*CreateAsyncRecognitionTaskResponse) ToJsonString

func (r *CreateAsyncRecognitionTaskResponse) ToJsonString() string

type CreateCustomizationRequest

type CreateCustomizationRequest struct {
	*tchttp.BaseRequest

	// 自学习模型名称,需在1-20字符之间
	ModelName *string `json:"ModelName,omitempty" name:"ModelName"`

	// 文本文件的下载地址,服务会从该地址下载文件, 以训练模型,目前仅支持腾讯云cos
	TextUrl *string `json:"TextUrl,omitempty" name:"TextUrl"`

	// 自学习模型类型,填写8k或者16k
	ModelType *string `json:"ModelType,omitempty" name:"ModelType"`

	// 标签信息
	TagInfos []*string `json:"TagInfos,omitempty" name:"TagInfos" list`
}

func NewCreateCustomizationRequest

func NewCreateCustomizationRequest() (request *CreateCustomizationRequest)

func (*CreateCustomizationRequest) FromJsonString

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

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

func (*CreateCustomizationRequest) ToJsonString

func (r *CreateCustomizationRequest) ToJsonString() string

type CreateCustomizationResponse

type CreateCustomizationResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 模型ID
		ModelId *string `json:"ModelId,omitempty" name:"ModelId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateCustomizationResponse

func NewCreateCustomizationResponse() (response *CreateCustomizationResponse)

func (*CreateCustomizationResponse) FromJsonString

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

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

func (*CreateCustomizationResponse) ToJsonString

func (r *CreateCustomizationResponse) ToJsonString() string

type CreateRecTaskRequest

type CreateRecTaskRequest struct {
	*tchttp.BaseRequest

	// 引擎模型类型。
	// 电话场景:
	// • 8k_en:电话 8k 英语;
	// • 8k_zh:电话 8k 中文普通话通用;
	// 非电话场景:
	// • 16k_zh:16k 中文普通话通用;
	// • 16k_zh_video:16k 音视频领域;
	// • 16k_en:16k 英语;
	// • 16k_ca:16k 粤语;
	// • 16k_ja:16k 日语;
	// • 16k_zh_edu 中文教育;
	// • 16k_en_edu 英文教育;
	// • 16k_zh_medical  医疗;
	// • 16k_th 泰语;
	EngineModelType *string `json:"EngineModelType,omitempty" name:"EngineModelType"`

	// 识别声道数。1:单声道;2:双声道(仅支持 8k_zh 引擎模)。注意:录音识别会自动将音频转码为填写的识别声道数
	ChannelNum *uint64 `json:"ChannelNum,omitempty" name:"ChannelNum"`

	// 识别结果返回形式。0: 识别结果文本(含分段时间戳); 1:词级别粒度的[详细识别结果](https://cloud.tencent.com/document/api/1093/37824#SentenceDetail)(不含标点,含语速值);2:词级别粒度的详细识别结果(包含标点、语速值)
	ResTextFormat *uint64 `json:"ResTextFormat,omitempty" name:"ResTextFormat"`

	// 语音数据来源。0:语音 URL;1:语音数据(post body)。
	SourceType *uint64 `json:"SourceType,omitempty" name:"SourceType"`

	// 是否开启说话人分离,0:不开启,1:开启(仅支持8k_zh,16k_zh,16k_zh_video引擎模型,单声道音频)
	SpeakerDiarization *int64 `json:"SpeakerDiarization,omitempty" name:"SpeakerDiarization"`

	// 说话人分离人数(需配合开启说话人分离使用),取值范围:0-10,0代表自动分离(目前仅支持≤6个人),1-10代表指定说话人数分离。
	// 注:话者分离目前是beta版本,请根据您的需要谨慎使用
	SpeakerNumber *int64 `json:"SpeakerNumber,omitempty" name:"SpeakerNumber"`

	// 回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。回调格式&内容详见:[录音识别回调说明](https://cloud.tencent.com/document/product/1093/52632)
	CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"`

	// 语音的URL地址,需要公网可下载。长度小于2048字节,当 SourceType 值为 0 时须填写该字段,为 1 时不需要填写。注意:请确保录音文件时长在5个小时之内,否则可能识别失败。请保证文件的下载速度,否则可能下载失败。
	Url *string `json:"Url,omitempty" name:"Url"`

	// 语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频数据要小于5MB。
	Data *string `json:"Data,omitempty" name:"Data"`

	// 数据长度,非必填(此数据长度为数据未进行base64编码时的数据长度)。
	DataLen *uint64 `json:"DataLen,omitempty" name:"DataLen"`

	// 热词id。用于调用对应的热词表,如果在调用语音识别服务时,不进行单独的热词id设置,自动生效默认热词;如果进行了单独的热词id设置,那么将生效单独设置的热词id。
	HotwordId *string `json:"HotwordId,omitempty" name:"HotwordId"`

	// 是否过滤脏词(目前支持中文普通话引擎)。0:不过滤脏词;1:过滤脏词;2:将脏词替换为 * 。默认值为 0。
	FilterDirty *int64 `json:"FilterDirty,omitempty" name:"FilterDirty"`

	// 是否过滤语气词(目前支持中文普通话引擎)。0:不过滤语气词;1:部分过滤;2:严格过滤 。默认值为 0。
	FilterModal *int64 `json:"FilterModal,omitempty" name:"FilterModal"`

	// 是否进行阿拉伯数字智能转换(目前支持中文普通话引擎)。0:不转换,直接输出中文数字,1:根据场景智能转换为阿拉伯数字,3: 打开数学相关数字转换。默认值为 1。
	ConvertNumMode *int64 `json:"ConvertNumMode,omitempty" name:"ConvertNumMode"`

	// 附加参数
	Extra *string `json:"Extra,omitempty" name:"Extra"`

	// 是否过滤标点符号(目前支持中文普通话引擎)。 0:不过滤,1:过滤句末标点,2:过滤所有标点。默认为0。
	FilterPunc *int64 `json:"FilterPunc,omitempty" name:"FilterPunc"`
}

func NewCreateRecTaskRequest

func NewCreateRecTaskRequest() (request *CreateRecTaskRequest)

func (*CreateRecTaskRequest) FromJsonString

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

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

func (*CreateRecTaskRequest) ToJsonString

func (r *CreateRecTaskRequest) ToJsonString() string

type CreateRecTaskResponse

type CreateRecTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 录音文件识别的请求返回结果,包含结果查询需要的TaskId
		Data *Task `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateRecTaskResponse

func NewCreateRecTaskResponse() (response *CreateRecTaskResponse)

func (*CreateRecTaskResponse) FromJsonString

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

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

func (*CreateRecTaskResponse) ToJsonString

func (r *CreateRecTaskResponse) ToJsonString() string

type DeleteAsrVocabRequest

type DeleteAsrVocabRequest struct {
	*tchttp.BaseRequest

	// 热词表Id
	VocabId *string `json:"VocabId,omitempty" name:"VocabId"`
}

func NewDeleteAsrVocabRequest

func NewDeleteAsrVocabRequest() (request *DeleteAsrVocabRequest)

func (*DeleteAsrVocabRequest) FromJsonString

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

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

func (*DeleteAsrVocabRequest) ToJsonString

func (r *DeleteAsrVocabRequest) ToJsonString() string

type DeleteAsrVocabResponse

type DeleteAsrVocabResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteAsrVocabResponse

func NewDeleteAsrVocabResponse() (response *DeleteAsrVocabResponse)

func (*DeleteAsrVocabResponse) FromJsonString

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

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

func (*DeleteAsrVocabResponse) ToJsonString

func (r *DeleteAsrVocabResponse) ToJsonString() string

type DeleteCustomizationRequest

type DeleteCustomizationRequest struct {
	*tchttp.BaseRequest

	// 要删除的模型ID
	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
}

func NewDeleteCustomizationRequest

func NewDeleteCustomizationRequest() (request *DeleteCustomizationRequest)

func (*DeleteCustomizationRequest) FromJsonString

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

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

func (*DeleteCustomizationRequest) ToJsonString

func (r *DeleteCustomizationRequest) ToJsonString() string

type DeleteCustomizationResponse

type DeleteCustomizationResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteCustomizationResponse

func NewDeleteCustomizationResponse() (response *DeleteCustomizationResponse)

func (*DeleteCustomizationResponse) FromJsonString

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

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

func (*DeleteCustomizationResponse) ToJsonString

func (r *DeleteCustomizationResponse) ToJsonString() string

type DescribeAsyncRecognitionTasksRequest

type DescribeAsyncRecognitionTasksRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeAsyncRecognitionTasksRequest

func NewDescribeAsyncRecognitionTasksRequest() (request *DescribeAsyncRecognitionTasksRequest)

func (*DescribeAsyncRecognitionTasksRequest) FromJsonString

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

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

func (*DescribeAsyncRecognitionTasksRequest) ToJsonString

func (r *DescribeAsyncRecognitionTasksRequest) ToJsonString() string

type DescribeAsyncRecognitionTasksResponse

type DescribeAsyncRecognitionTasksResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 任务列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		Data *AsyncRecognitionTasks `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeAsyncRecognitionTasksResponse

func NewDescribeAsyncRecognitionTasksResponse() (response *DescribeAsyncRecognitionTasksResponse)

func (*DescribeAsyncRecognitionTasksResponse) FromJsonString

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

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

func (*DescribeAsyncRecognitionTasksResponse) ToJsonString

type DescribeTaskStatusRequest

type DescribeTaskStatusRequest struct {
	*tchttp.BaseRequest

	// 从CreateRecTask接口获取的TaskId,用于获取任务状态与结果。
	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
}

func NewDescribeTaskStatusRequest

func NewDescribeTaskStatusRequest() (request *DescribeTaskStatusRequest)

func (*DescribeTaskStatusRequest) FromJsonString

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

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

func (*DescribeTaskStatusRequest) ToJsonString

func (r *DescribeTaskStatusRequest) ToJsonString() string

type DescribeTaskStatusResponse

type DescribeTaskStatusResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 录音文件识别的请求返回结果。
		Data *TaskStatus `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeTaskStatusResponse

func NewDescribeTaskStatusResponse() (response *DescribeTaskStatusResponse)

func (*DescribeTaskStatusResponse) FromJsonString

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

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

func (*DescribeTaskStatusResponse) ToJsonString

func (r *DescribeTaskStatusResponse) ToJsonString() string

type DownloadAsrVocabRequest

type DownloadAsrVocabRequest struct {
	*tchttp.BaseRequest

	// 词表ID。
	VocabId *string `json:"VocabId,omitempty" name:"VocabId"`
}

func NewDownloadAsrVocabRequest

func NewDownloadAsrVocabRequest() (request *DownloadAsrVocabRequest)

func (*DownloadAsrVocabRequest) FromJsonString

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

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

func (*DownloadAsrVocabRequest) ToJsonString

func (r *DownloadAsrVocabRequest) ToJsonString() string

type DownloadAsrVocabResponse

type DownloadAsrVocabResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 词表ID。
		VocabId *string `json:"VocabId,omitempty" name:"VocabId"`

		// 词表权重文件形式的base64值。
		WordWeightStr *string `json:"WordWeightStr,omitempty" name:"WordWeightStr"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDownloadAsrVocabResponse

func NewDownloadAsrVocabResponse() (response *DownloadAsrVocabResponse)

func (*DownloadAsrVocabResponse) FromJsonString

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

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

func (*DownloadAsrVocabResponse) ToJsonString

func (r *DownloadAsrVocabResponse) ToJsonString() string

type DownloadCustomizationRequest

type DownloadCustomizationRequest struct {
	*tchttp.BaseRequest

	// 自学习模型ID
	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
}

func NewDownloadCustomizationRequest

func NewDownloadCustomizationRequest() (request *DownloadCustomizationRequest)

func (*DownloadCustomizationRequest) FromJsonString

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

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

func (*DownloadCustomizationRequest) ToJsonString

func (r *DownloadCustomizationRequest) ToJsonString() string

type DownloadCustomizationResponse

type DownloadCustomizationResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 下载地址
		DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDownloadCustomizationResponse

func NewDownloadCustomizationResponse() (response *DownloadCustomizationResponse)

func (*DownloadCustomizationResponse) FromJsonString

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

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

func (*DownloadCustomizationResponse) ToJsonString

func (r *DownloadCustomizationResponse) ToJsonString() string

type GetAsrVocabListRequest

type GetAsrVocabListRequest struct {
	*tchttp.BaseRequest

	// 标签信息,格式为“$TagKey : $TagValue ”,中间分隔符为“空格”+“:”+“空格”
	TagInfos []*string `json:"TagInfos,omitempty" name:"TagInfos" list`

	// 分页Offset
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 分页Limit
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

func NewGetAsrVocabListRequest

func NewGetAsrVocabListRequest() (request *GetAsrVocabListRequest)

func (*GetAsrVocabListRequest) FromJsonString

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

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

func (*GetAsrVocabListRequest) ToJsonString

func (r *GetAsrVocabListRequest) ToJsonString() string

type GetAsrVocabListResponse

type GetAsrVocabListResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 热词表列表
		VocabList []*Vocab `json:"VocabList,omitempty" name:"VocabList" list`

		// 热词列表总数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetAsrVocabListResponse

func NewGetAsrVocabListResponse() (response *GetAsrVocabListResponse)

func (*GetAsrVocabListResponse) FromJsonString

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

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

func (*GetAsrVocabListResponse) ToJsonString

func (r *GetAsrVocabListResponse) ToJsonString() string

type GetAsrVocabRequest

type GetAsrVocabRequest struct {
	*tchttp.BaseRequest

	// 热词表ID
	VocabId *string `json:"VocabId,omitempty" name:"VocabId"`
}

func NewGetAsrVocabRequest

func NewGetAsrVocabRequest() (request *GetAsrVocabRequest)

func (*GetAsrVocabRequest) FromJsonString

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

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

func (*GetAsrVocabRequest) ToJsonString

func (r *GetAsrVocabRequest) ToJsonString() string

type GetAsrVocabResponse

type GetAsrVocabResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 热词表名称
		Name *string `json:"Name,omitempty" name:"Name"`

		// 热词表描述
		Description *string `json:"Description,omitempty" name:"Description"`

		// 热词表ID
		VocabId *string `json:"VocabId,omitempty" name:"VocabId"`

		// 词权重列表
		WordWeights []*HotWord `json:"WordWeights,omitempty" name:"WordWeights" list`

		// 词表创建时间
		CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

		// 词表更新时间
		UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`

		// 热词表状态,1为默认状态即在识别时默认加载该热词表进行识别,0为初始状态
		State *int64 `json:"State,omitempty" name:"State"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetAsrVocabResponse

func NewGetAsrVocabResponse() (response *GetAsrVocabResponse)

func (*GetAsrVocabResponse) FromJsonString

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

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

func (*GetAsrVocabResponse) ToJsonString

func (r *GetAsrVocabResponse) ToJsonString() string

type GetCustomizationListRequest

type GetCustomizationListRequest struct {
	*tchttp.BaseRequest

	// 标签信息,格式为“$TagKey : $TagValue ”,中间分隔符为“空格”+“:”+“空格”
	TagInfos []*string `json:"TagInfos,omitempty" name:"TagInfos" list`

	// 分页大小
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 分页offset
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
}

func NewGetCustomizationListRequest

func NewGetCustomizationListRequest() (request *GetCustomizationListRequest)

func (*GetCustomizationListRequest) FromJsonString

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

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

func (*GetCustomizationListRequest) ToJsonString

func (r *GetCustomizationListRequest) ToJsonString() string

type GetCustomizationListResponse

type GetCustomizationListResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 自学习模型数组
		// 注意:此字段可能返回 null,表示取不到有效值。
		Data []*Model `json:"Data,omitempty" name:"Data" list`

		// 自学习模型总量
		// 注意:此字段可能返回 null,表示取不到有效值。
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetCustomizationListResponse

func NewGetCustomizationListResponse() (response *GetCustomizationListResponse)

func (*GetCustomizationListResponse) FromJsonString

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

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

func (*GetCustomizationListResponse) ToJsonString

func (r *GetCustomizationListResponse) ToJsonString() string

type HotWord

type HotWord struct {

	// 热词
	Word *string `json:"Word,omitempty" name:"Word"`

	// 权重
	Weight *int64 `json:"Weight,omitempty" name:"Weight"`
}

type Model

type Model struct {

	// 模型名称
	ModelName *string `json:"ModelName,omitempty" name:"ModelName"`

	// 模型文件名称
	DictName *string `json:"DictName,omitempty" name:"DictName"`

	// 模型Id
	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`

	// 模型类型,“8k”或者”16k“
	ModelType *string `json:"ModelType,omitempty" name:"ModelType"`

	// 服务类型
	ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`

	// 模型状态,-1下线状态,1上线状态, 0训练中, -2 训练失败
	ModelState *int64 `json:"ModelState,omitempty" name:"ModelState"`

	// 最后更新时间
	AtUpdated *string `json:"AtUpdated,omitempty" name:"AtUpdated"`

	// 标签信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	TagInfos []*string `json:"TagInfos,omitempty" name:"TagInfos" list`
}

type ModifyCustomizationRequest

type ModifyCustomizationRequest struct {
	*tchttp.BaseRequest

	// 要修改的模型ID
	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`

	// 要修改的模型名称,长度需在1-20个字符之间
	ModelName *string `json:"ModelName,omitempty" name:"ModelName"`

	// 要修改的模型类型,为8k或者16k
	ModelType *string `json:"ModelType,omitempty" name:"ModelType"`

	// 要修改的模型语料的下载地址,目前仅支持腾讯云cos
	TextUrl *string `json:"TextUrl,omitempty" name:"TextUrl"`
}

func NewModifyCustomizationRequest

func NewModifyCustomizationRequest() (request *ModifyCustomizationRequest)

func (*ModifyCustomizationRequest) FromJsonString

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

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

func (*ModifyCustomizationRequest) ToJsonString

func (r *ModifyCustomizationRequest) ToJsonString() string

type ModifyCustomizationResponse

type ModifyCustomizationResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyCustomizationResponse

func NewModifyCustomizationResponse() (response *ModifyCustomizationResponse)

func (*ModifyCustomizationResponse) FromJsonString

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

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

func (*ModifyCustomizationResponse) ToJsonString

func (r *ModifyCustomizationResponse) ToJsonString() string

type ModifyCustomizationStateRequest

type ModifyCustomizationStateRequest struct {
	*tchttp.BaseRequest

	// 自学习模型ID
	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`

	// 想要变换的模型状态,-1代表下线,1代表上线
	ToState *int64 `json:"ToState,omitempty" name:"ToState"`
}

func NewModifyCustomizationStateRequest

func NewModifyCustomizationStateRequest() (request *ModifyCustomizationStateRequest)

func (*ModifyCustomizationStateRequest) FromJsonString

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

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

func (*ModifyCustomizationStateRequest) ToJsonString

func (r *ModifyCustomizationStateRequest) ToJsonString() string

type ModifyCustomizationStateResponse

type ModifyCustomizationStateResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 自学习模型ID
		ModelId *string `json:"ModelId,omitempty" name:"ModelId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyCustomizationStateResponse

func NewModifyCustomizationStateResponse() (response *ModifyCustomizationStateResponse)

func (*ModifyCustomizationStateResponse) FromJsonString

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

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

func (*ModifyCustomizationStateResponse) ToJsonString

func (r *ModifyCustomizationStateResponse) ToJsonString() string

type SentenceDetail

type SentenceDetail struct {

	// 单句最终识别结果
	// 注意:此字段可能返回 null,表示取不到有效值。
	FinalSentence *string `json:"FinalSentence,omitempty" name:"FinalSentence"`

	// 单句中间识别结果,使用空格拆分为多个词
	// 注意:此字段可能返回 null,表示取不到有效值。
	SliceSentence *string `json:"SliceSentence,omitempty" name:"SliceSentence"`

	// 单句开始时间(毫秒)
	// 注意:此字段可能返回 null,表示取不到有效值。
	StartMs *int64 `json:"StartMs,omitempty" name:"StartMs"`

	// 单句结束时间(毫秒)
	// 注意:此字段可能返回 null,表示取不到有效值。
	EndMs *int64 `json:"EndMs,omitempty" name:"EndMs"`

	// 单句中词个数
	// 注意:此字段可能返回 null,表示取不到有效值。
	WordsNum *int64 `json:"WordsNum,omitempty" name:"WordsNum"`

	// 单句中词详情
	// 注意:此字段可能返回 null,表示取不到有效值。
	Words []*SentenceWords `json:"Words,omitempty" name:"Words" list`

	// 单句语速,单位:字数/秒
	// 注意:此字段可能返回 null,表示取不到有效值。
	SpeechSpeed *float64 `json:"SpeechSpeed,omitempty" name:"SpeechSpeed"`
}

type SentenceRecognitionRequest

type SentenceRecognitionRequest struct {
	*tchttp.BaseRequest

	// 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
	ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`

	// 子服务类型。2: 一句话识别。
	SubServiceType *uint64 `json:"SubServiceType,omitempty" name:"SubServiceType"`

	// 引擎模型类型。
	// 电话场景:
	// • 8k_en:电话 8k 英语;
	// • 8k_zh:电话 8k 中文普通话通用;
	// 非电话场景:
	// • 16k_zh:16k 中文普通话通用;
	// • 16k_en:16k 英语;
	// • 16k_ca:16k 粤语;
	// • 16k_ja:16k 日语;
	// •16k_wuu-SH:16k 上海话方言;
	// •16k_zh_medical:16k 医疗。
	EngSerViceType *string `json:"EngSerViceType,omitempty" name:"EngSerViceType"`

	// 语音数据来源。0:语音 URL;1:语音数据(post body)。
	SourceType *uint64 `json:"SourceType,omitempty" name:"SourceType"`

	// 识别音频的音频格式。mp3、wav。
	VoiceFormat *string `json:"VoiceFormat,omitempty" name:"VoiceFormat"`

	// 用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
	UsrAudioKey *string `json:"UsrAudioKey,omitempty" name:"UsrAudioKey"`

	// 语音 URL,公网可下载。当 SourceType 值为 0(语音 URL上传) 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时间长度要小于60s。
	Url *string `json:"Url,omitempty" name:"Url"`

	// 语音数据,当SourceType 值为1(本地语音数据上传)时必须填写,当SourceType 值为0(语音 URL上传)可不写。要使用base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。数据长度要小于3MB(Base64后)。
	Data *string `json:"Data,omitempty" name:"Data"`

	// 数据长度,单位为字节。当 SourceType 值为1(本地语音数据上传)时必须填写,当 SourceType 值为0(语音 URL上传)可不写(此数据长度为数据未进行base64编码时的数据长度)。
	DataLen *int64 `json:"DataLen,omitempty" name:"DataLen"`

	// 热词id。用于调用对应的热词表,如果在调用语音识别服务时,不进行单独的热词id设置,自动生效默认热词;如果进行了单独的热词id设置,那么将生效单独设置的热词id。
	HotwordId *string `json:"HotwordId,omitempty" name:"HotwordId"`

	// 是否过滤脏词(目前支持中文普通话引擎)。0:不过滤脏词;1:过滤脏词;2:将脏词替换为 * 。
	FilterDirty *int64 `json:"FilterDirty,omitempty" name:"FilterDirty"`

	// 是否过语气词(目前支持中文普通话引擎)。0:不过滤语气词;1:部分过滤;2:严格过滤 。
	FilterModal *int64 `json:"FilterModal,omitempty" name:"FilterModal"`

	// 是否过滤标点符号(目前支持中文普通话引擎)。 0:不过滤,1:过滤句末标点,2:过滤所有标点。默认为0。
	FilterPunc *int64 `json:"FilterPunc,omitempty" name:"FilterPunc"`

	// 是否进行阿拉伯数字智能转换。0:不转换,直接输出中文数字,1:根据场景智能转换为阿拉伯数字。默认值为1
	ConvertNumMode *int64 `json:"ConvertNumMode,omitempty" name:"ConvertNumMode"`

	// 是否显示词级别时间戳。0:不显示;1:显示,不包含标点时间戳,2:显示,包含标点时间戳。支持引擎8k_zh,16k_zh,16k_en,16k_ca,16k_ja,16k_wuu-SH
	WordInfo *int64 `json:"WordInfo,omitempty" name:"WordInfo"`
}

func NewSentenceRecognitionRequest

func NewSentenceRecognitionRequest() (request *SentenceRecognitionRequest)

func (*SentenceRecognitionRequest) FromJsonString

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

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

func (*SentenceRecognitionRequest) ToJsonString

func (r *SentenceRecognitionRequest) ToJsonString() string

type SentenceRecognitionResponse

type SentenceRecognitionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 识别结果。
		Result *string `json:"Result,omitempty" name:"Result"`

		// 请求的音频时长,单位为ms
		AudioDuration *int64 `json:"AudioDuration,omitempty" name:"AudioDuration"`

		// 词时间戳列表的长度
		// 注意:此字段可能返回 null,表示取不到有效值。
		WordSize *int64 `json:"WordSize,omitempty" name:"WordSize"`

		// 词时间戳列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		WordList []*SentenceWord `json:"WordList,omitempty" name:"WordList" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewSentenceRecognitionResponse

func NewSentenceRecognitionResponse() (response *SentenceRecognitionResponse)

func (*SentenceRecognitionResponse) FromJsonString

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

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

func (*SentenceRecognitionResponse) ToJsonString

func (r *SentenceRecognitionResponse) ToJsonString() string

type SentenceWord

type SentenceWord struct {

	// 词结果
	Word *string `json:"Word,omitempty" name:"Word"`

	// 词在音频中的开始时间
	StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"`

	// 词在音频中的结束时间
	EndTime *int64 `json:"EndTime,omitempty" name:"EndTime"`
}

type SentenceWords

type SentenceWords struct {

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

	// 在句子中的开始时间偏移量
	// 注意:此字段可能返回 null,表示取不到有效值。
	OffsetStartMs *int64 `json:"OffsetStartMs,omitempty" name:"OffsetStartMs"`

	// 在句子中的结束时间偏移量
	// 注意:此字段可能返回 null,表示取不到有效值。
	OffsetEndMs *int64 `json:"OffsetEndMs,omitempty" name:"OffsetEndMs"`
}

type SetVocabStateRequest

type SetVocabStateRequest struct {
	*tchttp.BaseRequest

	// 热词表ID。
	VocabId *string `json:"VocabId,omitempty" name:"VocabId"`

	// 热词表状态,1:设为默认状态;0:设为非默认状态。
	State *int64 `json:"State,omitempty" name:"State"`
}

func NewSetVocabStateRequest

func NewSetVocabStateRequest() (request *SetVocabStateRequest)

func (*SetVocabStateRequest) FromJsonString

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

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

func (*SetVocabStateRequest) ToJsonString

func (r *SetVocabStateRequest) ToJsonString() string

type SetVocabStateResponse

type SetVocabStateResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 热词表ID
		VocabId *string `json:"VocabId,omitempty" name:"VocabId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewSetVocabStateResponse

func NewSetVocabStateResponse() (response *SetVocabStateResponse)

func (*SetVocabStateResponse) FromJsonString

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

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

func (*SetVocabStateResponse) ToJsonString

func (r *SetVocabStateResponse) ToJsonString() string

type Task

type Task struct {

	// 任务ID,可通过此ID在轮询接口获取识别状态与结果。注意:TaskId数据类型为uint64
	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
}

type TaskStatus

type TaskStatus struct {

	// 任务标识。
	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`

	// 任务状态码,0:任务等待,1:任务执行中,2:任务成功,3:任务失败。
	Status *int64 `json:"Status,omitempty" name:"Status"`

	// 任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。
	StatusStr *string `json:"StatusStr,omitempty" name:"StatusStr"`

	// 识别结果。
	Result *string `json:"Result,omitempty" name:"Result"`

	// 失败原因说明。
	ErrorMsg *string `json:"ErrorMsg,omitempty" name:"ErrorMsg"`

	// 识别结果详情,包含每个句子中的词时间偏移,一般用于生成字幕的场景。(录音识别请求中ResTextFormat=1时该字段不为空)
	// 注意:此字段可能返回 null,表示取不到有效值。
	ResultDetail []*SentenceDetail `json:"ResultDetail,omitempty" name:"ResultDetail" list`
}

type UpdateAsrVocabRequest

type UpdateAsrVocabRequest struct {
	*tchttp.BaseRequest

	// 热词表ID
	VocabId *string `json:"VocabId,omitempty" name:"VocabId"`

	// 热词表名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10,权重为[1,10]之间整数,数组长度不大于128
	WordWeights []*HotWord `json:"WordWeights,omitempty" name:"WordWeights" list`

	// 词权重文件(纯文本文件)的二进制base64编码,以行分隔,每行的格式为word|weight,即以英文符号|为分割,左边为词,右边为权重,如:你好|5。
	// 当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
	WordWeightStr *string `json:"WordWeightStr,omitempty" name:"WordWeightStr"`

	// 热词表描述
	Description *string `json:"Description,omitempty" name:"Description"`
}

func NewUpdateAsrVocabRequest

func NewUpdateAsrVocabRequest() (request *UpdateAsrVocabRequest)

func (*UpdateAsrVocabRequest) FromJsonString

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

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

func (*UpdateAsrVocabRequest) ToJsonString

func (r *UpdateAsrVocabRequest) ToJsonString() string

type UpdateAsrVocabResponse

type UpdateAsrVocabResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 热词表ID
		VocabId *string `json:"VocabId,omitempty" name:"VocabId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateAsrVocabResponse

func NewUpdateAsrVocabResponse() (response *UpdateAsrVocabResponse)

func (*UpdateAsrVocabResponse) FromJsonString

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

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

func (*UpdateAsrVocabResponse) ToJsonString

func (r *UpdateAsrVocabResponse) ToJsonString() string

type Vocab

type Vocab struct {

	// 热词表名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 热词表描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 热词表ID
	VocabId *string `json:"VocabId,omitempty" name:"VocabId"`

	// 词权重列表
	WordWeights []*HotWord `json:"WordWeights,omitempty" name:"WordWeights" list`

	// 词表创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 词表更新时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`

	// 热词表状态,1为默认状态即在识别时默认加载该热词表进行识别,0为初始状态
	State *int64 `json:"State,omitempty" name:"State"`

	// 标签数组
	// 注意:此字段可能返回 null,表示取不到有效值。
	TagInfos []*string `json:"TagInfos,omitempty" name:"TagInfos" list`
}

Jump to

Keyboard shortcuts

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