tencentcloud-sdk-nodejs-intl-en 3.0.842 → 3.0.844
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -53,31 +53,37 @@ class AmsClient extends AbstractClient {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* This API is used to submit audio content (such as an audio file or stream URL) for smart moderation. Before using it, you need to log in to the console with the Tencent Cloud root account
|
|
56
|
+
* This API is used to submit audio content (such as an audio file or stream URL) for smart moderation. Before using it, you need to log in to the console with the Tencent Cloud root account to [activate AMS](https://console.cloud.tencent.com/cms) and adjust the business configuration. <br>
|
|
57
57
|
|
|
58
|
-
###
|
|
59
|
-
- Go to
|
|
60
|
-
- Default API request rate
|
|
58
|
+
### API use instructions
|
|
59
|
+
- Go to [CMS console - AMS](https://console.cloud.tencent.com/cms) to activate AMS. For initial activation, you can enjoy **10 hours** of free call of the API within one month.
|
|
60
|
+
- Default limit of API request rate: **20 requests/s**. When this limit is exceeded, requests will automatically join the queue of requests pending moderation for async moderation tasks (audio on demand), while an error will be reported for sync moderation tasks (audio live streaming).
|
|
61
|
+
- Default limit of concurrent moderation tasks: 10 for audio on demand and 100 for audio live streaming. When this limit is exceeded, requests will automatically queue up for async moderation tasks (audio on demand), while an error will be reported for sync moderation tasks (audio live streaming).
|
|
61
62
|
|
|
62
|
-
### API feature description
|
|
63
|
-
-
|
|
64
|
-
- You can set the callback address (Callback) to get the detection result (for moderation tasks in progress, the maximum callback time is the configured **segment length + 2s). You can also call the API for querying the audio detection result to poll the detection result
|
|
65
|
-
-
|
|
66
|
-
- You can submit **up to 10** detection tasks at a time.
|
|
63
|
+
### API feature description
|
|
64
|
+
- This API can detect audio streams or files for non-compliant content.
|
|
65
|
+
- You can set the callback address (Callback) to get the detection result (for moderation tasks in progress, the maximum callback time is the configured **segment length + 2s**). You can also call the API for querying the audio detection result to actively poll the detection result.
|
|
66
|
+
- This API can recognize various types of non-compliant content, including vulgarity, abuse, porn, and advertising.
|
|
67
|
+
- You can submit **up to 10** detection tasks at a time.
|
|
67
68
|
|
|
68
69
|
|
|
69
|
-
### Call description for audio file
|
|
70
|
-
- Supported audio file size: **< 500 MB
|
|
71
|
-
- Supported audio file duration: **< 1 hour
|
|
72
|
-
- Supported audio bitrate: 128–256 Kbps
|
|
73
|
-
- Supported audio file formats: WAV, MP3, AAC, FLAC, AMR, 3GP, M4A, WMA, OGG, and APE
|
|
74
|
-
- **When the input is a video file**, the audio track can be extracted
|
|
70
|
+
### Call description for audio file
|
|
71
|
+
- Supported audio file size: **< 500 MB**
|
|
72
|
+
- Supported audio file duration: **< 1 hour**
|
|
73
|
+
- Supported audio bitrate: 128–256 Kbps
|
|
74
|
+
- Supported audio file formats: WAV, MP3, AAC, FLAC, AMR, 3GP, M4A, WMA, OGG, and APE
|
|
75
|
+
- **When the input is a video file**, the audio track can be extracted for separate audio content moderation.
|
|
75
76
|
|
|
76
|
-
### Call description for audio stream
|
|
77
|
-
- Supported audio stream duration: **< 3 hours
|
|
78
|
-
- Supported audio bitrate: 128–256 Kbps
|
|
79
|
-
- Supported audio stream transfer protocols: RTMP, HTTP, and HTTPS
|
|
80
|
-
- Supported audio stream formats: RTP, SRTP, RTMP, RTMPS, MMSH, MMST, HLS, HTTP, TCP, HTTPS, and M3U8
|
|
81
|
-
- **When the input is a video stream**, the audio track can be extracted
|
|
77
|
+
### Call description for audio stream
|
|
78
|
+
- Supported audio stream duration: **< 3 hours**
|
|
79
|
+
- Supported audio bitrate: 128–256 Kbps
|
|
80
|
+
- Supported audio stream transfer protocols: RTMP, HTTP, and HTTPS
|
|
81
|
+
- Supported audio stream formats: RTP, SRTP, RTMP, RTMPS, MMSH, MMST, HLS, HTTP, TCP, HTTPS, and M3U8
|
|
82
|
+
- **When the input is a video stream**, the audio track can be extracted for separate audio content moderation.
|
|
83
|
+
|
|
84
|
+
### Handling description for live streaming interruption
|
|
85
|
+
- Ensure that the [CancelTask API](https://intl.cloud.tencent.com/document/product/1219/53258?from_cn_redirect=1) is connected.
|
|
86
|
+
- If the live streaming task is canceled or completed, this API terminates live streaming pulling and exits moderation.
|
|
87
|
+
- If the live streaming task is not canceled or completed and audio live streaming pushing is interrupted due to a fault, this API continues to try live streaming pulling within 10 minutes. If audio segment data is detected within 10 minutes, this API restores normal moderation. Otherwise, this API terminates pulling and exits moderation. If you still need moderation after pulling terminates, submit a moderation request again.
|
|
82
88
|
* @param {CreateAudioModerationTaskRequest} req
|
|
83
89
|
* @param {function(string, CreateAudioModerationTaskResponse):void} cb
|
|
84
90
|
* @public
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.844";
|
|
2
2
|
module.exports = sdkVersion
|