public class AipContentCensor extends BaseClient
accessToken, aipKey, aipToken, appId, config, expireDate, isAuthorized, isBceKey, LOGGER, state| 构造器和说明 |
|---|
AipContentCensor(String appId,
String aipKey,
String aipToken) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.json.JSONObject |
asyncVoiceCensorPull(String taskId,
String audioId,
HashMap<String,Object> options) |
org.json.JSONObject |
asyncVoiceCensorPullByAudioId(String audioId,
HashMap<String,Object> options) |
org.json.JSONObject |
asyncVoiceCensorPullByTaskId(String taskId,
HashMap<String,Object> options)
长语音审核 - 轮询结果接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
asyncVoiceCensorSubmit(String voiceUrl,
String fmt,
Integer rate,
HashMap<String,Object> options)
长语音审核 - 提交音频接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
imageCensorUserDefined(byte[] imgData,
HashMap<String,Object> options)
图像审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
imageCensorUserDefined(String image,
EImgType type,
HashMap<String,Object> options)
图像审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
liveCensorPull(String taskId,
HashMap<String,Object> options)
直播审核 - 轮询任务
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
liveCensorSave(String streamUrl,
String streamType,
String extId,
Long startTime,
Long endTime,
String streamName,
HashMap<String,Object> options)
直播审核 - 提交任务
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
liveCensorStop(String taskId,
HashMap<String,Object> options)
直播审核 - 停止任务
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
liveCensorView(String taskId,
HashMap<String,Object> options)
直播审核 - 查看任务
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
longVideoCensorPull(String taskId,
HashMap<String,Object> options)
长视频审核 - 拉取视频结果接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
longVideoCensorSubmit(String videoUrl,
String extId,
HashMap<String,Object> options)
长视频审核 - 提交视频接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
report(org.json.JSONArray reportData)
反馈接口
|
org.json.JSONObject |
textCensorUserDefined(String text)
文本审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
videoCensorUserDefined(String name,
String videoUrl,
String extId,
HashMap<String,Object> options)
视频审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
voiceCensorUserDefined(byte[] voiceData,
Integer rate,
String fmt,
HashMap<String,Object> options)
语音审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
org.json.JSONObject |
voiceUrlCensorUserDefined(String url,
Integer rate,
String fmt,
HashMap<String,Object> options)
语音审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
getAccessToken, needAuth, postOperation, preOperation, preOperation, requestServer, setConnectionTimeoutInMillis, setHttpProxy, setSocketProxy, setSocketTimeoutInMillispublic org.json.JSONObject report(org.json.JSONArray reportData)
reportData - 反馈图片识别结果好坏的json数组public org.json.JSONObject imageCensorUserDefined(String image, EImgType type, HashMap<String,Object> options)
image - 本地图片路径或图片urltype - image参数类型:FILE或URLoptions - 可选参数public org.json.JSONObject imageCensorUserDefined(byte[] imgData,
HashMap<String,Object> options)
imgData - 图片二进制数据options - 可选参数public org.json.JSONObject textCensorUserDefined(String text)
text - 文本public org.json.JSONObject voiceUrlCensorUserDefined(String url, Integer rate, String fmt, HashMap<String,Object> options)
url - 语音文件的url地址fmt - 语音文件类型options - 可选参数public org.json.JSONObject voiceCensorUserDefined(byte[] voiceData,
Integer rate,
String fmt,
HashMap<String,Object> options)
voiceData - 语音二进制数据fmt - 语音文件类型options - 可选参数public org.json.JSONObject videoCensorUserDefined(String name, String videoUrl, String extId, HashMap<String,Object> options)
name - 视频名字videoUrl - 视频urlextId - 视频idoptions - 可选参数public org.json.JSONObject longVideoCensorSubmit(String videoUrl, String extId, HashMap<String,Object> options)
videoUrl - 视频urlextId - 用户侧视频idoptions - 可选参数public org.json.JSONObject longVideoCensorPull(String taskId, HashMap<String,Object> options)
taskId - 任务idoptions - 可选参数public org.json.JSONObject asyncVoiceCensorSubmit(String voiceUrl, String fmt, Integer rate, HashMap<String,Object> options)
voiceUrl - 音频urlfmt - 音频格式rate - 音频采样率options - 可选参数public org.json.JSONObject asyncVoiceCensorPullByTaskId(String taskId, HashMap<String,Object> options)
taskId - 任务idoptions - 可选参数public org.json.JSONObject asyncVoiceCensorPullByAudioId(String audioId, HashMap<String,Object> options)
public org.json.JSONObject asyncVoiceCensorPull(String taskId, String audioId, HashMap<String,Object> options)
public org.json.JSONObject liveCensorSave(String streamUrl, String streamType, String extId, Long startTime, Long endTime, String streamName, HashMap<String,Object> options)
streamUrl - 流地址streamType - 流地址协议类型extId - 用户侧流唯一idstartTime - 直播开始时间戳,单位msendTime - 直播结束时间戳,单位msstreamName - 直播名称options - 可选参数public org.json.JSONObject liveCensorStop(String taskId, HashMap<String,Object> options)
taskId - 任务idoptions - 可选参数public org.json.JSONObject liveCensorView(String taskId, HashMap<String,Object> options)
taskId - 任务idoptions - 可选参数Copyright © 2024. All rights reserved.