tencent cloud

Feedback

Data Types

Last updated: 2023-12-04 16:14:03

    AudioResult

    Audio moderation output parameter

    Used by actions: DescribeTaskDetail.

    Name Type Description
    HitFlag Integer This field is used to return whether the moderated content hit the moderation model. Valid values: 0 (no), 1 (yes).
    Note: this field may return null, indicating that no valid values can be obtained.
    Label String This field is used to return the maliciousness tag in the detection result.
    Returned values: Normal: normal; Porn: pornographic; Abuse: abusive; Ad: advertising; Custom: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
    Note: this field may return null, indicating that no valid values can be obtained.
    Suggestion String This field is used to return the operation suggestion. When you get the determination result, the returned value indicates the suggested operation.

    Returned values: Block, Review, Pass.
    Note: this field may return null, indicating that no valid values can be obtained.
    Score Integer This field is used to return the confidence under the current tag. Value range: 0 (the lowest confidence)–100 (the highest confidence), where a higher value indicates that the text is more likely to fall into the category of the current returned tag; for example, Porn 99 indicates that the text is highly likely to be pornographic.
    Note: this field may return null, indicating that no valid values can be obtained.
    Text String This field is used to return the text information generated by recognizing an audio file with ASR. Audio files of up to 5 hours can be recognized. If this limit is exceeded, an error will be reported by the API.
    Note: this field may return null, indicating that no valid values can be obtained.
    Url String This field is used to return the URL where audio segments are stored, which is valid for 1 day.
    Note: this field may return null, indicating that no valid values can be obtained.
    Duration String This field is used to return the length of an audio file in milliseconds.
    Extra String This field is used to return additional information, and the returned information varies by customer or Biztype.
    TextResults Array of AudioResultDetailTextResult This field is used to return the detailed moderation result of the text generated by recognizing an audio file with ASR. For the specific result, see the detailed description of the AudioResultDetailLanguageResult data structure.
    MoanResults Array of AudioResultDetailMoanResult This field is used to return the detailed moan detection result of an audio file. For the specific result, see the detailed description of the AudioResultDetailMoanResult data structure.
    LanguageResults Array of AudioResultDetailLanguageResult This field is used to return the detailed minor language detection result of an audio. For the specific result, see the detailed description of the AudioResultDetailLanguageResult data structure.
    SubLabel String This field is used to return a subtag under the current tag (Lable).
    Note: this field may return null, indicating that no valid values can be obtained.
    RecognitionResults Array of RecognitionResult List of audio recognition results
    Note: This field may return null, indicating that no valid value can be obtained.

    AudioResultDetailLanguageResult

    Audio language detection result

    Used by actions: DescribeTaskDetail.

    Name Type Description
    Label String This field is used to return the language information.
    Note: this field may return null, indicating that no valid values can be obtained.
    Score Integer This parameter is used to return the confidence under the current tag. Value range: 0 (the lowest confidence)–100 (the highest confidence), where a higher value indicates that the audio is more likely to fall into the category of the current returned language tag;
    Note: this field may return null, indicating that no valid values can be obtained.
    StartTime Float This parameter is used to return the start time of the segment of an audio file under the corresponding language tag in seconds.
    Note: this field may return null, indicating that no valid values can be obtained.
    EndTime Float This parameter is used to return the end time of the segment of an audio file under the corresponding language tag in seconds.
    Note: this field may return null, indicating that no valid values can be obtained.
    SubLabelCode String This field is in beta test. Stay tuned
    Note: this field may return null, indicating that no valid values can be obtained.

    AudioResultDetailMoanResult

    Audio moan moderation result

    Used by actions: DescribeTaskDetail.

    Name Type Description
    Label String This field is used to return the type of the content to be detected. It is fixed at Moan here to call the moan detection feature.
    Note: this field may return null, indicating that no valid values can be obtained.
    Score Integer This field is used to return the confidence of moan detection. Value range: 0 (the lowest confidence)–100 (the highest confidence), where a higher value indicates that the audio is more likely to fall into the category of moan.
    StartTime Float This field is used to return the start time of the segment of an audio file under the corresponding moan tag in seconds.
    EndTime Float This field is used to return the end time of the segment of an audio file under the corresponding moan tag in seconds.
    SubLabelCode String This field is in beta test. Stay tuned
    SubLabel String This field is used to return a subtag under the current tag (Lable).
    Note: this field may return null, indicating that no valid values can be obtained.
    Suggestion String This field returns the suggested action according to the check result.
    Values: Block, Review, Pass.

    AudioResultDetailTextResult

    ASR-Based audio moderation result

    Used by actions: DescribeTaskDetail.

    Name Type Description
    Label String This field is used to return the maliciousness tag in the detection result.
    Returned values: Normal: normal; Porn: pornographic; Abuse: abusive; Ad: advertising; Custom: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
    Note: this field may return null, indicating that no valid values can be obtained.
    Keywords Array of String This field is used to return the keyword information hit by the text content recognized with ASR and indicate the specific cause of content non-compliance (such as "Friend me"). This parameter may have multiple returned values representing multiple hit keywords. If the returned value is empty, but Score is not empty, the maliciousness tag (Label) that corresponds to the recognition result derives from the returned value determined by the semantic model.
    Note: this field may return null, indicating that no valid values can be obtained.
    LibId String This field is valid only when Label is Custom (custom keyword). It is used to return the ID of the custom library for easier custom library management and configuration.
    Note: this field may return null, indicating that no valid values can be obtained.
    LibName String This field is valid only when Label is Custom (custom keyword). It is used to return the name of the custom library for easier custom library management and configuration.
    Note: this field may return null, indicating that no valid values can be obtained.
    Score Integer This field is used to return the confidence under the current tag. Value range: 0 (the lowest confidence)–100 (the highest confidence), where a higher value indicates that the text is more likely to fall into the category of the current returned tag; for example, Porn 99 indicates that the text is highly likely to be pornographic.
    Note: this field may return null, indicating that no valid values can be obtained.
    Suggestion String This field is used to return the operation suggestion. When you get the determination result, the returned value indicates the suggested operation.

    Returned values: Block, Review, Pass.
    Note: this field may return null, indicating that no valid values can be obtained.
    LibType Integer This field is used to return the dictionary type of a custom keyword. Valid values: 1 (blocklist/allowlist), 2 (custom keyword dictionary). If no custom keyword dictionary is configured, the default value will be 1 (blocklist/allowlist).
    SubLabel String This field is used to return a subtag under the current tag (Lable).
    Note: this field may return null, indicating that no valid values can be obtained.

    AudioSegments

    Indicates audio segment information

    Used by actions: DescribeTaskDetail.

    Name Type Description
    OffsetTime String This field is used to return the start time of an audio segment in seconds. For audio on demand files, this parameter indicates the time offset of the audio from the complete audio track, such as 0 (no offset), 5 (5 seconds after the start of the audio track), and 10 (10 seconds after the start of the audio track). For live audio stream files, this parameter returns the Unix timestamp of the start of the audio segment, such as 1594650717.
    Note: this field may return null, indicating that no valid values can be obtained.
    Result AudioResult This field is used to return the specific moderation result of an audio segment. For details, see the description of the AudioResult data structure.
    Note: this field may return null, indicating that no valid values can be obtained.

    BucketInfo

    Bucket information
    See the basic concepts at https://www.tencentcloud.com/document/product/436/44352?from_cn_redirect=1

    Used by actions: CreateAudioModerationTask, DescribeTaskDetail.

    Name Type Required Description
    Bucket String Yes This field indicates a bucket name in Tencent Cloud COS. For more information on buckets, see Basic Concepts (https://www.tencentcloud.com/document/product/436/44352?from_cn_redirect=1).
    Note: this field may return null, indicating that no valid values can be obtained.
    Region String Yes This field indicates a region where a Tencent Cloud COS managed data center is deployed. COS data is stored in buckets in these regions.
    Note: this field may return null, indicating that no valid values can be obtained.
    Object String Yes This field indicates an object key in Tencent Cloud COS. Object z is stored in a bucket as a basic storage unit. You can manage objects through the Tencent Cloud console, API, or SDK. For more information on objects, see Object Overview (https://www.tencentcloud.com/document/product/436/13324?from_cn_redirect=1).
    Note: this field may return null, indicating that no valid values can be obtained.

    InputInfo

    Input information details

    Used by actions: DescribeTaskDetail.

    Name Type Description
    Type String This field indicates the file access type. Valid values: URL (resource link), COS (Tencent Cloud COS).
    Note: this field may return null, indicating that no valid values can be obtained.
    Url String This field indicates the link address for file access in standard URL format.
    Note: when Type is URL, this field will not be empty.
    Note: this field may return null, indicating that no valid values can be obtained.
    BucketInfo BucketInfo This field indicates the Tencent Cloud bucket information for file access.
    Note: when Type is COS, this field will not be empty.
    Note: this field may return null, indicating that no valid values can be obtained.

    MediaInfo

    Media type

    Used by actions: DescribeTasks.

    Name Type Description
    Codecs String This field is used to return the codec of the media file passed in, such as WAV, MP3, AAC, FLAC, AMR, 3GP, M4A, WMA, OGG, and APE.
    Duration Integer This field is used to return the segment length of the input streaming media file in milliseconds.** It is 15 seconds** by default and is customizable.
    Width Integer This field is in beta test. Stay tuned
    Height Integer This field is in beta test. Stay tuned
    Thumbnail String This field is in beta test. Stay tuned

    RecognitionResult

    Information of the category label

    Used by actions: DescribeTaskDetail.

    Name Type Description
    Label String Values: Teenager, Gender
    Note: This field may return null, indicating that no valid value can be obtained.
    Tags Array of Tag List of recognized category labels
    Note: This field may return null, indicating that no valid value can be obtained.

    StorageInfo

    Indicates the information of data storage

    Used by actions: CreateAudioModerationTask.

    Name Type Required Description
    Type String No This field indicates the file access type. Valid values: URL (resource link), COS (Tencent Cloud COS). It should correspond to the access type passed in and can be used for strict verification and quick identification of the access address. If you don't pass in this parameter, the default value will be URL, and the system will automatically determine the access address type.
    Url String No This field indicates the link address for file access in standard URL format.
    Note: when Type is URL, this field will not be empty. You must pass in either this parameter or the BucketInfo parameter.
    BucketInfo BucketInfo No This field indicates the Tencent Cloud bucket information for file access.
    Note: when Type is COS, this field will not be empty. You must pass in either this parameter or the Url parameter.

    Tag

    Tag of the audio slice

    Used by actions: DescribeTaskDetail.

    Name Type Description
    Name String The value of this parameter varies by Label.
    When Label is Teenager, Name can be Teenager.
    When Label is Gender, Name can be Male and Female.
    Note: This field may return null, indicating that no valid value was found.
    Score Integer Confidence score. Value: 1 to 100.
    Note: This field may return null, indicating that no valid value was found.
    StartTime Float Start time for the recognition (ms)
    Note: This field may return null, indicating that no valid value can be obtained.
    EndTime Float End time for the recognition (ms)
    Note: This field may return null, indicating that no valid value can be obtained.

    TaskData

    Task data

    Used by actions: DescribeTasks.

    Name Type Description
    DataId String This field is used to return the ID of the audio moderation task data for subsequent query and management of moderation tasks.
    Note: this field may return null, indicating that no valid values can be obtained.
    TaskId String This field is used to return the ID of an audio moderation task for identification, query, and management of moderation tasks.
    Status String This field is used to return the task status of the queried content.

    Valid values: FINISH (task completed), PENDING (task pending), RUNNING (task in progress), ERROR (task error), CANCELLED (task canceled).
    Name String This field is used to return the name of an audio moderation task for subsequent query and management of moderation tasks.
    Note: this field may return null, indicating that no valid values can be obtained.
    BizType String This field is used to return the BizType parameter passed in when the audio moderation API is called for easier data identification and management.
    Note: this field may return null, indicating that no valid values can be obtained.
    Type String This field is used to return the audio moderation type passed in when the audio moderation API is called. Valid values: AUDIO (audio on demand), LIVE_AUDIO (audio live streaming). Default value: AUDIO.
    Note: this field may return null, indicating that no valid values can be obtained.
    Suggestion String This field is used to return the operation suggestion for the maliciousness tag. When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs.
    Returned values: Block, Review, Pass.
    Note: this field may return null, indicating that no valid values can be obtained.
    MediaInfo MediaInfo Input information
    Note: this field may return null, indicating that no valid values can be obtained.
    Labels Array of TaskLabel This field is used to return the maliciousness tag in the detection result.
    Returned values: Normal: normal; Porn: pornographic; Abuse: abusive; Ad: advertising; Custom: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
    Note: this field may return null, indicating that no valid values can be obtained.
    CreatedAt String This field is used to return the creation time of the queried task in ISO 8601 format.
    UpdatedAt String This field is used to return the last update time of the queried task in ISO 8601 format.
    Note: this field may return null, indicating that no valid values can be obtained.

    TaskFilter

    Task filter

    Used by actions: DescribeTasks.

    Name Type Required Description
    BizType String No This field is used to pass in the business type of a task as a filter. Biztype is the specific number of the policy, which is used for API scheduling and can be configured in the CMS console. Different Biztype values are associated with different business scenarios and moderation policies, so you need to verify the Biztype before calling this API. Biztype can contain 3–32 digits, letters, and underscores.
    Note: when this parameter is not passed in, tasks will not be filtered by business type by default.
    Type String No This field is used to pass in the type of an audio moderation task as a filter. Valid values: VIDEO (video on demand moderation), AUDIO (audio on demand moderation), LIVE_VIDEO (video live streaming moderation), LIVE_AUDIO (audio live streaming moderation).
    Note: when this parameter is not passed in, tasks will not be filtered by task type by default.
    Suggestion String No This field is used to pass in the operation suggestion of an audio moderation task as a filter. Valid values: Block, Review, Pass.
    Note: when this parameter is not passed in, tasks will not be filtered by operation suggestion by default.
    TaskStatus String No This field is used to pass in the status of a moderation task as a filter. Valid values: FINISH (task completed), PENDING (task pending), RUNNING (task in progress), ERROR (task error), CANCELLED (task canceled).
    Note: when this parameter is not passed in, tasks will not be filtered by task status by default.

    TaskInput

    Audio/Video task data structure

    Used by actions: CreateAudioModerationTask.

    Name Type Required Description
    DataId String No This field is optional and indicates the data ID assigned by you to the object to be detected for easier file identification and management.
    It can contain up to 64 letters, digits, and special symbols (_-@#).
    Name String No This field is optional and indicates the name of an audio moderation task for subsequent query and management of moderation tasks.
    Input StorageInfo No This field is required and indicates the access parameter of the moderated file, which is used to get the moderated media file and contains the access type and address.

    TaskLabel

    Returns the tag output by a moderation task

    Used by actions: DescribeTaskDetail, DescribeTasks.

    Name Type Description
    Label String This field is used to return the maliciousness tag in the detection result.
    Returned values: Normal: normal; Porn: pornographic; Abuse: abusive; Ad: advertising; Custom: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
    Note: this field may return null, indicating that no valid values can be obtained.
    Suggestion String This field is used to return the operation suggestion for the current tag. When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs.
    Returned values: Block, Review, Pass.
    Note: this field may return null, indicating that no valid values can be obtained.
    Score Integer This field is used to return the confidence under the current tag (Label). Value range: 0 (the lowest confidence)–100 (the highest confidence), where a higher value indicates that the text is more likely to fall into the category of the current returned tag; for example, Porn 99 indicates that the text is highly likely to be pornographic, while Porn 0 indicates that the text is not pornographic.
    Note: this field may return null, indicating that no valid values can be obtained.
    SubLabel String This field is used to return a subtag under the current tag (Lable).
    Note: this field may return null, indicating that no valid values can be obtained.

    TaskResult

    The result returned during task creation

    Used by actions: CreateAudioModerationTask.

    Name Type Description
    DataId String This field is used to return the DataId passed in within the TaskInput structure when an audio moderation task is created. It is used to identify the specific moderation task.
    Note: this field may return null, indicating that no valid values can be obtained.
    TaskId String This field is used to return the ID of an audio moderation task for identification, query, and management of moderation tasks.
    Note: this field may return null, indicating that no valid values can be obtained.
    Code String This field is used to return the task creation status. If OK is returned, the task has been created successfully; if another value is returned, refer to the common error codes.
    Note: this field may return null, indicating that no valid values can be obtained.
    Message String This field will take effect only when the returned value of Code is an error code. It is used to return the error message.
    Note: this field may return null, indicating that no valid values can be obtained.