Documentation
¶
Index ¶
- Constants
- type AmsDetailInfo
- type AudioResult
- type AudioResultDetailLanguageResult
- type AudioResultDetailMoanResult
- type AudioResultDetailTextResult
- type AudioSegments
- type BucketInfo
- type CancelTaskRequest
- type CancelTaskResponse
- type Client
- func (c *Client) CancelTask(request *CancelTaskRequest) (response *CancelTaskResponse, err error)
- func (c *Client) CreateAudioModerationTask(request *CreateAudioModerationTaskRequest) (response *CreateAudioModerationTaskResponse, err error)
- func (c *Client) CreateBizConfig(request *CreateBizConfigRequest) (response *CreateBizConfigResponse, err error)
- func (c *Client) DescribeAmsList(request *DescribeAmsListRequest) (response *DescribeAmsListResponse, err error)
- func (c *Client) DescribeAudioStat(request *DescribeAudioStatRequest) (response *DescribeAudioStatResponse, err error)
- func (c *Client) DescribeBizConfig(request *DescribeBizConfigRequest) (response *DescribeBizConfigResponse, err error)
- func (c *Client) DescribeTaskDetail(request *DescribeTaskDetailRequest) (response *DescribeTaskDetailResponse, err error)
- type CreateAudioModerationTaskRequest
- type CreateAudioModerationTaskResponse
- type CreateBizConfigRequest
- type CreateBizConfigResponse
- type DescribeAmsListRequest
- type DescribeAmsListResponse
- type DescribeAudioStatRequest
- type DescribeAudioStatResponse
- type DescribeBizConfigRequest
- type DescribeBizConfigResponse
- type DescribeTaskDetailRequest
- type DescribeTaskDetailResponse
- type EvilCount
- type FileOutput
- type Filter
- type Filters
- type ImageResult
- type ImageResultResult
- type ImageResultsResultDetail
- type ImageResultsResultDetailLocation
- type ImageSegments
- type InputInfo
- type MediaInfo
- type MediaModerationConfig
- type Overview
- type StorageInfo
- type TaskInput
- type TaskLabel
- type TaskResult
- type TrendCount
Constants ¶
const APIVersion = "2020-06-08"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmsDetailInfo ¶
type AmsDetailInfo struct { // 标签 Label []*string `json:"Label,omitempty" name:"Label" list` // 时长(秒/s) Duration *int64 `json:"Duration,omitempty" name:"Duration"` // 任务名 Name *string `json:"Name,omitempty" name:"Name"` // 任务ID,创建任务后返回的TaskId字段 TaskID *string `json:"TaskID,omitempty" name:"TaskID"` // 插入时间 InsertTime *string `json:"InsertTime,omitempty" name:"InsertTime"` // 数据来源 0机审,其他为自主审核 DataForm *int64 `json:"DataForm,omitempty" name:"DataForm"` // 操作人 Operator *string `json:"Operator,omitempty" name:"Operator"` // 原始命中标签 OriginalLabel []*string `json:"OriginalLabel,omitempty" name:"OriginalLabel" list` // 操作时间 OperateTime *string `json:"OperateTime,omitempty" name:"OperateTime"` // 视频原始地址 Url *string `json:"Url,omitempty" name:"Url"` // 封面图地址 Thumbnail *string `json:"Thumbnail,omitempty" name:"Thumbnail"` // 短音频内容 Content *string `json:"Content,omitempty" name:"Content"` // 短音频个数 DetailCount *int64 `json:"DetailCount,omitempty" name:"DetailCount"` // 音频审核的请求 id RequestId *string `json:"RequestId,omitempty" name:"RequestId"` // 音频机审状态 Status *string `json:"Status,omitempty" name:"Status"` }
type AudioResult ¶
type AudioResult struct { // 是否命中 // 0 未命中 // 1 命中 // 注意:此字段可能返回 null,表示取不到有效值。 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` // 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。 // 以及令人反感、不安全或不适宜的内容类型。 // 注意:此字段可能返回 null,表示取不到有效值。 Label *string `json:"Label,omitempty" name:"Label"` // 建议您拿到判断结果后的执行操作。 // 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 // 注意:此字段可能返回 null,表示取不到有效值。 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` // 得分,0-100 // 注意:此字段可能返回 null,表示取不到有效值。 Score *int64 `json:"Score,omitempty" name:"Score"` // 音频ASR文本 // 注意:此字段可能返回 null,表示取不到有效值。 Text *string `json:"Text,omitempty" name:"Text"` // 音频片段存储URL,有效期为1天 // 注意:此字段可能返回 null,表示取不到有效值。 Url *string `json:"Url,omitempty" name:"Url"` // 音频时长 Duration *string `json:"Duration,omitempty" name:"Duration"` // 拓展字段 Extra *string `json:"Extra,omitempty" name:"Extra"` // 文本识别结果 TextResults []*AudioResultDetailTextResult `json:"TextResults,omitempty" name:"TextResults" list` // 音频呻吟检测结果 MoanResults []*AudioResultDetailMoanResult `json:"MoanResults,omitempty" name:"MoanResults" list` // 音频语言检测结果 LanguageResults []*AudioResultDetailLanguageResult `json:"LanguageResults,omitempty" name:"LanguageResults" list` }
type AudioResultDetailLanguageResult ¶
type AudioResultDetailLanguageResult struct { // 语言信息 // 注意:此字段可能返回 null,表示取不到有效值。 Label *string `json:"Label,omitempty" name:"Label"` // 得分 // 注意:此字段可能返回 null,表示取不到有效值。 Score *int64 `json:"Score,omitempty" name:"Score"` // 开始时间 // 注意:此字段可能返回 null,表示取不到有效值。 StartTime *float64 `json:"StartTime,omitempty" name:"StartTime"` // 结束时间 // 注意:此字段可能返回 null,表示取不到有效值。 EndTime *float64 `json:"EndTime,omitempty" name:"EndTime"` // 子标签码 // 注意:此字段可能返回 null,表示取不到有效值。 SubLabelCode *string `json:"SubLabelCode,omitempty" name:"SubLabelCode"` }
type AudioResultDetailMoanResult ¶
type AudioResultDetailMoanResult struct { // 固定为Moan(呻吟) // 注意:此字段可能返回 null,表示取不到有效值。 Label *string `json:"Label,omitempty" name:"Label"` // 分数 Score *int64 `json:"Score,omitempty" name:"Score"` // 开始时间 StartTime *float64 `json:"StartTime,omitempty" name:"StartTime"` // 结束时间 EndTime *float64 `json:"EndTime,omitempty" name:"EndTime"` // 子标签码 SubLabelCode *string `json:"SubLabelCode,omitempty" name:"SubLabelCode"` }
type AudioResultDetailTextResult ¶
type AudioResultDetailTextResult struct { // 标签 // 注意:此字段可能返回 null,表示取不到有效值。 Label *string `json:"Label,omitempty" name:"Label"` // 命中的关键词 // 注意:此字段可能返回 null,表示取不到有效值。 Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list` // 命中的LibId // 注意:此字段可能返回 null,表示取不到有效值。 LibId *string `json:"LibId,omitempty" name:"LibId"` // 命中的LibName // 注意:此字段可能返回 null,表示取不到有效值。 LibName *string `json:"LibName,omitempty" name:"LibName"` // 得分 // 注意:此字段可能返回 null,表示取不到有效值。 Score *int64 `json:"Score,omitempty" name:"Score"` // 审核建议 // 注意:此字段可能返回 null,表示取不到有效值。 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` // 词库类型 1 黑白库 2 自定义库 LibType *int64 `json:"LibType,omitempty" name:"LibType"` }
type AudioSegments ¶
type AudioSegments struct { // 截帧时间。 // 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10 // 直播流:该值为时间戳,例如:1594650717 // 注意:此字段可能返回 null,表示取不到有效值。 OffsetTime *string `json:"OffsetTime,omitempty" name:"OffsetTime"` // 结果集 // 注意:此字段可能返回 null,表示取不到有效值。 Result *AudioResult `json:"Result,omitempty" name:"Result"` }
type BucketInfo ¶
type CancelTaskRequest ¶
type CancelTaskRequest struct { *tchttp.BaseRequest // 任务ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` }
func NewCancelTaskRequest ¶
func NewCancelTaskRequest() (request *CancelTaskRequest)
func (*CancelTaskRequest) FromJsonString ¶
func (r *CancelTaskRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CancelTaskRequest) ToJsonString ¶
func (r *CancelTaskRequest) ToJsonString() string
type CancelTaskResponse ¶
type CancelTaskResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCancelTaskResponse ¶
func NewCancelTaskResponse() (response *CancelTaskResponse)
func (*CancelTaskResponse) FromJsonString ¶
func (r *CancelTaskResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CancelTaskResponse) ToJsonString ¶
func (r *CancelTaskResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CancelTask ¶
func (c *Client) CancelTask(request *CancelTaskRequest) (response *CancelTaskResponse, err error)
取消任务
func (*Client) CreateAudioModerationTask ¶
func (c *Client) CreateAudioModerationTask(request *CreateAudioModerationTaskRequest) (response *CreateAudioModerationTaskResponse, err error)
本接口(Audio Moderation)用于提交音频内容(包括音频文件或流地址)进行智能审核任务,使用前请您登陆控制台开通音频内容安全服务。
### 功能使用说明: - 前往“内容安全控制台-音频内容安全”开启使用音频内容安全服务,首次开通可获得20小时免费调用时长
### 接口功能说明: - 支持对音频流或音频文件进行检测,判断其中是否包含违规内容; - 支持设置回调地址 Callback 获取检测结果,或通过接口(查询音频检测结果)主动轮询获取检测结果; - 支持识别违规内容,包括:低俗、谩骂、色情、涉政、广告等场景; - 支持批量提交检测任务。检测任务列表最多支持10个;
### 音频文件调用说明: - 音频文件大小支持:文件 < 500M; - 音频文件时长支持:< 1小时; - 音频码率类型支持:128 Kbps - 256 Kbps ; - 音频文件支持格式:wav、mp3、aac、flac、amr、3gp、 m4a、wma、ogg、ape; - 支持音视频文件分离并对音频文件进行独立识别;
### 音频流调用说明: - 音频流时长支持:< 3小时; - 音频码率类型支持:128 Kbps - 256 Kbps ; - 音频流支持的传输协议:RTMP、HTTP、HTTPS; - 音频流格式支持的类型:rtp、srtp、rtmp、rtmps、mmsh、 mmst、hls、http、tcp、https、m3u8; - 支持音视频流分离并对音频流进行独立识别;
func (*Client) CreateBizConfig ¶
func (c *Client) CreateBizConfig(request *CreateBizConfigRequest) (response *CreateBizConfigResponse, err error)
创建业务配置,1个账号最多可以创建20个配置,可定义音频审核的场景,如色情、谩骂等,
在创建业务配置之前,你需要以下步骤: 1. 开通COS存储桶功能,新建存储桶,例如 cms_segments,用来存储 视频转换过程中生成对音频和图片。 2. 然后在COS控制台,授权天御内容安全主账号 对 cms_segments 存储桶对读写权限。具体授权操作,参考https://cloud.tencent.com/document/product/436/38648
func (*Client) DescribeAmsList ¶
func (c *Client) DescribeAmsList(request *DescribeAmsListRequest) (response *DescribeAmsListResponse, err error)
音频审核明细列表
func (*Client) DescribeAudioStat ¶
func (c *Client) DescribeAudioStat(request *DescribeAudioStatRequest) (response *DescribeAudioStatResponse, err error)
控制台识别统计
func (*Client) DescribeBizConfig ¶
func (c *Client) DescribeBizConfig(request *DescribeBizConfigRequest) (response *DescribeBizConfigResponse, err error)
查看单个配置
func (*Client) DescribeTaskDetail ¶
func (c *Client) DescribeTaskDetail(request *DescribeTaskDetailRequest) (response *DescribeTaskDetailResponse, err error)
查看任务详情
type CreateAudioModerationTaskRequest ¶
type CreateAudioModerationTaskRequest struct { *tchttp.BaseRequest // 业务类型, 定义 模版策略,输出存储配置。如果没有BizType,可以先参考 【创建业务配置】接口进行创建 BizType *string `json:"BizType,omitempty" name:"BizType"` // 审核类型,这里可选:AUDIO (点播音频)和 LIVE_AUDIO(直播音频) Type *string `json:"Type,omitempty" name:"Type"` // 回调签名key,具体可以查看签名文档。 Seed *string `json:"Seed,omitempty" name:"Seed"` // 接收审核信息回调地址,如果设置,则审核过程中产生的违规音频片段和画面截帧发送此接口 CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"` // 输入的任务信息,最多可以同时创建10个任务 Tasks []*TaskInput `json:"Tasks,omitempty" name:"Tasks" list` }
func NewCreateAudioModerationTaskRequest ¶
func NewCreateAudioModerationTaskRequest() (request *CreateAudioModerationTaskRequest)
func (*CreateAudioModerationTaskRequest) FromJsonString ¶
func (r *CreateAudioModerationTaskRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAudioModerationTaskRequest) ToJsonString ¶
func (r *CreateAudioModerationTaskRequest) ToJsonString() string
type CreateAudioModerationTaskResponse ¶
type CreateAudioModerationTaskResponse struct { *tchttp.BaseResponse Response *struct { // 任务创建结果 // 注意:此字段可能返回 null,表示取不到有效值。 Results []*TaskResult `json:"Results,omitempty" name:"Results" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateAudioModerationTaskResponse ¶
func NewCreateAudioModerationTaskResponse() (response *CreateAudioModerationTaskResponse)
func (*CreateAudioModerationTaskResponse) FromJsonString ¶
func (r *CreateAudioModerationTaskResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAudioModerationTaskResponse) ToJsonString ¶
func (r *CreateAudioModerationTaskResponse) ToJsonString() string
type CreateBizConfigRequest ¶
type CreateBizConfigRequest struct { *tchttp.BaseRequest // 业务类型,仅限英文字母、数字和下划线(_)组成,长度不超过8位 BizType *string `json:"BizType,omitempty" name:"BizType"` // 配置信息, MediaModeration *MediaModerationConfig `json:"MediaModeration,omitempty" name:"MediaModeration"` // 业务名称,用于标识业务场景,长度不超过32位 BizName *string `json:"BizName,omitempty" name:"BizName"` // 审核内容,可选:Polity (政治); Porn (色情); Illegal(违法);Abuse (谩骂); Terror (暴恐); Ad (广告); ModerationCategories []*string `json:"ModerationCategories,omitempty" name:"ModerationCategories" list` }
func NewCreateBizConfigRequest ¶
func NewCreateBizConfigRequest() (request *CreateBizConfigRequest)
func (*CreateBizConfigRequest) FromJsonString ¶
func (r *CreateBizConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateBizConfigRequest) ToJsonString ¶
func (r *CreateBizConfigRequest) ToJsonString() string
type CreateBizConfigResponse ¶
type CreateBizConfigResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateBizConfigResponse ¶
func NewCreateBizConfigResponse() (response *CreateBizConfigResponse)
func (*CreateBizConfigResponse) FromJsonString ¶
func (r *CreateBizConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateBizConfigResponse) ToJsonString ¶
func (r *CreateBizConfigResponse) ToJsonString() string
type DescribeAmsListRequest ¶
type DescribeAmsListRequest struct { *tchttp.BaseRequest // 页码 PageToken *string `json:"PageToken,omitempty" name:"PageToken"` // 过滤条件 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 查询方向 PageDirection *string `json:"PageDirection,omitempty" name:"PageDirection"` // 过滤条件 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` }
func NewDescribeAmsListRequest ¶
func NewDescribeAmsListRequest() (request *DescribeAmsListRequest)
func (*DescribeAmsListRequest) FromJsonString ¶
func (r *DescribeAmsListRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAmsListRequest) ToJsonString ¶
func (r *DescribeAmsListRequest) ToJsonString() string
type DescribeAmsListResponse ¶
type DescribeAmsListResponse struct { *tchttp.BaseResponse Response *struct { // 返回列表数据----非必选,该参数暂未对外开放 AmsDetailSet []*AmsDetailInfo `json:"AmsDetailSet,omitempty" name:"AmsDetailSet" list` // 总条数 Total *int64 `json:"Total,omitempty" name:"Total"` // 分页 token PageToken *string `json:"PageToken,omitempty" name:"PageToken"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAmsListResponse ¶
func NewDescribeAmsListResponse() (response *DescribeAmsListResponse)
func (*DescribeAmsListResponse) FromJsonString ¶
func (r *DescribeAmsListResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAmsListResponse) ToJsonString ¶
func (r *DescribeAmsListResponse) ToJsonString() string
type DescribeAudioStatRequest ¶
type DescribeAudioStatRequest struct { *tchttp.BaseRequest // 审核类型 1: 机器审核; 2: 人工审核 AuditType *int64 `json:"AuditType,omitempty" name:"AuditType"` // 查询条件 Filters []*Filters `json:"Filters,omitempty" name:"Filters" list` }
func NewDescribeAudioStatRequest ¶
func NewDescribeAudioStatRequest() (request *DescribeAudioStatRequest)
func (*DescribeAudioStatRequest) FromJsonString ¶
func (r *DescribeAudioStatRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAudioStatRequest) ToJsonString ¶
func (r *DescribeAudioStatRequest) ToJsonString() string
type DescribeAudioStatResponse ¶
type DescribeAudioStatResponse struct { *tchttp.BaseResponse Response *struct { // 识别结果统计 Overview *Overview `json:"Overview,omitempty" name:"Overview"` // 识别量统计 TrendCount []*TrendCount `json:"TrendCount,omitempty" name:"TrendCount" list` // 违规数据分布 EvilCount []*EvilCount `json:"EvilCount,omitempty" name:"EvilCount" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAudioStatResponse ¶
func NewDescribeAudioStatResponse() (response *DescribeAudioStatResponse)
func (*DescribeAudioStatResponse) FromJsonString ¶
func (r *DescribeAudioStatResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAudioStatResponse) ToJsonString ¶
func (r *DescribeAudioStatResponse) ToJsonString() string
type DescribeBizConfigRequest ¶
type DescribeBizConfigRequest struct { *tchttp.BaseRequest // 审核业务类类型 BizType *string `json:"BizType,omitempty" name:"BizType"` }
func NewDescribeBizConfigRequest ¶
func NewDescribeBizConfigRequest() (request *DescribeBizConfigRequest)
func (*DescribeBizConfigRequest) FromJsonString ¶
func (r *DescribeBizConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBizConfigRequest) ToJsonString ¶
func (r *DescribeBizConfigRequest) ToJsonString() string
type DescribeBizConfigResponse ¶
type DescribeBizConfigResponse struct { *tchttp.BaseResponse Response *struct { // 业务类型 BizType *string `json:"BizType,omitempty" name:"BizType"` // 业务名称 // 注意:此字段可能返回 null,表示取不到有效值。 BizName *string `json:"BizName,omitempty" name:"BizName"` // 审核范围 ModerationCategories []*string `json:"ModerationCategories,omitempty" name:"ModerationCategories" list` // 多媒体审核配置 // 注意:此字段可能返回 null,表示取不到有效值。 MediaModeration *MediaModerationConfig `json:"MediaModeration,omitempty" name:"MediaModeration"` // 创建时间 CreatedAt *string `json:"CreatedAt,omitempty" name:"CreatedAt"` // 更新时间 UpdatedAt *string `json:"UpdatedAt,omitempty" name:"UpdatedAt"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeBizConfigResponse ¶
func NewDescribeBizConfigResponse() (response *DescribeBizConfigResponse)
func (*DescribeBizConfigResponse) FromJsonString ¶
func (r *DescribeBizConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBizConfigResponse) ToJsonString ¶
func (r *DescribeBizConfigResponse) ToJsonString() string
type DescribeTaskDetailRequest ¶
type DescribeTaskDetailRequest struct { *tchttp.BaseRequest // 任务ID,创建任务后返回的TaskId字段 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 是否展示所有分片,默认只展示命中规则的分片 ShowAllSegments *bool `json:"ShowAllSegments,omitempty" name:"ShowAllSegments"` }
func NewDescribeTaskDetailRequest ¶
func NewDescribeTaskDetailRequest() (request *DescribeTaskDetailRequest)
func (*DescribeTaskDetailRequest) FromJsonString ¶
func (r *DescribeTaskDetailRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskDetailRequest) ToJsonString ¶
func (r *DescribeTaskDetailRequest) ToJsonString() string
type DescribeTaskDetailResponse ¶
type DescribeTaskDetailResponse struct { *tchttp.BaseResponse Response *struct { // 任务ID // 注意:此字段可能返回 null,表示取不到有效值。 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 审核时传入的数据Id // 注意:此字段可能返回 null,表示取不到有效值。 DataId *string `json:"DataId,omitempty" name:"DataId"` // 业务类型,用于调用识别策略模板; // (暂未发布功能,敬请期待) // 注意:此字段可能返回 null,表示取不到有效值。 BizType *string `json:"BizType,omitempty" name:"BizType"` // 任务名称 // 注意:此字段可能返回 null,表示取不到有效值。 Name *string `json:"Name,omitempty" name:"Name"` // 查询内容审核任务的状态,可选值: // FINISH 已完成 // PENDING 等待中 // RUNNING 进行中 // ERROR 出错 // CANCELLED 已取消 // 注意:此字段可能返回 null,表示取不到有效值。 Status *string `json:"Status,omitempty" name:"Status"` // 任务类型:可选AUDIO(点播音频),LIVE_AUDIO(直播音频) // 注意:此字段可能返回 null,表示取不到有效值。 Type *string `json:"Type,omitempty" name:"Type"` // 智能审核服务对于内容违规类型的等级,可选值: // Pass 建议通过; // Reveiw 建议复审; // Block 建议屏蔽; // 注意:此字段可能返回 null,表示取不到有效值。 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` // 智能审核服务对于内容违规类型的判断,详见返回值列表 // 如:Label:Porn(色情); // 注意:此字段可能返回 null,表示取不到有效值。 Labels []*TaskLabel `json:"Labels,omitempty" name:"Labels" list` // 传入媒体的解码信息 // 注意:此字段可能返回 null,表示取不到有效值。 MediaInfo *MediaInfo `json:"MediaInfo,omitempty" name:"MediaInfo"` // 审核任务的信息 // 注意:此字段可能返回 null,表示取不到有效值。 InputInfo *InputInfo `json:"InputInfo,omitempty" name:"InputInfo"` // 审核任务的创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 CreatedAt *string `json:"CreatedAt,omitempty" name:"CreatedAt"` // 审核任务的更新时间 // 注意:此字段可能返回 null,表示取不到有效值。 UpdatedAt *string `json:"UpdatedAt,omitempty" name:"UpdatedAt"` // 在N秒后重试 // 注意:此字段可能返回 null,表示取不到有效值。 TryInSeconds *int64 `json:"TryInSeconds,omitempty" name:"TryInSeconds"` // 视频/音频审核中的音频结果 // 注意:此字段可能返回 null,表示取不到有效值。 AudioSegments []*AudioSegments `json:"AudioSegments,omitempty" name:"AudioSegments" list` // 视频审核中的图片结果 // 注意:此字段可能返回 null,表示取不到有效值。 ImageSegments []*ImageSegments `json:"ImageSegments,omitempty" name:"ImageSegments" list` // 音频识别总文本 // 注意:此字段可能返回 null,表示取不到有效值。 AudioText *string `json:"AudioText,omitempty" name:"AudioText"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTaskDetailResponse ¶
func NewDescribeTaskDetailResponse() (response *DescribeTaskDetailResponse)
func (*DescribeTaskDetailResponse) FromJsonString ¶
func (r *DescribeTaskDetailResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskDetailResponse) ToJsonString ¶
func (r *DescribeTaskDetailResponse) ToJsonString() string
type FileOutput ¶
type ImageResult ¶
type ImageResult struct { // 违规标志 // 0 未命中 // 1 命中 // 注意:此字段可能返回 null,表示取不到有效值。 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` // 建议您拿到判断结果后的执行操作。 // 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` // 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。 // 以及令人反感、不安全或不适宜的内容类型。 // 注意:此字段可能返回 null,表示取不到有效值。 Label *string `json:"Label,omitempty" name:"Label"` // 得分 Score *int64 `json:"Score,omitempty" name:"Score"` // 画面截帧图片结果集 Results []*ImageResultResult `json:"Results,omitempty" name:"Results" list` // 图片URL地址 Url *string `json:"Url,omitempty" name:"Url"` // 附加字段 Extra *string `json:"Extra,omitempty" name:"Extra"` }
type ImageResultResult ¶
type ImageResultResult struct { // 场景 // Porn 色情 // Sexy 性感 // Abuse 谩骂 // Ad 广告 // 等多个识别场景 // 注意:此字段可能返回 null,表示取不到有效值。 Scene *string `json:"Scene,omitempty" name:"Scene"` // 是否命中 // 0 未命中 // 1 命中 // 注意:此字段可能返回 null,表示取不到有效值。 HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"` // 建议您拿到判断结果后的执行操作。 // 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 // 注意:此字段可能返回 null,表示取不到有效值。 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` // 标签 // 注意:此字段可能返回 null,表示取不到有效值。 Label *string `json:"Label,omitempty" name:"Label"` // 子标签 // 注意:此字段可能返回 null,表示取不到有效值。 SubLabel *string `json:"SubLabel,omitempty" name:"SubLabel"` // 分数 // 注意:此字段可能返回 null,表示取不到有效值。 Score *int64 `json:"Score,omitempty" name:"Score"` // 如果命中场景为涉政,则该数据为人物姓名列表,否则null Names []*string `json:"Names,omitempty" name:"Names" list` // 图片OCR文本 // 注意:此字段可能返回 null,表示取不到有效值。 Text *string `json:"Text,omitempty" name:"Text"` // 其他详情 Details []*ImageResultsResultDetail `json:"Details,omitempty" name:"Details" list` }
type ImageResultsResultDetail ¶
type ImageResultsResultDetail struct { // 位置信息 // 注意:此字段可能返回 null,表示取不到有效值。 Location []*ImageResultsResultDetailLocation `json:"Location,omitempty" name:"Location" list` // 任务名称 // 注意:此字段可能返回 null,表示取不到有效值。 Name *string `json:"Name,omitempty" name:"Name"` // OCR识别文本 // 注意:此字段可能返回 null,表示取不到有效值。 Text *string `json:"Text,omitempty" name:"Text"` // 标签 Label *string `json:"Label,omitempty" name:"Label"` // 库ID // 注意:此字段可能返回 null,表示取不到有效值。 LibId *string `json:"LibId,omitempty" name:"LibId"` // 库名称 // 注意:此字段可能返回 null,表示取不到有效值。 LibName *string `json:"LibName,omitempty" name:"LibName"` // 命中的关键词 // 注意:此字段可能返回 null,表示取不到有效值。 Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list` // 建议 // 注意:此字段可能返回 null,表示取不到有效值。 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` // 得分 // 注意:此字段可能返回 null,表示取不到有效值。 Score *int64 `json:"Score,omitempty" name:"Score"` // 子标签码 // 注意:此字段可能返回 null,表示取不到有效值。 SubLabelCode *string `json:"SubLabelCode,omitempty" name:"SubLabelCode"` }
type ImageResultsResultDetailLocation ¶
type ImageResultsResultDetailLocation struct { // x坐标 // 注意:此字段可能返回 null,表示取不到有效值。 X *float64 `json:"X,omitempty" name:"X"` // y坐标 // 注意:此字段可能返回 null,表示取不到有效值。 Y *float64 `json:"Y,omitempty" name:"Y"` // 宽度 // 注意:此字段可能返回 null,表示取不到有效值。 Width *int64 `json:"Width,omitempty" name:"Width"` // 高度 // 注意:此字段可能返回 null,表示取不到有效值。 Height *int64 `json:"Height,omitempty" name:"Height"` // 旋转角度 // 注意:此字段可能返回 null,表示取不到有效值。 Rotate *float64 `json:"Rotate,omitempty" name:"Rotate"` }
type ImageSegments ¶
type ImageSegments struct { // 画面截帧结果详情 Result *ImageResult `json:"Result,omitempty" name:"Result"` // 截帧时间。 // 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10 // 直播流:该值为时间戳,例如:1594650717 OffsetTime *string `json:"OffsetTime,omitempty" name:"OffsetTime"` }
type InputInfo ¶
type InputInfo struct { // 传入的类型可选:URL,COS // 注意:此字段可能返回 null,表示取不到有效值。 Type *string `json:"Type,omitempty" name:"Type"` // Url地址 // 注意:此字段可能返回 null,表示取不到有效值。 Url *string `json:"Url,omitempty" name:"Url"` // 桶信息。当输入当时COS时,该字段不为空 // 注意:此字段可能返回 null,表示取不到有效值。 BucketInfo *BucketInfo `json:"BucketInfo,omitempty" name:"BucketInfo"` }
type MediaInfo ¶
type MediaInfo struct { // 编码格式 Codecs *string `json:"Codecs,omitempty" name:"Codecs"` // 流检测时分片时长 // 注意:此字段可能返回 0,表示取不到有效值。 Duration *int64 `json:"Duration,omitempty" name:"Duration"` // 宽,单位为像素 Width *int64 `json:"Width,omitempty" name:"Width"` // 高,单位为像素 Height *int64 `json:"Height,omitempty" name:"Height"` // 缩略图 Thumbnail *string `json:"Thumbnail,omitempty" name:"Thumbnail"` }
type MediaModerationConfig ¶
type MediaModerationConfig struct { // 音频截帧频率。默认一分钟 AudioFrequency *int64 `json:"AudioFrequency,omitempty" name:"AudioFrequency"` // 图片取帧频率, 单位(秒/帧),默认 5, 可选 1 ~ 300 ImageFrequency *int64 `json:"ImageFrequency,omitempty" name:"ImageFrequency"` // 异步回调地址。 CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"` // 临时文件存储位置 SegmentOutput *FileOutput `json:"SegmentOutput,omitempty" name:"SegmentOutput"` // 是否使用OCR,默认为true UseOCR *bool `json:"UseOCR,omitempty" name:"UseOCR"` // 是否使用音频。(音频场景下,该值永远为true) UseAudio *bool `json:"UseAudio,omitempty" name:"UseAudio"` }
type Overview ¶
type Overview struct { // 总调用量 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 总调用时长 TotalHour *int64 `json:"TotalHour,omitempty" name:"TotalHour"` // 通过量 PassCount *int64 `json:"PassCount,omitempty" name:"PassCount"` // 通过时长 PassHour *int64 `json:"PassHour,omitempty" name:"PassHour"` // 违规量 EvilCount *int64 `json:"EvilCount,omitempty" name:"EvilCount"` // 违规时长 EvilHour *int64 `json:"EvilHour,omitempty" name:"EvilHour"` // 疑似违规量 SuspectCount *int64 `json:"SuspectCount,omitempty" name:"SuspectCount"` // 疑似违规时长 SuspectHour *int64 `json:"SuspectHour,omitempty" name:"SuspectHour"` }
type StorageInfo ¶
type StorageInfo struct { // 类型 可选: // URL 资源链接类型 // COS 腾讯云对象存储类型 Type *string `json:"Type,omitempty" name:"Type"` // 资源链接 Url *string `json:"Url,omitempty" name:"Url"` // 腾讯云存储桶信息 BucketInfo *BucketInfo `json:"BucketInfo,omitempty" name:"BucketInfo"` }
type TaskInput ¶
type TaskInput struct { // 数据ID DataId *string `json:"DataId,omitempty" name:"DataId"` // 任务名 Name *string `json:"Name,omitempty" name:"Name"` // 任务输入 Input *StorageInfo `json:"Input,omitempty" name:"Input"` }
type TaskLabel ¶
type TaskLabel struct { // 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。 // 以及令人反感、不安全或不适宜的内容类型。 // 注意:此字段可能返回 null,表示取不到有效值。 Label *string `json:"Label,omitempty" name:"Label"` // 建议您拿到判断结果后的执行操作。 // 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过 // 注意:此字段可能返回 null,表示取不到有效值。 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` // 得分,分数是 0 ~ 100 // 注意:此字段可能返回 null,表示取不到有效值。 Score *int64 `json:"Score,omitempty" name:"Score"` }
type TaskResult ¶
type TaskResult struct { // 请求时传入的DataId // 注意:此字段可能返回 null,表示取不到有效值。 DataId *string `json:"DataId,omitempty" name:"DataId"` // TaskId,任务ID // 注意:此字段可能返回 null,表示取不到有效值。 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码 // 注意:此字段可能返回 null,表示取不到有效值。 Code *string `json:"Code,omitempty" name:"Code"` // 如果错误,该字段表示错误详情 // 注意:此字段可能返回 null,表示取不到有效值。 Message *string `json:"Message,omitempty" name:"Message"` }
type TrendCount ¶
type TrendCount struct { // 总调用量 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 总调用时长 TotalHour *int64 `json:"TotalHour,omitempty" name:"TotalHour"` // 通过量 PassCount *int64 `json:"PassCount,omitempty" name:"PassCount"` // 通过时长 PassHour *int64 `json:"PassHour,omitempty" name:"PassHour"` // 违规量 EvilCount *int64 `json:"EvilCount,omitempty" name:"EvilCount"` // 违规时长 EvilHour *int64 `json:"EvilHour,omitempty" name:"EvilHour"` // 疑似违规量 SuspectCount *int64 `json:"SuspectCount,omitempty" name:"SuspectCount"` // 疑似违规时长 SuspectHour *int64 `json:"SuspectHour,omitempty" name:"SuspectHour"` // 日期 Date *string `json:"Date,omitempty" name:"Date"` }