tencentcloud-sdk-nodejs-intl-en 3.0.1279 → 3.0.1280
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 +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cvm/v20170312/cvm_client.js +0 -1
- package/tencentcloud/cvm/v20170312/models.js +30 -18
- package/tencentcloud/dbbrain/index.js +1 -1
- package/tencentcloud/mdl/v20200326/models.js +29 -1
- package/tencentcloud/mps/v20190612/models.js +1630 -476
- package/tencentcloud/mps/v20190612/mps_client.js +16 -3
- package/tencentcloud/sms/index.js +1 -1
- package/tencentcloud/tke/index.js +1 -1
- package/tencentcloud/vm/index.js +1 -1
- package/tencentcloud/vod/index.js +1 -1
- package/tencentcloud/vpc/v20170312/models.js +41 -26
- package/tencentcloud/vpc/v20170312/vpc_client.js +1 -2
- package/tencentcloud/wedata/index.js +1 -1
|
@@ -487,6 +487,101 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
+
/**
|
|
491
|
+
* Video (audio) recognition result.
|
|
492
|
+
* @class
|
|
493
|
+
*/
|
|
494
|
+
class AiAnalysisTaskVideoComprehensionResult extends AbstractModel {
|
|
495
|
+
constructor(){
|
|
496
|
+
super();
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Task status. Valid values: `PROCESSING`, `SUCCESS`, and `FAIL`.
|
|
500
|
+
* @type {string || null}
|
|
501
|
+
*/
|
|
502
|
+
this.Status = null;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Error code. 0: successful; other values: failed.
|
|
506
|
+
* @type {number || null}
|
|
507
|
+
*/
|
|
508
|
+
this.ErrCode = null;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Error message.
|
|
512
|
+
* @type {string || null}
|
|
513
|
+
*/
|
|
514
|
+
this.Message = null;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Input file for video (audio) recognition.
|
|
518
|
+
* @type {AiAnalysisTaskVideoComprehensionInput || null}
|
|
519
|
+
*/
|
|
520
|
+
this.Input = null;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Output file for video (audio) recognition.
|
|
524
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
525
|
+
* @type {AiAnalysisTaskVideoComprehensionOutput || null}
|
|
526
|
+
*/
|
|
527
|
+
this.Output = null;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Error code. A null string indicates that the task is successful, while other values indicate that the task has failed. For valid values, see the list of MPS error codes.
|
|
531
|
+
* @type {string || null}
|
|
532
|
+
*/
|
|
533
|
+
this.ErrCodeExt = null;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Task progress
|
|
537
|
+
* @type {number || null}
|
|
538
|
+
*/
|
|
539
|
+
this.Progress = null;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Starting time of task execution, in ISO date and time format.
|
|
543
|
+
* @type {string || null}
|
|
544
|
+
*/
|
|
545
|
+
this.BeginProcessTime = null;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Completion time of task execution, in ISO date and time format.
|
|
549
|
+
* @type {string || null}
|
|
550
|
+
*/
|
|
551
|
+
this.FinishTime = null;
|
|
552
|
+
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* @private
|
|
557
|
+
*/
|
|
558
|
+
deserialize(params) {
|
|
559
|
+
if (!params) {
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
563
|
+
this.ErrCode = 'ErrCode' in params ? params.ErrCode : null;
|
|
564
|
+
this.Message = 'Message' in params ? params.Message : null;
|
|
565
|
+
|
|
566
|
+
if (params.Input) {
|
|
567
|
+
let obj = new AiAnalysisTaskVideoComprehensionInput();
|
|
568
|
+
obj.deserialize(params.Input)
|
|
569
|
+
this.Input = obj;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
if (params.Output) {
|
|
573
|
+
let obj = new AiAnalysisTaskVideoComprehensionOutput();
|
|
574
|
+
obj.deserialize(params.Output)
|
|
575
|
+
this.Output = obj;
|
|
576
|
+
}
|
|
577
|
+
this.ErrCodeExt = 'ErrCodeExt' in params ? params.ErrCodeExt : null;
|
|
578
|
+
this.Progress = 'Progress' in params ? params.Progress : null;
|
|
579
|
+
this.BeginProcessTime = 'BeginProcessTime' in params ? params.BeginProcessTime : null;
|
|
580
|
+
this.FinishTime = 'FinishTime' in params ? params.FinishTime : null;
|
|
581
|
+
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
490
585
|
/**
|
|
491
586
|
* Custom specification parameters for video processing, which are used to override corresponding parameters in templates.
|
|
492
587
|
* @class
|
|
@@ -1644,6 +1739,84 @@ class AiReviewTaskProhibitedOcrResult extends AbstractModel {
|
|
|
1644
1739
|
}
|
|
1645
1740
|
}
|
|
1646
1741
|
|
|
1742
|
+
/**
|
|
1743
|
+
* Watermark removal configuration for the smart erasing template.
|
|
1744
|
+
* @class
|
|
1745
|
+
*/
|
|
1746
|
+
class UpdateSmartEraseWatermarkConfig extends AbstractModel {
|
|
1747
|
+
constructor(){
|
|
1748
|
+
super();
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* Watermark erasing method.
|
|
1752
|
+
**Automatic erasing: ** Video watermarks are automatically recognized using an AI model and are erased to generate a new video. It applies to dynamic watermarks.
|
|
1753
|
+
When automatic erasing is used, if AutoAreas is not specified, the full-screen video image area will be erased automatically. If AutoAreas is specified, the specified area will be erased automatically.
|
|
1754
|
+
**Specified area erasing: ** For static watermarks in fixed positions, you are recommended to specify the erasing area directly.When you choose specified area erasing, specify at least one area.
|
|
1755
|
+
- auto: automatic erasing.
|
|
1756
|
+
- custom: specified area erasing.
|
|
1757
|
+
* @type {string || null}
|
|
1758
|
+
*/
|
|
1759
|
+
this.WatermarkEraseMethod = null;
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* Watermark erasing model.
|
|
1763
|
+
Basic Edition: provide average effects and high cost performance. It applies to animations or videos with clean backgrounds.
|
|
1764
|
+
Advanced Edition: provide better effects. It applies to reality-style videos, such as short dramas.
|
|
1765
|
+
- basic: Basic Edition.
|
|
1766
|
+
- advanced: Advanced Edition.
|
|
1767
|
+
* @type {string || null}
|
|
1768
|
+
*/
|
|
1769
|
+
this.WatermarkModel = null;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Custom area for automatic erasing.
|
|
1773
|
+
For the specified area, AI models are used to automatically detect and erase the target objects.
|
|
1774
|
+
Note: When the erasing method is set to custom, this parameter is invalid. Input [] for the erasing area; if this parameter is unspecified, the template area information will remain unchanged.
|
|
1775
|
+
* @type {Array.<EraseArea> || null}
|
|
1776
|
+
*/
|
|
1777
|
+
this.AutoAreas = null;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* Custom area for specified area erasing.
|
|
1781
|
+
For the specified area, erase the target objects directly without detection and recognition within a selected time period.
|
|
1782
|
+
Note: Input [] for the erasing area; if this parameter is unspecified, the template area information will remain unchanged.
|
|
1783
|
+
* @type {Array.<EraseTimeArea> || null}
|
|
1784
|
+
*/
|
|
1785
|
+
this.CustomAreas = null;
|
|
1786
|
+
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* @private
|
|
1791
|
+
*/
|
|
1792
|
+
deserialize(params) {
|
|
1793
|
+
if (!params) {
|
|
1794
|
+
return;
|
|
1795
|
+
}
|
|
1796
|
+
this.WatermarkEraseMethod = 'WatermarkEraseMethod' in params ? params.WatermarkEraseMethod : null;
|
|
1797
|
+
this.WatermarkModel = 'WatermarkModel' in params ? params.WatermarkModel : null;
|
|
1798
|
+
|
|
1799
|
+
if (params.AutoAreas) {
|
|
1800
|
+
this.AutoAreas = new Array();
|
|
1801
|
+
for (let z in params.AutoAreas) {
|
|
1802
|
+
let obj = new EraseArea();
|
|
1803
|
+
obj.deserialize(params.AutoAreas[z]);
|
|
1804
|
+
this.AutoAreas.push(obj);
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
if (params.CustomAreas) {
|
|
1809
|
+
this.CustomAreas = new Array();
|
|
1810
|
+
for (let z in params.CustomAreas) {
|
|
1811
|
+
let obj = new EraseTimeArea();
|
|
1812
|
+
obj.deserialize(params.CustomAreas[z]);
|
|
1813
|
+
this.CustomAreas.push(obj);
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1647
1820
|
/**
|
|
1648
1821
|
* Full speech recognition result.
|
|
1649
1822
|
* @class
|
|
@@ -1852,6 +2025,18 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
1852
2025
|
*/
|
|
1853
2026
|
this.OutputStorage = null;
|
|
1854
2027
|
|
|
2028
|
+
/**
|
|
2029
|
+
* Subtitle file URL.
|
|
2030
|
+
* @type {string || null}
|
|
2031
|
+
*/
|
|
2032
|
+
this.Path = null;
|
|
2033
|
+
|
|
2034
|
+
/**
|
|
2035
|
+
* Returned translation result during multilingual translation.
|
|
2036
|
+
* @type {Array.<SubtitleTransResultItem> || null}
|
|
2037
|
+
*/
|
|
2038
|
+
this.SubtitleResults = null;
|
|
2039
|
+
|
|
1855
2040
|
}
|
|
1856
2041
|
|
|
1857
2042
|
/**
|
|
@@ -1877,6 +2062,16 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
1877
2062
|
obj.deserialize(params.OutputStorage)
|
|
1878
2063
|
this.OutputStorage = obj;
|
|
1879
2064
|
}
|
|
2065
|
+
this.Path = 'Path' in params ? params.Path : null;
|
|
2066
|
+
|
|
2067
|
+
if (params.SubtitleResults) {
|
|
2068
|
+
this.SubtitleResults = new Array();
|
|
2069
|
+
for (let z in params.SubtitleResults) {
|
|
2070
|
+
let obj = new SubtitleTransResultItem();
|
|
2071
|
+
obj.deserialize(params.SubtitleResults[z]);
|
|
2072
|
+
this.SubtitleResults.push(obj);
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
1880
2075
|
|
|
1881
2076
|
}
|
|
1882
2077
|
}
|
|
@@ -2984,6 +3179,12 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
2984
3179
|
*/
|
|
2985
3180
|
this.RawParameter = null;
|
|
2986
3181
|
|
|
3182
|
+
/**
|
|
3183
|
+
* Custom parameters for smart erasing. When the value of Definition is not 0, this parameter is valid. When certain erasing parameters in this structure are specified, the specified parameters will be used to overwrite those in the smart erasing template. This parameter is used in highly customized scenarios. It is recommended to use only Definition to specify smart erasing parameters.
|
|
3184
|
+
* @type {OverrideEraseParameter || null}
|
|
3185
|
+
*/
|
|
3186
|
+
this.OverrideParameter = null;
|
|
3187
|
+
|
|
2987
3188
|
/**
|
|
2988
3189
|
* Specifies the target storage for files. if left blank, it inherits the upper-level OutputStorage value.
|
|
2989
3190
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
@@ -3023,6 +3224,12 @@ Specifies the output path must end with `.{format}`. variable names, please refe
|
|
|
3023
3224
|
this.RawParameter = obj;
|
|
3024
3225
|
}
|
|
3025
3226
|
|
|
3227
|
+
if (params.OverrideParameter) {
|
|
3228
|
+
let obj = new OverrideEraseParameter();
|
|
3229
|
+
obj.deserialize(params.OverrideParameter)
|
|
3230
|
+
this.OverrideParameter = obj;
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3026
3233
|
if (params.OutputStorage) {
|
|
3027
3234
|
let obj = new TaskOutputStorage();
|
|
3028
3235
|
obj.deserialize(params.OutputStorage)
|
|
@@ -3682,14 +3889,14 @@ class VideoEnhanceConfig extends AbstractModel {
|
|
|
3682
3889
|
super();
|
|
3683
3890
|
|
|
3684
3891
|
/**
|
|
3685
|
-
* Frame interpolation configuration.
|
|
3892
|
+
* Frame rate configuration (old) for the frame interpolation. New users are recommended to use FrameRateWithDen for configuring the frame rate of frame interpolation, which supports fractions and provides better results. Note that FrameRate and FrameRateWithDen are mutually exclusive; configuring both simultaneously may cause task failures. The configuration does not take effect if the source frame rate is greater than or equal to the target frame rate.
|
|
3686
3893
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3687
3894
|
* @type {FrameRateConfig || null}
|
|
3688
3895
|
*/
|
|
3689
3896
|
this.FrameRate = null;
|
|
3690
3897
|
|
|
3691
3898
|
/**
|
|
3692
|
-
* Super
|
|
3899
|
+
* Super-resolution configuration. The video is not processed when the source resolution is higher than the target resolution. Note that it cannot be enabled simultaneously with Large Model enhancement.
|
|
3693
3900
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3694
3901
|
* @type {SuperResolutionConfig || null}
|
|
3695
3902
|
*/
|
|
@@ -3703,14 +3910,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3703
3910
|
this.Hdr = null;
|
|
3704
3911
|
|
|
3705
3912
|
/**
|
|
3706
|
-
*
|
|
3913
|
+
* Video noise reduction configuration. Note that it cannot be enabled simultaneously with LLM enhancement.
|
|
3707
3914
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3708
3915
|
* @type {VideoDenoiseConfig || null}
|
|
3709
3916
|
*/
|
|
3710
3917
|
this.Denoise = null;
|
|
3711
3918
|
|
|
3712
3919
|
/**
|
|
3713
|
-
*
|
|
3920
|
+
* Comprehensive enhancement configuration. Note that only one of the three items, LLM enhancement, comprehensive enhancement, and artifacts removal, can be configured.
|
|
3714
3921
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3715
3922
|
* @type {ImageQualityEnhanceConfig || null}
|
|
3716
3923
|
*/
|
|
@@ -3723,20 +3930,6 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3723
3930
|
*/
|
|
3724
3931
|
this.ColorEnhance = null;
|
|
3725
3932
|
|
|
3726
|
-
/**
|
|
3727
|
-
* Detail enhancement configuration.
|
|
3728
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3729
|
-
* @type {SharpEnhanceConfig || null}
|
|
3730
|
-
*/
|
|
3731
|
-
this.SharpEnhance = null;
|
|
3732
|
-
|
|
3733
|
-
/**
|
|
3734
|
-
* Face enhancement configuration.
|
|
3735
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3736
|
-
* @type {FaceEnhanceConfig || null}
|
|
3737
|
-
*/
|
|
3738
|
-
this.FaceEnhance = null;
|
|
3739
|
-
|
|
3740
3933
|
/**
|
|
3741
3934
|
* Low-light enhancement configuration.
|
|
3742
3935
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
@@ -3752,12 +3945,42 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3752
3945
|
this.ScratchRepair = null;
|
|
3753
3946
|
|
|
3754
3947
|
/**
|
|
3755
|
-
*
|
|
3948
|
+
* Artifacts removal configuration. Note that only one of the three items, LLM enhancement, comprehensive enhancement, and artifacts removal, can be configured.
|
|
3756
3949
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3757
3950
|
* @type {ArtifactRepairConfig || null}
|
|
3758
3951
|
*/
|
|
3759
3952
|
this.ArtifactRepair = null;
|
|
3760
3953
|
|
|
3954
|
+
/**
|
|
3955
|
+
* Enhancement scenario configuration. Valid values:
|
|
3956
|
+
<li>common: common enhancement parameters, which are basic optimization parameters suitable for various video types, enhancing overall image quality.</li>
|
|
3957
|
+
<li>AIGC: overall resolution enhancement. It uses AI technology to improve the overall video resolution and image clarity.</li>
|
|
3958
|
+
<li>short_play: enhance facial and subtitle details, emphasizing characters' facial expressions and subtitle clarity to improve the viewing experience.</li>
|
|
3959
|
+
<li>short_video: optimize complex and diverse image quality issues, tailoring quality enhancements for the complex scenarios such as short videos to address various visual issues.</li>
|
|
3960
|
+
<li>game: fix motion blur and enhance details, with a focus on enhancing the clarity of game details and restoring blurry areas during motions to make the image content during gaming clearer and richer.</li>
|
|
3961
|
+
<li>HD_movie_series: provide a smooth playback effect for UHD videos. Standard 4K HDR videos with an FPS of 60 are generated to meet the needs of broadcasting/OTT for UHD videos. Formats for broadcasting scenarios are supported.</li>
|
|
3962
|
+
<li>LQ_material: low-definition material/old video restoration. It enhances overall resolution, and solves issues of old videos, such as low resolution, blur, distortion, scratches, and color temperature due to their age.</li>
|
|
3963
|
+
<li>lecture: live shows, e-commerce, conferences, and lectures. It improves the face display effect and performs specific optimizations, including face region enhancement, noise reduction, and artifacts removal, for scenarios involving human explanation, such as live shows, e-commerce, conferences, and lectures.</li>
|
|
3964
|
+
<li>Input of a null string indicates that the enhancement scenario is not used.</li>
|
|
3965
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3966
|
+
* @type {string || null}
|
|
3967
|
+
*/
|
|
3968
|
+
this.EnhanceSceneType = null;
|
|
3969
|
+
|
|
3970
|
+
/**
|
|
3971
|
+
* Large Model enhancement configuration. Note that only one of the three items, LLM enhancement, comprehensive enhancement, and artifacts removal, can be configured. It cannot be enabled simultaneously with super-resolution and noise reduction.
|
|
3972
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3973
|
+
* @type {DiffusionEnhanceConfig || null}
|
|
3974
|
+
*/
|
|
3975
|
+
this.DiffusionEnhance = null;
|
|
3976
|
+
|
|
3977
|
+
/**
|
|
3978
|
+
* New frame rate configuration for the frame interpolation, which supports fractions. Note that it is mutually exclusive with FrameRate. The configuration does not take effect if the source frame rate is greater than or equal to the target frame rate.
|
|
3979
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3980
|
+
* @type {FrameRateWithDenConfig || null}
|
|
3981
|
+
*/
|
|
3982
|
+
this.FrameRateWithDen = null;
|
|
3983
|
+
|
|
3761
3984
|
}
|
|
3762
3985
|
|
|
3763
3986
|
/**
|
|
@@ -3804,18 +4027,6 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3804
4027
|
this.ColorEnhance = obj;
|
|
3805
4028
|
}
|
|
3806
4029
|
|
|
3807
|
-
if (params.SharpEnhance) {
|
|
3808
|
-
let obj = new SharpEnhanceConfig();
|
|
3809
|
-
obj.deserialize(params.SharpEnhance)
|
|
3810
|
-
this.SharpEnhance = obj;
|
|
3811
|
-
}
|
|
3812
|
-
|
|
3813
|
-
if (params.FaceEnhance) {
|
|
3814
|
-
let obj = new FaceEnhanceConfig();
|
|
3815
|
-
obj.deserialize(params.FaceEnhance)
|
|
3816
|
-
this.FaceEnhance = obj;
|
|
3817
|
-
}
|
|
3818
|
-
|
|
3819
4030
|
if (params.LowLightEnhance) {
|
|
3820
4031
|
let obj = new LowLightEnhanceConfig();
|
|
3821
4032
|
obj.deserialize(params.LowLightEnhance)
|
|
@@ -3833,6 +4044,19 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3833
4044
|
obj.deserialize(params.ArtifactRepair)
|
|
3834
4045
|
this.ArtifactRepair = obj;
|
|
3835
4046
|
}
|
|
4047
|
+
this.EnhanceSceneType = 'EnhanceSceneType' in params ? params.EnhanceSceneType : null;
|
|
4048
|
+
|
|
4049
|
+
if (params.DiffusionEnhance) {
|
|
4050
|
+
let obj = new DiffusionEnhanceConfig();
|
|
4051
|
+
obj.deserialize(params.DiffusionEnhance)
|
|
4052
|
+
this.DiffusionEnhance = obj;
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
if (params.FrameRateWithDen) {
|
|
4056
|
+
let obj = new FrameRateWithDenConfig();
|
|
4057
|
+
obj.deserialize(params.FrameRateWithDen)
|
|
4058
|
+
this.FrameRateWithDen = obj;
|
|
4059
|
+
}
|
|
3836
4060
|
|
|
3837
4061
|
}
|
|
3838
4062
|
}
|
|
@@ -4279,10 +4503,11 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
4279
4503
|
this.Bitrate = null;
|
|
4280
4504
|
|
|
4281
4505
|
/**
|
|
4282
|
-
*
|
|
4506
|
+
* Sampling rate of the audio stream. Different encoding standards support different sampling rate options. The value of 0 indicates using the sampling rate value of the source audio.
|
|
4507
|
+
For details, see [Supported Range of Audio Sampling Rate](https://www.tencentcloud.comom/document/product/862/77166?from_cn_redirect=1#f3b039f1-d817-4a96-b4e4-90132d31cd53).
|
|
4283
4508
|
Unit: Hz.
|
|
4284
|
-
|
|
4285
|
-
Note: This field may return null, indicating that no valid
|
|
4509
|
+
Note: Make sure that the sampling rate of the source audio stream is among the above options. Otherwise, transcoding may fail.
|
|
4510
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
4286
4511
|
* @type {number || null}
|
|
4287
4512
|
*/
|
|
4288
4513
|
this.SampleRate = null;
|
|
@@ -4793,41 +5018,78 @@ class AiAnalysisTaskFrameTagResult extends AbstractModel {
|
|
|
4793
5018
|
}
|
|
4794
5019
|
|
|
4795
5020
|
/**
|
|
4796
|
-
*
|
|
4797
|
-
|
|
4798
|
-
The figure below outlines the relationships among tracks, elements, and the timeline.
|
|
4799
|
-
|
|
4800
|
-

|
|
5021
|
+
* Audio stream configuration parameter
|
|
4801
5022
|
* @class
|
|
4802
5023
|
*/
|
|
4803
|
-
class
|
|
5024
|
+
class AudioTemplateInfo extends AbstractModel {
|
|
4804
5025
|
constructor(){
|
|
4805
5026
|
super();
|
|
4806
5027
|
|
|
4807
5028
|
/**
|
|
4808
|
-
*
|
|
4809
|
-
|
|
5029
|
+
* Specifies the encoding format of the audio stream.
|
|
5030
|
+
When audio transcoding is not needed, the optional values are:.
|
|
5031
|
+
<li>copy.</li>
|
|
5032
|
+
When the outer parameter Container is mp3, the valid values are:.
|
|
5033
|
+
<li>mp3.</li>
|
|
5034
|
+
When the outer parameter Container is ogg or flac, the valid values are:.
|
|
5035
|
+
<li>flac.</li>
|
|
5036
|
+
When the outer parameter Container is m4a, valid values are:.
|
|
5037
|
+
<li>aac;</li>
|
|
5038
|
+
<li>ac3.</li>
|
|
5039
|
+
When the outer parameter Container is mp4 or flv, valid values are:.
|
|
5040
|
+
<li>aac: more suitable for mp4;</li>.
|
|
5041
|
+
<li>mp3: more suitable for flv;</li>.
|
|
5042
|
+
<li>mp2.</li>
|
|
5043
|
+
When the outer parameter Container is hls, valid values are:.
|
|
5044
|
+
<li>aac;</li>
|
|
5045
|
+
<li>mp3;</li>
|
|
5046
|
+
<li>eac3: used when merging adaptive transcoding audio tracks.</li>.
|
|
5047
|
+
* @type {string || null}
|
|
4810
5048
|
*/
|
|
4811
|
-
this.
|
|
5049
|
+
this.Codec = null;
|
|
4812
5050
|
|
|
4813
5051
|
/**
|
|
4814
|
-
* The
|
|
4815
|
-
|
|
5052
|
+
* The bitrate of the audio stream. value ranges from 0 to 26 and in the range of [26, 256]. measurement unit: kbps.
|
|
5053
|
+
If the value is 0, the audio bitrate will be the same as that of the original audio.
|
|
5054
|
+
Specifies that when using the TrackChannelInfo parameter for adaptive transcoding audio track merging, the valid values are:.
|
|
5055
|
+
Cannot be set to 0.
|
|
5056
|
+
2). when Codec is aac, valid values: [26, 256].
|
|
5057
|
+
3). when Codec is ac3, valid values: [26, 640].
|
|
5058
|
+
4) when Codec is eac3, value range: [26, 6144]. remark: when SampleRate is 44100HZ, maximum value: 5644. when SampleRate is 48000HZ, maximum value: 6144.
|
|
5059
|
+
|
|
5060
|
+
|
|
5061
|
+
* @type {number || null}
|
|
4816
5062
|
*/
|
|
4817
|
-
this.
|
|
5063
|
+
this.Bitrate = null;
|
|
4818
5064
|
|
|
4819
5065
|
/**
|
|
4820
|
-
*
|
|
4821
|
-
|
|
5066
|
+
* Sampling rate of the audio stream. Different encoding standards support different sampling rate options. The value of 0 indicates using the sampling rate value of the source audio.
|
|
5067
|
+
For details, see [Supported Range of Audio Sampling Rate](https://www.tencentcloud.comom/document/product/862/77166?from_cn_redirect=1#f3b039f1-d817-4a96-b4e4-90132d31cd53).
|
|
5068
|
+
Unit: Hz.
|
|
5069
|
+
Note: Make sure that the sampling rate of the source audio stream is among the above options. Otherwise, transcoding may fail.
|
|
5070
|
+
* @type {number || null}
|
|
4822
5071
|
*/
|
|
4823
|
-
this.
|
|
5072
|
+
this.SampleRate = null;
|
|
4824
5073
|
|
|
4825
5074
|
/**
|
|
4826
|
-
*
|
|
4827
|
-
<
|
|
4828
|
-
|
|
5075
|
+
* Audio channel mode. Valid values:
|
|
5076
|
+
<li>1: mono-channel.</li>
|
|
5077
|
+
<li>2: dual-channel.</li>
|
|
5078
|
+
<li>6: 5.1 surround sound.
|
|
5079
|
+
<li>Default value: 2.
|
|
5080
|
+
When the container format is audio (flac, ogg, mp3, and m4a), the audio channel cannot be set to 5.1 surround sound.
|
|
5081
|
+
* @type {number || null}
|
|
4829
5082
|
*/
|
|
4830
|
-
this.
|
|
5083
|
+
this.AudioChannel = null;
|
|
5084
|
+
|
|
5085
|
+
/**
|
|
5086
|
+
* Merge audio track information.
|
|
5087
|
+
This field only takes effect in adaptive bitrate transcoding.
|
|
5088
|
+
|
|
5089
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
5090
|
+
* @type {AudioTrackChannelInfo || null}
|
|
5091
|
+
*/
|
|
5092
|
+
this.TrackChannelInfo = null;
|
|
4831
5093
|
|
|
4832
5094
|
}
|
|
4833
5095
|
|
|
@@ -4838,35 +5100,15 @@ class ComposeMediaConfig extends AbstractModel {
|
|
|
4838
5100
|
if (!params) {
|
|
4839
5101
|
return;
|
|
4840
5102
|
}
|
|
5103
|
+
this.Codec = 'Codec' in params ? params.Codec : null;
|
|
5104
|
+
this.Bitrate = 'Bitrate' in params ? params.Bitrate : null;
|
|
5105
|
+
this.SampleRate = 'SampleRate' in params ? params.SampleRate : null;
|
|
5106
|
+
this.AudioChannel = 'AudioChannel' in params ? params.AudioChannel : null;
|
|
4841
5107
|
|
|
4842
|
-
if (params.
|
|
4843
|
-
let obj = new
|
|
4844
|
-
obj.deserialize(params.
|
|
4845
|
-
this.
|
|
4846
|
-
}
|
|
4847
|
-
|
|
4848
|
-
if (params.Canvas) {
|
|
4849
|
-
let obj = new ComposeCanvas();
|
|
4850
|
-
obj.deserialize(params.Canvas)
|
|
4851
|
-
this.Canvas = obj;
|
|
4852
|
-
}
|
|
4853
|
-
|
|
4854
|
-
if (params.Styles) {
|
|
4855
|
-
this.Styles = new Array();
|
|
4856
|
-
for (let z in params.Styles) {
|
|
4857
|
-
let obj = new ComposeStyles();
|
|
4858
|
-
obj.deserialize(params.Styles[z]);
|
|
4859
|
-
this.Styles.push(obj);
|
|
4860
|
-
}
|
|
4861
|
-
}
|
|
4862
|
-
|
|
4863
|
-
if (params.Tracks) {
|
|
4864
|
-
this.Tracks = new Array();
|
|
4865
|
-
for (let z in params.Tracks) {
|
|
4866
|
-
let obj = new ComposeMediaTrack();
|
|
4867
|
-
obj.deserialize(params.Tracks[z]);
|
|
4868
|
-
this.Tracks.push(obj);
|
|
4869
|
-
}
|
|
5108
|
+
if (params.TrackChannelInfo) {
|
|
5109
|
+
let obj = new AudioTrackChannelInfo();
|
|
5110
|
+
obj.deserialize(params.TrackChannelInfo)
|
|
5111
|
+
this.TrackChannelInfo = obj;
|
|
4870
5112
|
}
|
|
4871
5113
|
|
|
4872
5114
|
}
|
|
@@ -5242,20 +5484,20 @@ When the value is 1.
|
|
|
5242
5484
|
1. StreamInfos.N.RemoveVideo=1
|
|
5243
5485
|
2. StreamInfos.N.RemoveAudio=0
|
|
5244
5486
|
3. StreamInfos.N.Video.Codec=copy
|
|
5487
|
+
|
|
5245
5488
|
When the value is 0.
|
|
5246
5489
|
1. StreamInfos.N.Video.Codec cannot be copy.
|
|
5247
5490
|
2. StreamInfos.N.Video.Fps cannot be null.
|
|
5248
5491
|
|
|
5249
5492
|
Note:
|
|
5250
|
-
|
|
5251
5493
|
This value only distinguishes template types. The task uses the values of RemoveAudio and RemoveVideo.
|
|
5252
5494
|
* @type {number || null}
|
|
5253
5495
|
*/
|
|
5254
5496
|
this.PureAudio = null;
|
|
5255
5497
|
|
|
5256
5498
|
/**
|
|
5257
|
-
*
|
|
5258
|
-
Note:
|
|
5499
|
+
* Sharding type. available values: <li>ts-segment: HLS+ts segment</li> <li>ts-byterange: HLS+ts byte range</li> <li>mp4-segment: HLS+mp4 segment</li> <li>mp4-byterange: HLS+mp4 byte range</li> <li>ts-packed-audio: ts+packed audio</li> <li>mp4-packed-audio: mp4+packed audio</li> default value: ts-segment.
|
|
5500
|
+
Note: the shard format of the adaptive bitrate stream is based on this field.
|
|
5259
5501
|
* @type {string || null}
|
|
5260
5502
|
*/
|
|
5261
5503
|
this.SegmentType = null;
|
|
@@ -5679,6 +5921,57 @@ class TextWatermarkTemplateInputForUpdate extends AbstractModel {
|
|
|
5679
5921
|
}
|
|
5680
5922
|
}
|
|
5681
5923
|
|
|
5924
|
+
/**
|
|
5925
|
+
* Subtitle translation output result.
|
|
5926
|
+
* @class
|
|
5927
|
+
*/
|
|
5928
|
+
class SubtitleTransResultItem extends AbstractModel {
|
|
5929
|
+
constructor(){
|
|
5930
|
+
super();
|
|
5931
|
+
|
|
5932
|
+
/**
|
|
5933
|
+
* Translation marker.
|
|
5934
|
+
- Success
|
|
5935
|
+
- Error
|
|
5936
|
+
* @type {string || null}
|
|
5937
|
+
*/
|
|
5938
|
+
this.Status = null;
|
|
5939
|
+
|
|
5940
|
+
/**
|
|
5941
|
+
* Source language (such as "en").
|
|
5942
|
+
* @type {string || null}
|
|
5943
|
+
*/
|
|
5944
|
+
this.TransSrc = null;
|
|
5945
|
+
|
|
5946
|
+
/**
|
|
5947
|
+
* Target language (such as "zh").
|
|
5948
|
+
* @type {string || null}
|
|
5949
|
+
*/
|
|
5950
|
+
this.TransDst = null;
|
|
5951
|
+
|
|
5952
|
+
/**
|
|
5953
|
+
* Subtitle file URL.
|
|
5954
|
+
* @type {string || null}
|
|
5955
|
+
*/
|
|
5956
|
+
this.Path = null;
|
|
5957
|
+
|
|
5958
|
+
}
|
|
5959
|
+
|
|
5960
|
+
/**
|
|
5961
|
+
* @private
|
|
5962
|
+
*/
|
|
5963
|
+
deserialize(params) {
|
|
5964
|
+
if (!params) {
|
|
5965
|
+
return;
|
|
5966
|
+
}
|
|
5967
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
5968
|
+
this.TransSrc = 'TransSrc' in params ? params.TransSrc : null;
|
|
5969
|
+
this.TransDst = 'TransDst' in params ? params.TransDst : null;
|
|
5970
|
+
this.Path = 'Path' in params ? params.Path : null;
|
|
5971
|
+
|
|
5972
|
+
}
|
|
5973
|
+
}
|
|
5974
|
+
|
|
5682
5975
|
/**
|
|
5683
5976
|
* The input parameter for OCR-based detection of sensitive information.
|
|
5684
5977
|
* @class
|
|
@@ -5881,8 +6174,8 @@ Default value: ON.
|
|
|
5881
6174
|
* Type. Valid values:
|
|
5882
6175
|
<li>HDR10</li>
|
|
5883
6176
|
<li>HLG</li>
|
|
5884
|
-
Default
|
|
5885
|
-
Note: The video encoding method should be
|
|
6177
|
+
Default value: HDR10.
|
|
6178
|
+
Note: The video encoding method should be h264 or h265.
|
|
5886
6179
|
Note: The video encoding bit depth is 10.
|
|
5887
6180
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
5888
6181
|
* @type {string || null}
|
|
@@ -6684,6 +6977,14 @@ class DescribeSmartSubtitleTemplatesRequest extends AbstractModel {
|
|
|
6684
6977
|
*/
|
|
6685
6978
|
this.Name = null;
|
|
6686
6979
|
|
|
6980
|
+
/**
|
|
6981
|
+
* Subtitle processing type.
|
|
6982
|
+
- 0: ASR recognition subtitle.
|
|
6983
|
+
- 1: pure subtitle translation.
|
|
6984
|
+
* @type {number || null}
|
|
6985
|
+
*/
|
|
6986
|
+
this.ProcessType = null;
|
|
6987
|
+
|
|
6687
6988
|
}
|
|
6688
6989
|
|
|
6689
6990
|
/**
|
|
@@ -6698,6 +6999,7 @@ class DescribeSmartSubtitleTemplatesRequest extends AbstractModel {
|
|
|
6698
6999
|
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
6699
7000
|
this.Type = 'Type' in params ? params.Type : null;
|
|
6700
7001
|
this.Name = 'Name' in params ? params.Name : null;
|
|
7002
|
+
this.ProcessType = 'ProcessType' in params ? params.ProcessType : null;
|
|
6701
7003
|
|
|
6702
7004
|
}
|
|
6703
7005
|
}
|
|
@@ -7359,6 +7661,76 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
7359
7661
|
}
|
|
7360
7662
|
}
|
|
7361
7663
|
|
|
7664
|
+
/**
|
|
7665
|
+
* Custom parameters for smart erasing.
|
|
7666
|
+
* @class
|
|
7667
|
+
*/
|
|
7668
|
+
class OverrideEraseParameter extends AbstractModel {
|
|
7669
|
+
constructor(){
|
|
7670
|
+
super();
|
|
7671
|
+
|
|
7672
|
+
/**
|
|
7673
|
+
* Erasing type.
|
|
7674
|
+
-subtitle: subtitle removal.
|
|
7675
|
+
-watermark: watermark removal.
|
|
7676
|
+
-privacy: privacy protection.
|
|
7677
|
+
* @type {string || null}
|
|
7678
|
+
*/
|
|
7679
|
+
this.EraseType = null;
|
|
7680
|
+
|
|
7681
|
+
/**
|
|
7682
|
+
* Subtitle erasing configuration.
|
|
7683
|
+
This field is required when the value of EraseType is subtitle.
|
|
7684
|
+
* @type {UpdateSmartEraseSubtitleConfig || null}
|
|
7685
|
+
*/
|
|
7686
|
+
this.EraseSubtitleConfig = null;
|
|
7687
|
+
|
|
7688
|
+
/**
|
|
7689
|
+
* Watermark erasing configuration.
|
|
7690
|
+
This field is required when the value of EraseType is watermark.
|
|
7691
|
+
* @type {UpdateSmartEraseWatermarkConfig || null}
|
|
7692
|
+
*/
|
|
7693
|
+
this.EraseWatermarkConfig = null;
|
|
7694
|
+
|
|
7695
|
+
/**
|
|
7696
|
+
* Privacy protection configuration.
|
|
7697
|
+
This field is required when the value of EraseType is privacy.
|
|
7698
|
+
* @type {UpdateSmartErasePrivacyConfig || null}
|
|
7699
|
+
*/
|
|
7700
|
+
this.ErasePrivacyConfig = null;
|
|
7701
|
+
|
|
7702
|
+
}
|
|
7703
|
+
|
|
7704
|
+
/**
|
|
7705
|
+
* @private
|
|
7706
|
+
*/
|
|
7707
|
+
deserialize(params) {
|
|
7708
|
+
if (!params) {
|
|
7709
|
+
return;
|
|
7710
|
+
}
|
|
7711
|
+
this.EraseType = 'EraseType' in params ? params.EraseType : null;
|
|
7712
|
+
|
|
7713
|
+
if (params.EraseSubtitleConfig) {
|
|
7714
|
+
let obj = new UpdateSmartEraseSubtitleConfig();
|
|
7715
|
+
obj.deserialize(params.EraseSubtitleConfig)
|
|
7716
|
+
this.EraseSubtitleConfig = obj;
|
|
7717
|
+
}
|
|
7718
|
+
|
|
7719
|
+
if (params.EraseWatermarkConfig) {
|
|
7720
|
+
let obj = new UpdateSmartEraseWatermarkConfig();
|
|
7721
|
+
obj.deserialize(params.EraseWatermarkConfig)
|
|
7722
|
+
this.EraseWatermarkConfig = obj;
|
|
7723
|
+
}
|
|
7724
|
+
|
|
7725
|
+
if (params.ErasePrivacyConfig) {
|
|
7726
|
+
let obj = new UpdateSmartErasePrivacyConfig();
|
|
7727
|
+
obj.deserialize(params.ErasePrivacyConfig)
|
|
7728
|
+
this.ErasePrivacyConfig = obj;
|
|
7729
|
+
}
|
|
7730
|
+
|
|
7731
|
+
}
|
|
7732
|
+
}
|
|
7733
|
+
|
|
7362
7734
|
/**
|
|
7363
7735
|
* Text watermarking template
|
|
7364
7736
|
* @class
|
|
@@ -10025,6 +10397,55 @@ Note: If this parameter is not empty, the task is a video compositing task. Othe
|
|
|
10025
10397
|
}
|
|
10026
10398
|
}
|
|
10027
10399
|
|
|
10400
|
+
/**
|
|
10401
|
+
* Detailed output result of translation.
|
|
10402
|
+
* @class
|
|
10403
|
+
*/
|
|
10404
|
+
class PureSubtitleTransResultOutput extends AbstractModel {
|
|
10405
|
+
constructor(){
|
|
10406
|
+
super();
|
|
10407
|
+
|
|
10408
|
+
/**
|
|
10409
|
+
* Storage location of the subtitle file.
|
|
10410
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
10411
|
+
* @type {TaskOutputStorage || null}
|
|
10412
|
+
*/
|
|
10413
|
+
this.OutputStorage = null;
|
|
10414
|
+
|
|
10415
|
+
/**
|
|
10416
|
+
* Result set of multilingual translation.
|
|
10417
|
+
* @type {Array.<SubtitleTransResultItem> || null}
|
|
10418
|
+
*/
|
|
10419
|
+
this.SubtitleResults = null;
|
|
10420
|
+
|
|
10421
|
+
}
|
|
10422
|
+
|
|
10423
|
+
/**
|
|
10424
|
+
* @private
|
|
10425
|
+
*/
|
|
10426
|
+
deserialize(params) {
|
|
10427
|
+
if (!params) {
|
|
10428
|
+
return;
|
|
10429
|
+
}
|
|
10430
|
+
|
|
10431
|
+
if (params.OutputStorage) {
|
|
10432
|
+
let obj = new TaskOutputStorage();
|
|
10433
|
+
obj.deserialize(params.OutputStorage)
|
|
10434
|
+
this.OutputStorage = obj;
|
|
10435
|
+
}
|
|
10436
|
+
|
|
10437
|
+
if (params.SubtitleResults) {
|
|
10438
|
+
this.SubtitleResults = new Array();
|
|
10439
|
+
for (let z in params.SubtitleResults) {
|
|
10440
|
+
let obj = new SubtitleTransResultItem();
|
|
10441
|
+
obj.deserialize(params.SubtitleResults[z]);
|
|
10442
|
+
this.SubtitleResults.push(obj);
|
|
10443
|
+
}
|
|
10444
|
+
}
|
|
10445
|
+
|
|
10446
|
+
}
|
|
10447
|
+
}
|
|
10448
|
+
|
|
10028
10449
|
/**
|
|
10029
10450
|
* DeleteAsrHotwords request structure.
|
|
10030
10451
|
* @class
|
|
@@ -11490,10 +11911,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
11490
11911
|
this.Vcrf = null;
|
|
11491
11912
|
|
|
11492
11913
|
/**
|
|
11493
|
-
* Average
|
|
11494
|
-
|
|
11495
|
-
Note:
|
|
11496
|
-
Note: This field may return null, indicating that no valid value can be obtained.
|
|
11914
|
+
* Average shard duration. value range: (0-10], unit: second.
|
|
11915
|
+
Leaving it blank means auto, which automatically chooses the appropriate segment duration based on video features such as GOP.
|
|
11916
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
11497
11917
|
* @type {number || null}
|
|
11498
11918
|
*/
|
|
11499
11919
|
this.HlsTime = null;
|
|
@@ -11639,12 +12059,13 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
11639
12059
|
|
|
11640
12060
|
/**
|
|
11641
12061
|
* Video scenario. Valid values:
|
|
11642
|
-
normal: General transcoding scenario
|
|
11643
|
-
pgc: PGC HD TV shows and movies
|
|
11644
|
-
materials_video: HD materials
|
|
11645
|
-
ugc: UGC content
|
|
11646
|
-
e-commerce_video
|
|
11647
|
-
educational_video
|
|
12062
|
+
- normal: General transcoding scenario. General transcoding and compression scenario.
|
|
12063
|
+
- pgc: PGC HD TV shows and movies. At the time of compression, focus is placed on the viewing experience of TV shows and movies and ROI encoding is performed according to their characteristics, while high-quality contents of videos and audio are retained.
|
|
12064
|
+
- materials_video: HD materials. Scenario involving material resources, where requirements for image quality are extremely high and there are many transparent images, with almost no visual loss during compression.
|
|
12065
|
+
- ugc: UGC content. It is suitable for a wide range of UGC/short video scenarios, with an optimized encoding bitrate for short video characteristics, improved image quality, and enhanced business QOS/QOE metrics.
|
|
12066
|
+
- e-commerce_video. Fashion show/e-commerce: At the time of compression, emphasis is placed on detail clarity and ROI enhancement, with a particular focus on maintaining the image quality of the face region.
|
|
12067
|
+
- educational_video. Education. At the time of compression, emphasis is placed on the clarity and readability of text and images to help students better understand the content, ensuring that the teaching content is clearly conveyed.
|
|
12068
|
+
|
|
11648
12069
|
Default value: normal.
|
|
11649
12070
|
Note: To use this value, the value of ScenarioBased must be 1; otherwise, this value will not take effect.
|
|
11650
12071
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
@@ -11654,10 +12075,11 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
11654
12075
|
|
|
11655
12076
|
/**
|
|
11656
12077
|
* Transcoding policy. Valid values:
|
|
11657
|
-
ultra_compress: Extreme compression
|
|
11658
|
-
standard_compress: Comprehensively optimal
|
|
11659
|
-
high_compress: Bitrate priority
|
|
11660
|
-
low_compress: Image quality priority
|
|
12078
|
+
- ultra_compress: Extreme compression. Compared to standard compression, this policy can maximize bitrate compression while ensuring a certain level of image quality, thus greatly saving bandwidth and storage costs.
|
|
12079
|
+
- standard_compress: Comprehensively optimal. Balances compression ratio and image quality, compressing files as much as possible without a noticeable reduction in subjective image quality. Only audio and video TSC transcoding fees are charged for this policy.
|
|
12080
|
+
- high_compress: Bitrate priority. Prioritizes reducing file size, which may result in certain image quality loss. Only audio and video TSC transcoding fees are charged for this policy.
|
|
12081
|
+
- low_compress: Image quality priority. Prioritizes ensuring image quality, and the size of compressed files may be relatively large. Only audio and video TSC transcoding fees are charged for this policy.
|
|
12082
|
+
|
|
11661
12083
|
Default value: standard_compress.
|
|
11662
12084
|
Note: If you need to watch videos on TV, it is recommended not to use the ultra_compress policy. The billing standard for the ultra_compress policy is TSC transcoding + audio and video enhancement - artifacts removal.
|
|
11663
12085
|
Note: To use this value, the value of ScenarioBased must be 1; otherwise, this value will not take effect.
|
|
@@ -13325,6 +13747,90 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
13325
13747
|
}
|
|
13326
13748
|
}
|
|
13327
13749
|
|
|
13750
|
+
/**
|
|
13751
|
+
* Translation result of pure subtitle files.
|
|
13752
|
+
* @class
|
|
13753
|
+
*/
|
|
13754
|
+
class PureSubtitleTransResult extends AbstractModel {
|
|
13755
|
+
constructor(){
|
|
13756
|
+
super();
|
|
13757
|
+
|
|
13758
|
+
/**
|
|
13759
|
+
* Task status (the three valid values are as follows):
|
|
13760
|
+
- PROCESSING
|
|
13761
|
+
- SUCCESS
|
|
13762
|
+
- FAIL
|
|
13763
|
+
* @type {string || null}
|
|
13764
|
+
*/
|
|
13765
|
+
this.Status = null;
|
|
13766
|
+
|
|
13767
|
+
/**
|
|
13768
|
+
* Error code. A null string indicates that the task is successful, while other values indicate that the task has failed. For valid values, see the list of Media Processing Service (MPS) error codes.
|
|
13769
|
+
* @type {string || null}
|
|
13770
|
+
*/
|
|
13771
|
+
this.ErrCodeExt = null;
|
|
13772
|
+
|
|
13773
|
+
/**
|
|
13774
|
+
* Error code. 0 indicates that the task is successful, and other values indicate that the task has failed. (This field is not recommended. Use the new error code field ErrCodeExt instead.)
|
|
13775
|
+
* @type {number || null}
|
|
13776
|
+
*/
|
|
13777
|
+
this.ErrCode = null;
|
|
13778
|
+
|
|
13779
|
+
/**
|
|
13780
|
+
* Error message
|
|
13781
|
+
* @type {string || null}
|
|
13782
|
+
*/
|
|
13783
|
+
this.Message = null;
|
|
13784
|
+
|
|
13785
|
+
/**
|
|
13786
|
+
* Translation task input information.
|
|
13787
|
+
* @type {SmartSubtitleTaskResultInput || null}
|
|
13788
|
+
*/
|
|
13789
|
+
this.Input = null;
|
|
13790
|
+
|
|
13791
|
+
/**
|
|
13792
|
+
* Translation output result of pure subtitle files.
|
|
13793
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
13794
|
+
* @type {PureSubtitleTransResultOutput || null}
|
|
13795
|
+
*/
|
|
13796
|
+
this.Output = null;
|
|
13797
|
+
|
|
13798
|
+
/**
|
|
13799
|
+
* Task progress.
|
|
13800
|
+
* @type {number || null}
|
|
13801
|
+
*/
|
|
13802
|
+
this.Progress = null;
|
|
13803
|
+
|
|
13804
|
+
}
|
|
13805
|
+
|
|
13806
|
+
/**
|
|
13807
|
+
* @private
|
|
13808
|
+
*/
|
|
13809
|
+
deserialize(params) {
|
|
13810
|
+
if (!params) {
|
|
13811
|
+
return;
|
|
13812
|
+
}
|
|
13813
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
13814
|
+
this.ErrCodeExt = 'ErrCodeExt' in params ? params.ErrCodeExt : null;
|
|
13815
|
+
this.ErrCode = 'ErrCode' in params ? params.ErrCode : null;
|
|
13816
|
+
this.Message = 'Message' in params ? params.Message : null;
|
|
13817
|
+
|
|
13818
|
+
if (params.Input) {
|
|
13819
|
+
let obj = new SmartSubtitleTaskResultInput();
|
|
13820
|
+
obj.deserialize(params.Input)
|
|
13821
|
+
this.Input = obj;
|
|
13822
|
+
}
|
|
13823
|
+
|
|
13824
|
+
if (params.Output) {
|
|
13825
|
+
let obj = new PureSubtitleTransResultOutput();
|
|
13826
|
+
obj.deserialize(params.Output)
|
|
13827
|
+
this.Output = obj;
|
|
13828
|
+
}
|
|
13829
|
+
this.Progress = 'Progress' in params ? params.Progress : null;
|
|
13830
|
+
|
|
13831
|
+
}
|
|
13832
|
+
}
|
|
13833
|
+
|
|
13328
13834
|
/**
|
|
13329
13835
|
* Result information of intelligent tagging
|
|
13330
13836
|
* @class
|
|
@@ -14541,74 +15047,91 @@ The value can only be 0 when TranslateSwitch is set to OFF. The value can only b
|
|
|
14541
15047
|
this.SubtitleType = null;
|
|
14542
15048
|
|
|
14543
15049
|
/**
|
|
14544
|
-
*
|
|
14545
|
-
|
|
14546
|
-
zh
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
15050
|
+
* Source language of the video with smart subtitles.
|
|
15051
|
+
Currently, the following languages are supported:
|
|
15052
|
+
`zh`: Simplified Chinese.
|
|
15053
|
+
`yue`: Cantonese.
|
|
15054
|
+
`zh-PY`: Chinese, English, and Cantonese.
|
|
15055
|
+
`zh_medical`: Chinese (medical scenario).
|
|
15056
|
+
`zh_dialect`: Chinese dialect.
|
|
15057
|
+
`prime_zh`: Chinese, English, and Chinese dialects.
|
|
15058
|
+
`zh_en`: Chinese and English.
|
|
15059
|
+
`en`: English.
|
|
15060
|
+
`ja`: Japanese.
|
|
15061
|
+
`ko`: Korean.
|
|
15062
|
+
`fr`: French.
|
|
15063
|
+
`es`: Spanish.
|
|
15064
|
+
`it`: Italian.
|
|
15065
|
+
`de`: German.
|
|
15066
|
+
`tr`: Turkish.
|
|
15067
|
+
`ru`: Russian.
|
|
15068
|
+
`pt`: Portuguese (Brazil).
|
|
15069
|
+
`pt-PT`: Portuguese (Portugal).
|
|
15070
|
+
`vi`: Vietnamese.
|
|
15071
|
+
`id`: Indonesian.
|
|
15072
|
+
`ms`: Malay.
|
|
15073
|
+
`th`: Thai.
|
|
15074
|
+
`ar`: Arabic.
|
|
15075
|
+
`hi`: Hindi.
|
|
15076
|
+
`fil`: Filipino.
|
|
15077
|
+
`auto`: automatic recognition (it is only supported in pure subtitle translation).
|
|
14568
15078
|
* @type {string || null}
|
|
14569
15079
|
*/
|
|
14570
15080
|
this.VideoSrcLanguage = null;
|
|
14571
15081
|
|
|
14572
15082
|
/**
|
|
14573
|
-
*
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
15083
|
+
* Smart subtitle file format:
|
|
15084
|
+
- Under the ASR recognition and translation processing type:
|
|
15085
|
+
-vtt: WebVTT format subtitle.
|
|
15086
|
+
-srt: SRT format subtitle.
|
|
15087
|
+
- If this field is unspecified or left blank, no subtitle file will be generated.
|
|
15088
|
+
- Under the pure subtitle translation processing type:
|
|
15089
|
+
- original: consistent with the source file.
|
|
15090
|
+
- vtt: WebVTT format subtitle.
|
|
15091
|
+
- srt: SRT format subtitle.
|
|
15092
|
+
**Note**:
|
|
15093
|
+
- For ASR recognition mode, when 2 or more languages are involved in translation, this field cannot be unspecified or left blank.
|
|
15094
|
+
- For pure subtitle translation mode, this field cannot be unspecified or left blank.
|
|
15095
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
14577
15096
|
* @type {string || null}
|
|
14578
15097
|
*/
|
|
14579
15098
|
this.SubtitleFormat = null;
|
|
14580
15099
|
|
|
14581
15100
|
/**
|
|
14582
15101
|
* Subtitle translation switch.
|
|
14583
|
-
ON
|
|
14584
|
-
OFF
|
|
14585
|
-
Note
|
|
15102
|
+
`ON`: translation enabled.
|
|
15103
|
+
`OFF`: translation disabled.
|
|
15104
|
+
**Note**: For pure subtitle translation mode, the default value is enabled if the field is unspecified. The field cannot be left blank or set to `OFF`.
|
|
15105
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
14586
15106
|
* @type {string || null}
|
|
14587
15107
|
*/
|
|
14588
15108
|
this.TranslateSwitch = null;
|
|
14589
15109
|
|
|
14590
15110
|
/**
|
|
14591
15111
|
* Target language for subtitle translation.
|
|
14592
|
-
This field
|
|
14593
|
-
|
|
14594
|
-
zh
|
|
14595
|
-
en
|
|
14596
|
-
ja
|
|
14597
|
-
ko
|
|
14598
|
-
fr
|
|
14599
|
-
es
|
|
14600
|
-
it
|
|
14601
|
-
de
|
|
14602
|
-
tr
|
|
14603
|
-
ru
|
|
14604
|
-
pt
|
|
14605
|
-
|
|
14606
|
-
|
|
14607
|
-
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
-
|
|
14611
|
-
|
|
15112
|
+
This field is valid when the value of TranslateSwitch is ON. List of translation languages:
|
|
15113
|
+
`zh`: Simplified Chinese.
|
|
15114
|
+
`zh-TW`: Traditional Chinese.
|
|
15115
|
+
`en`: English.
|
|
15116
|
+
`ja`: Japanese.
|
|
15117
|
+
`ko`: Korean.
|
|
15118
|
+
`fr`: French.
|
|
15119
|
+
`es`: Spanish.
|
|
15120
|
+
`it`: Italian.
|
|
15121
|
+
`de`: German.
|
|
15122
|
+
`tr`: Turkish.
|
|
15123
|
+
`ru`: Russian.
|
|
15124
|
+
`pt`: Portuguese (Brazil).
|
|
15125
|
+
`pt-PT`: Portuguese (Portugal).
|
|
15126
|
+
`vi`: Vietnamese.
|
|
15127
|
+
`id`: Indonesian.
|
|
15128
|
+
`ms`: Malay.
|
|
15129
|
+
`th`: Thai.
|
|
15130
|
+
`ar`: Arabic.
|
|
15131
|
+
`hi`: Hindi.
|
|
15132
|
+
`fil`: Filipino.
|
|
15133
|
+
**Note**: Use `/` to separate multiple languages, such as `en/ja`, which indicates English and Japanese.
|
|
15134
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
14612
15135
|
* @type {string || null}
|
|
14613
15136
|
*/
|
|
14614
15137
|
this.TranslateDstLanguage = null;
|
|
@@ -14626,6 +15149,15 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
14626
15149
|
*/
|
|
14627
15150
|
this.ExtInfo = null;
|
|
14628
15151
|
|
|
15152
|
+
/**
|
|
15153
|
+
* Subtitle processing type.
|
|
15154
|
+
- 0: ASR recognition subtitle.
|
|
15155
|
+
- 1: pure subtitle translation.
|
|
15156
|
+
**Note**: The default processing type is ASR recognition subtitle if the field is unspecified.
|
|
15157
|
+
* @type {number || null}
|
|
15158
|
+
*/
|
|
15159
|
+
this.ProcessType = null;
|
|
15160
|
+
|
|
14629
15161
|
}
|
|
14630
15162
|
|
|
14631
15163
|
/**
|
|
@@ -14647,6 +15179,7 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
14647
15179
|
this.AsrHotWordsConfigure = obj;
|
|
14648
15180
|
}
|
|
14649
15181
|
this.ExtInfo = 'ExtInfo' in params ? params.ExtInfo : null;
|
|
15182
|
+
this.ProcessType = 'ProcessType' in params ? params.ProcessType : null;
|
|
14650
15183
|
|
|
14651
15184
|
}
|
|
14652
15185
|
}
|
|
@@ -16122,25 +16655,23 @@ class VideoTemplateInfoForUpdate extends AbstractModel {
|
|
|
16122
16655
|
super();
|
|
16123
16656
|
|
|
16124
16657
|
/**
|
|
16125
|
-
* Encoding format for video streams.
|
|
16126
|
-
<
|
|
16127
|
-
<
|
|
16128
|
-
<
|
|
16129
|
-
<li>av1: AOMedia Video 1 encoding</li
|
|
16130
|
-
<li>vp8:
|
|
16131
|
-
<li>vp9:
|
|
16132
|
-
<li>mpeg2:
|
|
16133
|
-
<li>dnxhd:
|
|
16134
|
-
<li>mv-hevc:
|
|
16135
|
-
|
|
16136
|
-
Note:
|
|
16137
|
-
AV1 encoding containers currently only support mp4, webm, and mkv.
|
|
16138
|
-
H.266 encoding containers currently only support mp4, hls, ts, and mov.
|
|
16139
|
-
VP8 and VP9 encoding containers currently only support webm and mkv.
|
|
16140
|
-
MPEG2 and DNxHD encoding containers currently only support mxf.
|
|
16141
|
-
MV-HEVC encoding containers only support mp4, hls, and mov. Also, the hls format only supports mp4 segmentation format.
|
|
16658
|
+
* Encoding format for video streams. valid values:.
|
|
16659
|
+
<Li>H264: h.264 encoding.</li>.
|
|
16660
|
+
<Li>H265: h.265 encoding.</li>.
|
|
16661
|
+
<Li>H266: h.266 encoding.</li>.
|
|
16662
|
+
<li>av1: AOMedia Video 1 encoding</li>.
|
|
16663
|
+
<li>vp8: vp8 encoding.</li>.
|
|
16664
|
+
<li>vp9: vp9 encoding.</li>.
|
|
16665
|
+
<li>mpeg2: mpeg2 encoding.</li>.
|
|
16666
|
+
<li>dnxhd: specifies dnxhd encoding.</li>.
|
|
16667
|
+
<li>mv-hevc: mv-hevc encoding.</li>.
|
|
16142
16668
|
|
|
16143
|
-
Note:
|
|
16669
|
+
Note: the av1 encoding container currently only supports mp4, webm, and mkv.
|
|
16670
|
+
Note: H.266 encoding containers currently only support mp4, hls, ts, and mov.
|
|
16671
|
+
Note: VP8 and VP9 encoding containers currently only support webm and mkv.
|
|
16672
|
+
Note: MPEG2 and dnxhd encoding containers currently only support mxf.
|
|
16673
|
+
Note: MV-HEVC encoding containers currently only support mp4, hls, and mov. among them, the hls format supports only mp4 segmentation format and requires the input source to be a panoramic video (with multi-perspective).
|
|
16674
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
16144
16675
|
* @type {string || null}
|
|
16145
16676
|
*/
|
|
16146
16677
|
this.Codec = null;
|
|
@@ -16395,11 +16926,13 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
16395
16926
|
|
|
16396
16927
|
/**
|
|
16397
16928
|
* Video scenario. Valid values:
|
|
16398
|
-
normal: General transcoding scenario
|
|
16399
|
-
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
|
|
16929
|
+
- normal: General transcoding scenario. General transcoding and compression scenario.
|
|
16930
|
+
- pgc: PGC HD TV shows and movies. At the time of compression, focus is placed on the viewing experience of TV shows and movies and ROI encoding is performed according to their characteristics, while high-quality contents of videos and audio are retained.
|
|
16931
|
+
- materials_video: HD materials. Scenario involving material resources, where requirements for image quality are extremely high and there are many transparent images, with almost no visual loss during compression.
|
|
16932
|
+
- ugc: UGC content. It is suitable for a wide range of UGC/short video scenarios, with an optimized encoding bitrate for short video characteristics, improved image quality, and enhanced business QOS/QOE metrics.
|
|
16933
|
+
- e-commerce_video. Fashion show/e-commerce: At the time of compression, emphasis is placed on detail clarity and ROI enhancement, with a particular focus on maintaining the image quality of the face region.
|
|
16934
|
+
- educational_video. Education. At the time of compression, emphasis is placed on the clarity and readability of text and images to help students better understand the content, ensuring that the teaching content is clearly conveyed.
|
|
16935
|
+
|
|
16403
16936
|
Default value: normal.
|
|
16404
16937
|
Note: To use this value, the value of ScenarioBased must be 1; otherwise, this value will not take effect.
|
|
16405
16938
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
@@ -16409,10 +16942,11 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
16409
16942
|
|
|
16410
16943
|
/**
|
|
16411
16944
|
* Transcoding policy. Valid values:
|
|
16412
|
-
ultra_compress: Extreme compression
|
|
16413
|
-
standard_compress: Comprehensively optimal
|
|
16414
|
-
high_compress: Bitrate priority
|
|
16415
|
-
low_compress: Image quality priority
|
|
16945
|
+
- ultra_compress: Extreme compression. Compared to standard compression, this policy can maximize bitrate compression while ensuring a certain level of image quality, thus greatly saving bandwidth and storage costs.
|
|
16946
|
+
- standard_compress: Comprehensively optimal. Balances compression ratio and image quality, compressing files as much as possible without a noticeable reduction in subjective image quality. Only audio and video TSC transcoding fees are charged for this policy.
|
|
16947
|
+
- high_compress: Bitrate priority. Prioritizes reducing file size, which may result in certain image quality loss. Only audio and video TSC transcoding fees are charged for this policy.
|
|
16948
|
+
- low_compress: Image quality priority. Prioritizes ensuring image quality, and the size of compressed files may be relatively large. Only audio and video TSC transcoding fees are charged for this policy.
|
|
16949
|
+
|
|
16416
16950
|
Default value: standard_compress.
|
|
16417
16951
|
Note: If you need to watch videos on TV, it is recommended not to use the ultra_compress policy. The billing standard for the ultra_compress policy is TSC transcoding + audio and video enhancement - artifacts removal.
|
|
16418
16952
|
Note: To use this value, the value of ScenarioBased must be 1; otherwise, this value will not take effect.
|
|
@@ -17340,6 +17874,83 @@ class ComposeMediaItem extends AbstractModel {
|
|
|
17340
17874
|
}
|
|
17341
17875
|
}
|
|
17342
17876
|
|
|
17877
|
+
/**
|
|
17878
|
+
* Super-resolution configuration.
|
|
17879
|
+
* @class
|
|
17880
|
+
*/
|
|
17881
|
+
class AdvancedSuperResolutionConfig extends AbstractModel {
|
|
17882
|
+
constructor(){
|
|
17883
|
+
super();
|
|
17884
|
+
|
|
17885
|
+
/**
|
|
17886
|
+
* Capability configuration switch. Valid values:
|
|
17887
|
+
<li>ON: enabled.</li>
|
|
17888
|
+
<li>OFF: disabled.</li>
|
|
17889
|
+
Default value: ON.
|
|
17890
|
+
* @type {string || null}
|
|
17891
|
+
*/
|
|
17892
|
+
this.Switch = null;
|
|
17893
|
+
|
|
17894
|
+
/**
|
|
17895
|
+
* Type. Valid values:
|
|
17896
|
+
<li>standard: standard super-resolution.</li>
|
|
17897
|
+
<li>super: advanced super-resolution.</li>
|
|
17898
|
+
Default value: standard.
|
|
17899
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
17900
|
+
* @type {string || null}
|
|
17901
|
+
*/
|
|
17902
|
+
this.Type = null;
|
|
17903
|
+
|
|
17904
|
+
/**
|
|
17905
|
+
* Image output mode. The default value is percent.
|
|
17906
|
+
<li>aspect: obtain a larger rectangle with specified width and height through super-resolution.</li>
|
|
17907
|
+
<li>fixed: obtain images of fixed width and height through super-resolution, with forced scaling supported.</li>
|
|
17908
|
+
<li>percent: magnification factor of super-resolution, which can be a decimal.</li>
|
|
17909
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
17910
|
+
* @type {string || null}
|
|
17911
|
+
*/
|
|
17912
|
+
this.Mode = null;
|
|
17913
|
+
|
|
17914
|
+
/**
|
|
17915
|
+
* Magnification factor of super-resolution, which can be a decimal.
|
|
17916
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
17917
|
+
* @type {number || null}
|
|
17918
|
+
*/
|
|
17919
|
+
this.Percent = null;
|
|
17920
|
+
|
|
17921
|
+
/**
|
|
17922
|
+
* Width of the target image. The value cannot exceed 4096.
|
|
17923
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
17924
|
+
* @type {number || null}
|
|
17925
|
+
*/
|
|
17926
|
+
this.Width = null;
|
|
17927
|
+
|
|
17928
|
+
/**
|
|
17929
|
+
* Height of the target image. The value cannot exceed 4096.
|
|
17930
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
17931
|
+
* @type {number || null}
|
|
17932
|
+
*/
|
|
17933
|
+
this.Height = null;
|
|
17934
|
+
|
|
17935
|
+
}
|
|
17936
|
+
|
|
17937
|
+
/**
|
|
17938
|
+
* @private
|
|
17939
|
+
*/
|
|
17940
|
+
deserialize(params) {
|
|
17941
|
+
if (!params) {
|
|
17942
|
+
return;
|
|
17943
|
+
}
|
|
17944
|
+
this.Switch = 'Switch' in params ? params.Switch : null;
|
|
17945
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
17946
|
+
this.Mode = 'Mode' in params ? params.Mode : null;
|
|
17947
|
+
this.Percent = 'Percent' in params ? params.Percent : null;
|
|
17948
|
+
this.Width = 'Width' in params ? params.Width : null;
|
|
17949
|
+
this.Height = 'Height' in params ? params.Height : null;
|
|
17950
|
+
|
|
17951
|
+
}
|
|
17952
|
+
}
|
|
17953
|
+
|
|
17343
17954
|
/**
|
|
17344
17955
|
* Media quality inspection task result type.
|
|
17345
17956
|
* @class
|
|
@@ -18062,26 +18673,41 @@ class AiRecognitionTaskObjectResultItem extends AbstractModel {
|
|
|
18062
18673
|
}
|
|
18063
18674
|
|
|
18064
18675
|
/**
|
|
18065
|
-
*
|
|
18676
|
+
* The information of a video editing/compositing task.
|
|
18677
|
+
|
|
18678
|
+
The figure below outlines the relationships among tracks, elements, and the timeline.
|
|
18679
|
+
|
|
18680
|
+

|
|
18066
18681
|
* @class
|
|
18067
18682
|
*/
|
|
18068
|
-
class
|
|
18683
|
+
class ComposeMediaConfig extends AbstractModel {
|
|
18069
18684
|
constructor(){
|
|
18070
18685
|
super();
|
|
18071
18686
|
|
|
18072
18687
|
/**
|
|
18073
|
-
* The
|
|
18074
|
-
|
|
18075
|
-
* @type {Array.<MediaInputInfo> || null}
|
|
18688
|
+
* The information of the output video.
|
|
18689
|
+
* @type {ComposeTargetInfo || null}
|
|
18076
18690
|
*/
|
|
18077
|
-
this.
|
|
18691
|
+
this.TargetInfo = null;
|
|
18078
18692
|
|
|
18079
18693
|
/**
|
|
18080
|
-
* The
|
|
18081
|
-
|
|
18082
|
-
* @type {Array.<MediaInputInfo> || null}
|
|
18694
|
+
* The canvas information of the output video.
|
|
18695
|
+
* @type {ComposeCanvas || null}
|
|
18083
18696
|
*/
|
|
18084
|
-
this.
|
|
18697
|
+
this.Canvas = null;
|
|
18698
|
+
|
|
18699
|
+
/**
|
|
18700
|
+
* The global styles. This parameter is used together with `Tracks` to specify styles, such as the subtitle style.
|
|
18701
|
+
* @type {Array.<ComposeStyles> || null}
|
|
18702
|
+
*/
|
|
18703
|
+
this.Styles = null;
|
|
18704
|
+
|
|
18705
|
+
/**
|
|
18706
|
+
* The information of media tracks (consisting of video, audio, image, and text elements) used to composite the video. About tracks and the timeline:
|
|
18707
|
+
<ul><li>The timeline of a track is the same as the timeline of the output video. </li><li>The elements of different tracks are overlaid at the same time point in the timeline.</li><ul><li>Video, image, and text elements are overlaid according to their track number, with the first track on top. </li><li>Audio elements are mixed. </li></ul></ul>Note: The different elements of the same track cannot be overlaid (except subtitles).
|
|
18708
|
+
* @type {Array.<ComposeMediaTrack> || null}
|
|
18709
|
+
*/
|
|
18710
|
+
this.Tracks = null;
|
|
18085
18711
|
|
|
18086
18712
|
}
|
|
18087
18713
|
|
|
@@ -18093,21 +18719,33 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
18093
18719
|
return;
|
|
18094
18720
|
}
|
|
18095
18721
|
|
|
18096
|
-
if (params.
|
|
18097
|
-
|
|
18098
|
-
|
|
18099
|
-
|
|
18100
|
-
|
|
18101
|
-
|
|
18722
|
+
if (params.TargetInfo) {
|
|
18723
|
+
let obj = new ComposeTargetInfo();
|
|
18724
|
+
obj.deserialize(params.TargetInfo)
|
|
18725
|
+
this.TargetInfo = obj;
|
|
18726
|
+
}
|
|
18727
|
+
|
|
18728
|
+
if (params.Canvas) {
|
|
18729
|
+
let obj = new ComposeCanvas();
|
|
18730
|
+
obj.deserialize(params.Canvas)
|
|
18731
|
+
this.Canvas = obj;
|
|
18732
|
+
}
|
|
18733
|
+
|
|
18734
|
+
if (params.Styles) {
|
|
18735
|
+
this.Styles = new Array();
|
|
18736
|
+
for (let z in params.Styles) {
|
|
18737
|
+
let obj = new ComposeStyles();
|
|
18738
|
+
obj.deserialize(params.Styles[z]);
|
|
18739
|
+
this.Styles.push(obj);
|
|
18102
18740
|
}
|
|
18103
18741
|
}
|
|
18104
18742
|
|
|
18105
|
-
if (params.
|
|
18106
|
-
this.
|
|
18107
|
-
for (let z in params.
|
|
18108
|
-
let obj = new
|
|
18109
|
-
obj.deserialize(params.
|
|
18110
|
-
this.
|
|
18743
|
+
if (params.Tracks) {
|
|
18744
|
+
this.Tracks = new Array();
|
|
18745
|
+
for (let z in params.Tracks) {
|
|
18746
|
+
let obj = new ComposeMediaTrack();
|
|
18747
|
+
obj.deserialize(params.Tracks[z]);
|
|
18748
|
+
this.Tracks.push(obj);
|
|
18111
18749
|
}
|
|
18112
18750
|
}
|
|
18113
18751
|
|
|
@@ -19040,17 +19678,17 @@ class AiAnalysisResult extends AbstractModel {
|
|
|
19040
19678
|
super();
|
|
19041
19679
|
|
|
19042
19680
|
/**
|
|
19043
|
-
* Task type.
|
|
19044
|
-
<
|
|
19045
|
-
<
|
|
19046
|
-
<
|
|
19047
|
-
<
|
|
19048
|
-
<
|
|
19049
|
-
<
|
|
19050
|
-
<li>Description:
|
|
19051
|
-
|
|
19052
|
-
<
|
|
19053
|
-
<
|
|
19681
|
+
* Task type. Valid values:
|
|
19682
|
+
<li>Classification: smart classification.</li>
|
|
19683
|
+
<li>Cover: smart cover.</li>
|
|
19684
|
+
<li>Tag: smart tag.</li>
|
|
19685
|
+
<li>FrameTag: smart frame tag.</li>
|
|
19686
|
+
<li>Highlight: smart highlights.</li>
|
|
19687
|
+
<li>DeLogo: smart erasing.</li>
|
|
19688
|
+
<li>Description: LLM summary.</li>
|
|
19689
|
+
<li>Dubbing: smart dubbing.</li>
|
|
19690
|
+
<li>VideoRemake: video deduplication.</li>
|
|
19691
|
+
<li>VideoComprehension: video (audio) recognition.</li>
|
|
19054
19692
|
* @type {string || null}
|
|
19055
19693
|
*/
|
|
19056
19694
|
this.Type = null;
|
|
@@ -19135,6 +19773,13 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
19135
19773
|
*/
|
|
19136
19774
|
this.VideoRemakeTask = null;
|
|
19137
19775
|
|
|
19776
|
+
/**
|
|
19777
|
+
* Query result of the video (audio) recognition task. This parameter is valid when the task type is VideoComprehension.
|
|
19778
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
19779
|
+
* @type {AiAnalysisTaskVideoComprehensionResult || null}
|
|
19780
|
+
*/
|
|
19781
|
+
this.VideoComprehensionTask = null;
|
|
19782
|
+
|
|
19138
19783
|
}
|
|
19139
19784
|
|
|
19140
19785
|
/**
|
|
@@ -19218,6 +19863,12 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
19218
19863
|
this.VideoRemakeTask = obj;
|
|
19219
19864
|
}
|
|
19220
19865
|
|
|
19866
|
+
if (params.VideoComprehensionTask) {
|
|
19867
|
+
let obj = new AiAnalysisTaskVideoComprehensionResult();
|
|
19868
|
+
obj.deserialize(params.VideoComprehensionTask)
|
|
19869
|
+
this.VideoComprehensionTask = obj;
|
|
19870
|
+
}
|
|
19871
|
+
|
|
19221
19872
|
}
|
|
19222
19873
|
}
|
|
19223
19874
|
|
|
@@ -21489,6 +22140,34 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
21489
22140
|
}
|
|
21490
22141
|
}
|
|
21491
22142
|
|
|
22143
|
+
/**
|
|
22144
|
+
* Input file for the video (audio) recognition task.
|
|
22145
|
+
* @class
|
|
22146
|
+
*/
|
|
22147
|
+
class AiAnalysisTaskVideoComprehensionInput extends AbstractModel {
|
|
22148
|
+
constructor(){
|
|
22149
|
+
super();
|
|
22150
|
+
|
|
22151
|
+
/**
|
|
22152
|
+
* Video (audio) recognition template ID.
|
|
22153
|
+
* @type {number || null}
|
|
22154
|
+
*/
|
|
22155
|
+
this.Definition = null;
|
|
22156
|
+
|
|
22157
|
+
}
|
|
22158
|
+
|
|
22159
|
+
/**
|
|
22160
|
+
* @private
|
|
22161
|
+
*/
|
|
22162
|
+
deserialize(params) {
|
|
22163
|
+
if (!params) {
|
|
22164
|
+
return;
|
|
22165
|
+
}
|
|
22166
|
+
this.Definition = 'Definition' in params ? params.Definition : null;
|
|
22167
|
+
|
|
22168
|
+
}
|
|
22169
|
+
}
|
|
22170
|
+
|
|
21492
22171
|
/**
|
|
21493
22172
|
* DescribeStreamLinkSecurityGroup response structure.
|
|
21494
22173
|
* @class
|
|
@@ -22329,6 +23008,12 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
22329
23008
|
*/
|
|
22330
23009
|
this.SegmentSet = null;
|
|
22331
23010
|
|
|
23011
|
+
/**
|
|
23012
|
+
* Subtitle file path.
|
|
23013
|
+
* @type {string || null}
|
|
23014
|
+
*/
|
|
23015
|
+
this.Path = null;
|
|
23016
|
+
|
|
22332
23017
|
/**
|
|
22333
23018
|
* Subtitle file path.
|
|
22334
23019
|
* @type {string || null}
|
|
@@ -22359,6 +23044,7 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
22359
23044
|
this.SegmentSet.push(obj);
|
|
22360
23045
|
}
|
|
22361
23046
|
}
|
|
23047
|
+
this.Path = 'Path' in params ? params.Path : null;
|
|
22362
23048
|
this.SubtitlePath = 'SubtitlePath' in params ? params.SubtitlePath : null;
|
|
22363
23049
|
|
|
22364
23050
|
if (params.OutputStorage) {
|
|
@@ -22994,6 +23680,12 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
22994
23680
|
*/
|
|
22995
23681
|
this.Status = null;
|
|
22996
23682
|
|
|
23683
|
+
/**
|
|
23684
|
+
* Error code. A null string indicates that the task is successful, while other values indicate that the task has failed. For valid values, see the list of [MPS error codes](https://www.tencentcloud.comom/document/product/862/50369?from_cn_redirect=1#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81).
|
|
23685
|
+
* @type {string || null}
|
|
23686
|
+
*/
|
|
23687
|
+
this.ErrMsg = null;
|
|
23688
|
+
|
|
22997
23689
|
/**
|
|
22998
23690
|
* Error message.
|
|
22999
23691
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
@@ -23025,6 +23717,7 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
23025
23717
|
return;
|
|
23026
23718
|
}
|
|
23027
23719
|
this.Status = 'Status' in params ? params.Status : null;
|
|
23720
|
+
this.ErrMsg = 'ErrMsg' in params ? params.ErrMsg : null;
|
|
23028
23721
|
this.Message = 'Message' in params ? params.Message : null;
|
|
23029
23722
|
|
|
23030
23723
|
if (params.Output) {
|
|
@@ -23569,37 +24262,44 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
23569
24262
|
this.AsrHotWordsLibraryName = null;
|
|
23570
24263
|
|
|
23571
24264
|
/**
|
|
23572
|
-
*
|
|
23573
|
-
|
|
23574
|
-
|
|
23575
|
-
|
|
23576
|
-
|
|
23577
|
-
|
|
23578
|
-
|
|
23579
|
-
|
|
23580
|
-
|
|
23581
|
-
|
|
23582
|
-
|
|
23583
|
-
|
|
23584
|
-
|
|
23585
|
-
|
|
23586
|
-
|
|
23587
|
-
tr
|
|
23588
|
-
|
|
23589
|
-
|
|
23590
|
-
|
|
23591
|
-
|
|
23592
|
-
|
|
23593
|
-
|
|
24265
|
+
* List of source languages of the video with smart subtitles.
|
|
24266
|
+
`zh`: Simplified Chinese.
|
|
24267
|
+
`yue`: Cantonese.
|
|
24268
|
+
`zh-PY`: Chinese, English, and Cantonese.
|
|
24269
|
+
`zh_medical`: Chinese (medical scenario).
|
|
24270
|
+
`zh_dialect`: Chinese dialect.
|
|
24271
|
+
`prime_zh`: Chinese, English, and Chinese dialects.
|
|
24272
|
+
`zh_en`: Chinese and English.
|
|
24273
|
+
`en`: English.
|
|
24274
|
+
`ja`: Japanese.
|
|
24275
|
+
`ko`: Korean.
|
|
24276
|
+
`fr`: French.
|
|
24277
|
+
`es`: Spanish.
|
|
24278
|
+
`it`: Italian.
|
|
24279
|
+
`de`: German.
|
|
24280
|
+
`tr`: Turkish.
|
|
24281
|
+
`ru`: Russian.
|
|
24282
|
+
`pt`: Portuguese (Brazil).
|
|
24283
|
+
`pt-PT`: Portuguese (Portugal).
|
|
24284
|
+
`vi`: Vietnamese.
|
|
24285
|
+
`id`: Indonesian.
|
|
24286
|
+
`ms`: Malay.
|
|
24287
|
+
`th`: Thai.
|
|
24288
|
+
`ar`: Arabic.
|
|
24289
|
+
`hi`: Hindi.
|
|
24290
|
+
`fil`: Filipino.
|
|
24291
|
+
`auto`: automatic recognition (it is only supported in pure subtitle translation).
|
|
23594
24292
|
* @type {string || null}
|
|
23595
24293
|
*/
|
|
23596
24294
|
this.VideoSrcLanguage = null;
|
|
23597
24295
|
|
|
23598
24296
|
/**
|
|
23599
|
-
* Smart subtitle file format
|
|
23600
|
-
vtt: WebVTT format
|
|
23601
|
-
|
|
23602
|
-
|
|
24297
|
+
* Smart subtitle file format:
|
|
24298
|
+
- vtt: WebVTT format.
|
|
24299
|
+
- srt: SRT format.
|
|
24300
|
+
- original: consistent with the source subtitle file (it is used for the pure subtitle translation template).
|
|
24301
|
+
- If this field is unspecified or left blank, no subtitle file will be generated.
|
|
24302
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23603
24303
|
* @type {string || null}
|
|
23604
24304
|
*/
|
|
23605
24305
|
this.SubtitleFormat = null;
|
|
@@ -23624,26 +24324,29 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
23624
24324
|
|
|
23625
24325
|
/**
|
|
23626
24326
|
* Target language for subtitle translation.
|
|
23627
|
-
This field
|
|
23628
|
-
|
|
23629
|
-
zh
|
|
23630
|
-
en
|
|
23631
|
-
ja
|
|
23632
|
-
ko
|
|
23633
|
-
fr
|
|
23634
|
-
es
|
|
23635
|
-
it
|
|
23636
|
-
de
|
|
23637
|
-
tr
|
|
23638
|
-
ru
|
|
23639
|
-
pt
|
|
23640
|
-
|
|
23641
|
-
|
|
23642
|
-
|
|
23643
|
-
|
|
23644
|
-
|
|
23645
|
-
|
|
23646
|
-
|
|
24327
|
+
This field is valid when the value of TranslateSwitch is ON.
|
|
24328
|
+
`zh`: Simplified Chinese.
|
|
24329
|
+
`zh-TW`: Traditional Chinese.
|
|
24330
|
+
`en`: English.
|
|
24331
|
+
`ja`: Japanese.
|
|
24332
|
+
`ko`: Korean.
|
|
24333
|
+
`fr`: French.
|
|
24334
|
+
`es`: Spanish.
|
|
24335
|
+
`it`: Italian.
|
|
24336
|
+
`de`: German.
|
|
24337
|
+
`tr`: Turkish.
|
|
24338
|
+
`ru`: Russian.
|
|
24339
|
+
`pt`: Portuguese (Brazil).
|
|
24340
|
+
`pt-PT`: Portuguese (Portugal).
|
|
24341
|
+
`vi`: Vietnamese.
|
|
24342
|
+
`id`: Indonesian.
|
|
24343
|
+
`ms`: Malay.
|
|
24344
|
+
`th`: Thai.
|
|
24345
|
+
`ar`: Arabic.
|
|
24346
|
+
`hi`: Hindi.
|
|
24347
|
+
`fil`: Filipino.
|
|
24348
|
+
**Note**: Use `/` to separate multiple languages, such as `en/ja`, which indicates English and Japanese.
|
|
24349
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23647
24350
|
* @type {string || null}
|
|
23648
24351
|
*/
|
|
23649
24352
|
this.TranslateDstLanguage = null;
|
|
@@ -23667,6 +24370,14 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
23667
24370
|
*/
|
|
23668
24371
|
this.AliasName = null;
|
|
23669
24372
|
|
|
24373
|
+
/**
|
|
24374
|
+
* Subtitle processing type.
|
|
24375
|
+
- 0: ASR recognition subtitle.
|
|
24376
|
+
- 1: pure subtitle translation.
|
|
24377
|
+
* @type {number || null}
|
|
24378
|
+
*/
|
|
24379
|
+
this.ProcessType = null;
|
|
24380
|
+
|
|
23670
24381
|
}
|
|
23671
24382
|
|
|
23672
24383
|
/**
|
|
@@ -23695,6 +24406,7 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
23695
24406
|
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
|
|
23696
24407
|
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
|
|
23697
24408
|
this.AliasName = 'AliasName' in params ? params.AliasName : null;
|
|
24409
|
+
this.ProcessType = 'ProcessType' in params ? params.ProcessType : null;
|
|
23698
24410
|
|
|
23699
24411
|
}
|
|
23700
24412
|
}
|
|
@@ -24615,7 +25327,19 @@ class CosFileUploadTrigger extends AbstractModel {
|
|
|
24615
25327
|
this.Dir = null;
|
|
24616
25328
|
|
|
24617
25329
|
/**
|
|
24618
|
-
*
|
|
25330
|
+
* All supported formats are as follows:
|
|
25331
|
+
- Video file extension. The following 15 options are supported:
|
|
25332
|
+
`.mp4`, `.avi`, `.mov`, `.wmv`, `.flv`, `.mkv`, `.mpg`, `.mpeg`, `.rm`, `.rmvb`, `.asf`, `.3gp`, `.webm`, `.ts`, and `.m4v`.
|
|
25333
|
+
- Audio file extension. The following 7 options are supported:
|
|
25334
|
+
`.mp3`, `.wav`, `.aac`, `.flac`, `.ogg`, `.m4a`, and `.amr`.
|
|
25335
|
+
- Subtitle file extension. The following 2 options are supported:
|
|
25336
|
+
`.vtt` and `.srt`.
|
|
25337
|
+
- `*`: any file format is supported.
|
|
25338
|
+
- Unspecified or input an empty list: the system supports the following preset file formats: video (`.mp4`, `.ts`, `.flv`, `.wmv`, `.asf`, `.rm`, `.rmvb`, `.mpg`, `.mpeg`, `.3gp`, `.mov`, `.webm`, `.mkv`, `.avi`, and `.m4v`); audio (`.mp3`, `.m4a`, `.flac`, `.ogg`, `.wav`, `.amr`, and `.aac`); subtitle (`.vtt` and `.srt`).
|
|
25339
|
+
**Note**:
|
|
25340
|
+
1. If the input format list includes `*`, it indicates that any file format is supported.
|
|
25341
|
+
2. File extensions can be provided with or without `.`, such as `.mp4` or `mp4`, both are supported.
|
|
25342
|
+
3. Custom file extensions should consist of digits, letters, and characters, and have a length between 1 and 64 characters.
|
|
24619
25343
|
* @type {Array.<string> || null}
|
|
24620
25344
|
*/
|
|
24621
25345
|
this.Formats = null;
|
|
@@ -24806,102 +25530,6 @@ class ModifyPersonSampleRequest extends AbstractModel {
|
|
|
24806
25530
|
}
|
|
24807
25531
|
}
|
|
24808
25532
|
|
|
24809
|
-
/**
|
|
24810
|
-
* Audio stream configuration parameter
|
|
24811
|
-
* @class
|
|
24812
|
-
*/
|
|
24813
|
-
class AudioTemplateInfo extends AbstractModel {
|
|
24814
|
-
constructor(){
|
|
24815
|
-
super();
|
|
24816
|
-
|
|
24817
|
-
/**
|
|
24818
|
-
* Specifies the encoding format of the audio stream.
|
|
24819
|
-
When audio transcoding is not needed, the optional values are:.
|
|
24820
|
-
<li>copy.</li>
|
|
24821
|
-
When the outer parameter Container is mp3, the valid values are:.
|
|
24822
|
-
<li>mp3.</li>
|
|
24823
|
-
When the outer parameter Container is ogg or flac, the valid values are:.
|
|
24824
|
-
<li>flac.</li>
|
|
24825
|
-
When the outer parameter Container is m4a, valid values are:.
|
|
24826
|
-
<li>aac;</li>
|
|
24827
|
-
<li>ac3.</li>
|
|
24828
|
-
When the outer parameter Container is mp4 or flv, valid values are:.
|
|
24829
|
-
<li>aac: more suitable for mp4;</li>.
|
|
24830
|
-
<li>mp3: more suitable for flv;</li>.
|
|
24831
|
-
<li>mp2.</li>
|
|
24832
|
-
When the outer parameter Container is hls, valid values are:.
|
|
24833
|
-
<li>aac;</li>
|
|
24834
|
-
<li>mp3;</li>
|
|
24835
|
-
<li>eac3: used when merging adaptive transcoding audio tracks.</li>.
|
|
24836
|
-
* @type {string || null}
|
|
24837
|
-
*/
|
|
24838
|
-
this.Codec = null;
|
|
24839
|
-
|
|
24840
|
-
/**
|
|
24841
|
-
* The bitrate of the audio stream. value ranges from 0 to 26 and in the range of [26, 256]. measurement unit: kbps.
|
|
24842
|
-
If the value is 0, the audio bitrate will be the same as that of the original audio.
|
|
24843
|
-
Specifies that when using the TrackChannelInfo parameter for adaptive transcoding audio track merging, the valid values are:.
|
|
24844
|
-
Cannot be set to 0.
|
|
24845
|
-
2). when Codec is aac, valid values: [26, 256].
|
|
24846
|
-
3). when Codec is ac3, valid values: [26, 640].
|
|
24847
|
-
4) when Codec is eac3, value range: [26, 6144]. remark: when SampleRate is 44100HZ, maximum value: 5644. when SampleRate is 48000HZ, maximum value: 6144.
|
|
24848
|
-
|
|
24849
|
-
|
|
24850
|
-
* @type {number || null}
|
|
24851
|
-
*/
|
|
24852
|
-
this.Bitrate = null;
|
|
24853
|
-
|
|
24854
|
-
/**
|
|
24855
|
-
* Audio stream sampling rate. Different sampling rate options are provided for different encoding standards. For details, see [Audio/Video Transcoding Template](https://intl.cloud.tencent.com/document/product/862/77166?from_cn_redirect=1#f3b039f1-d817-4a96-b4e4-90132d31cd53).
|
|
24856
|
-
Unit: Hz.
|
|
24857
|
-
Note: Make sure that the sampling rate of the source audio stream is among the above options. Otherwise, transcoding may fail.
|
|
24858
|
-
* @type {number || null}
|
|
24859
|
-
*/
|
|
24860
|
-
this.SampleRate = null;
|
|
24861
|
-
|
|
24862
|
-
/**
|
|
24863
|
-
* Audio channel mode. Valid values:
|
|
24864
|
-
<li>1: mono-channel.</li>
|
|
24865
|
-
<li>2: dual-channel.</li>
|
|
24866
|
-
<li>6: 5.1 surround sound.
|
|
24867
|
-
<li>Default value: 2.
|
|
24868
|
-
When the container format is audio (flac, ogg, mp3, and m4a), the audio channel cannot be set to 5.1 surround sound.
|
|
24869
|
-
* @type {number || null}
|
|
24870
|
-
*/
|
|
24871
|
-
this.AudioChannel = null;
|
|
24872
|
-
|
|
24873
|
-
/**
|
|
24874
|
-
* Merge audio track information.
|
|
24875
|
-
This field only takes effect in adaptive bitrate transcoding.
|
|
24876
|
-
|
|
24877
|
-
Note: This field may return null, indicating that no valid value can be obtained.
|
|
24878
|
-
* @type {AudioTrackChannelInfo || null}
|
|
24879
|
-
*/
|
|
24880
|
-
this.TrackChannelInfo = null;
|
|
24881
|
-
|
|
24882
|
-
}
|
|
24883
|
-
|
|
24884
|
-
/**
|
|
24885
|
-
* @private
|
|
24886
|
-
*/
|
|
24887
|
-
deserialize(params) {
|
|
24888
|
-
if (!params) {
|
|
24889
|
-
return;
|
|
24890
|
-
}
|
|
24891
|
-
this.Codec = 'Codec' in params ? params.Codec : null;
|
|
24892
|
-
this.Bitrate = 'Bitrate' in params ? params.Bitrate : null;
|
|
24893
|
-
this.SampleRate = 'SampleRate' in params ? params.SampleRate : null;
|
|
24894
|
-
this.AudioChannel = 'AudioChannel' in params ? params.AudioChannel : null;
|
|
24895
|
-
|
|
24896
|
-
if (params.TrackChannelInfo) {
|
|
24897
|
-
let obj = new AudioTrackChannelInfo();
|
|
24898
|
-
obj.deserialize(params.TrackChannelInfo)
|
|
24899
|
-
this.TrackChannelInfo = obj;
|
|
24900
|
-
}
|
|
24901
|
-
|
|
24902
|
-
}
|
|
24903
|
-
}
|
|
24904
|
-
|
|
24905
25533
|
/**
|
|
24906
25534
|
* Control parameter of a full speech recognition task.
|
|
24907
25535
|
* @class
|
|
@@ -25443,6 +26071,34 @@ class CreateWorkflowResponse extends AbstractModel {
|
|
|
25443
26071
|
}
|
|
25444
26072
|
}
|
|
25445
26073
|
|
|
26074
|
+
/**
|
|
26075
|
+
* Information about the video (audio) recognition output content result.
|
|
26076
|
+
* @class
|
|
26077
|
+
*/
|
|
26078
|
+
class AiAnalysisTaskVideoComprehensionOutput extends AbstractModel {
|
|
26079
|
+
constructor(){
|
|
26080
|
+
super();
|
|
26081
|
+
|
|
26082
|
+
/**
|
|
26083
|
+
* Details of the video (audio) recognition output content.
|
|
26084
|
+
* @type {string || null}
|
|
26085
|
+
*/
|
|
26086
|
+
this.VideoComprehensionAnalysisResult = null;
|
|
26087
|
+
|
|
26088
|
+
}
|
|
26089
|
+
|
|
26090
|
+
/**
|
|
26091
|
+
* @private
|
|
26092
|
+
*/
|
|
26093
|
+
deserialize(params) {
|
|
26094
|
+
if (!params) {
|
|
26095
|
+
return;
|
|
26096
|
+
}
|
|
26097
|
+
this.VideoComprehensionAnalysisResult = 'VideoComprehensionAnalysisResult' in params ? params.VideoComprehensionAnalysisResult : null;
|
|
26098
|
+
|
|
26099
|
+
}
|
|
26100
|
+
}
|
|
26101
|
+
|
|
25446
26102
|
/**
|
|
25447
26103
|
* Full speech recognition result.
|
|
25448
26104
|
* @class
|
|
@@ -26223,6 +26879,12 @@ class ImageEnhanceConfig extends AbstractModel {
|
|
|
26223
26879
|
*/
|
|
26224
26880
|
this.SuperResolution = null;
|
|
26225
26881
|
|
|
26882
|
+
/**
|
|
26883
|
+
* Advanced super-resolution configuration.
|
|
26884
|
+
* @type {AdvancedSuperResolutionConfig || null}
|
|
26885
|
+
*/
|
|
26886
|
+
this.AdvancedSuperResolutionConfig = null;
|
|
26887
|
+
|
|
26226
26888
|
/**
|
|
26227
26889
|
* Denoising configuration.
|
|
26228
26890
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
@@ -26281,6 +26943,12 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
26281
26943
|
this.SuperResolution = obj;
|
|
26282
26944
|
}
|
|
26283
26945
|
|
|
26946
|
+
if (params.AdvancedSuperResolutionConfig) {
|
|
26947
|
+
let obj = new AdvancedSuperResolutionConfig();
|
|
26948
|
+
obj.deserialize(params.AdvancedSuperResolutionConfig)
|
|
26949
|
+
this.AdvancedSuperResolutionConfig = obj;
|
|
26950
|
+
}
|
|
26951
|
+
|
|
26284
26952
|
if (params.Denoise) {
|
|
26285
26953
|
let obj = new ImageDenoiseConfig();
|
|
26286
26954
|
obj.deserialize(params.Denoise)
|
|
@@ -27276,6 +27944,13 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
27276
27944
|
*/
|
|
27277
27945
|
this.StdExtInfo = null;
|
|
27278
27946
|
|
|
27947
|
+
/**
|
|
27948
|
+
* Specifies the frame at the given pts time as a key frame and segments it. unit: milliseconds (relative deviation <=1ms is allowed). when gop and segment duration are specified simultaneously, they function together. note: enable RawPts, keep the frame rate as source, and ensure the passed-in pts time corresponds to a frame in the source.
|
|
27949
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
27950
|
+
* @type {Array.<number> || null}
|
|
27951
|
+
*/
|
|
27952
|
+
this.KeyPTSList = null;
|
|
27953
|
+
|
|
27279
27954
|
}
|
|
27280
27955
|
|
|
27281
27956
|
/**
|
|
@@ -27327,6 +28002,7 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
27327
28002
|
this.SubtitleTemplate = obj;
|
|
27328
28003
|
}
|
|
27329
28004
|
this.StdExtInfo = 'StdExtInfo' in params ? params.StdExtInfo : null;
|
|
28005
|
+
this.KeyPTSList = 'KeyPTSList' in params ? params.KeyPTSList : null;
|
|
27330
28006
|
|
|
27331
28007
|
}
|
|
27332
28008
|
}
|
|
@@ -27794,6 +28470,59 @@ class AiRecognitionTaskAsrWordsResultItem extends AbstractModel {
|
|
|
27794
28470
|
}
|
|
27795
28471
|
}
|
|
27796
28472
|
|
|
28473
|
+
/**
|
|
28474
|
+
* Opening and closing credits parameters
|
|
28475
|
+
* @class
|
|
28476
|
+
*/
|
|
28477
|
+
class HeadTailParameter extends AbstractModel {
|
|
28478
|
+
constructor(){
|
|
28479
|
+
super();
|
|
28480
|
+
|
|
28481
|
+
/**
|
|
28482
|
+
* The opening segments.
|
|
28483
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
28484
|
+
* @type {Array.<MediaInputInfo> || null}
|
|
28485
|
+
*/
|
|
28486
|
+
this.HeadSet = null;
|
|
28487
|
+
|
|
28488
|
+
/**
|
|
28489
|
+
* The closing segments.
|
|
28490
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
28491
|
+
* @type {Array.<MediaInputInfo> || null}
|
|
28492
|
+
*/
|
|
28493
|
+
this.TailSet = null;
|
|
28494
|
+
|
|
28495
|
+
}
|
|
28496
|
+
|
|
28497
|
+
/**
|
|
28498
|
+
* @private
|
|
28499
|
+
*/
|
|
28500
|
+
deserialize(params) {
|
|
28501
|
+
if (!params) {
|
|
28502
|
+
return;
|
|
28503
|
+
}
|
|
28504
|
+
|
|
28505
|
+
if (params.HeadSet) {
|
|
28506
|
+
this.HeadSet = new Array();
|
|
28507
|
+
for (let z in params.HeadSet) {
|
|
28508
|
+
let obj = new MediaInputInfo();
|
|
28509
|
+
obj.deserialize(params.HeadSet[z]);
|
|
28510
|
+
this.HeadSet.push(obj);
|
|
28511
|
+
}
|
|
28512
|
+
}
|
|
28513
|
+
|
|
28514
|
+
if (params.TailSet) {
|
|
28515
|
+
this.TailSet = new Array();
|
|
28516
|
+
for (let z in params.TailSet) {
|
|
28517
|
+
let obj = new MediaInputInfo();
|
|
28518
|
+
obj.deserialize(params.TailSet[z]);
|
|
28519
|
+
this.TailSet.push(obj);
|
|
28520
|
+
}
|
|
28521
|
+
}
|
|
28522
|
+
|
|
28523
|
+
}
|
|
28524
|
+
}
|
|
28525
|
+
|
|
27797
28526
|
/**
|
|
27798
28527
|
* DescribeTaskDetail response structure.
|
|
27799
28528
|
* @class
|
|
@@ -28678,8 +29407,9 @@ class SmartSubtitlesResult extends AbstractModel {
|
|
|
28678
29407
|
|
|
28679
29408
|
/**
|
|
28680
29409
|
* Task type. Valid values:
|
|
28681
|
-
|
|
28682
|
-
|
|
29410
|
+
- AsrFullTextRecognition: full speech recognition.
|
|
29411
|
+
- TransTextRecognition: speech translation.
|
|
29412
|
+
- PureSubtitleTrans: pure subtitle translation.
|
|
28683
29413
|
* @type {string || null}
|
|
28684
29414
|
*/
|
|
28685
29415
|
this.Type = null;
|
|
@@ -28701,6 +29431,13 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
28701
29431
|
*/
|
|
28702
29432
|
this.TransTextTask = null;
|
|
28703
29433
|
|
|
29434
|
+
/**
|
|
29435
|
+
* The translation result of the pure subtitle file is returned when the translation type is PureSubtitleTrans.
|
|
29436
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
29437
|
+
* @type {PureSubtitleTransResult || null}
|
|
29438
|
+
*/
|
|
29439
|
+
this.PureSubtitleTransTask = null;
|
|
29440
|
+
|
|
28704
29441
|
}
|
|
28705
29442
|
|
|
28706
29443
|
/**
|
|
@@ -28724,6 +29461,12 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
28724
29461
|
this.TransTextTask = obj;
|
|
28725
29462
|
}
|
|
28726
29463
|
|
|
29464
|
+
if (params.PureSubtitleTransTask) {
|
|
29465
|
+
let obj = new PureSubtitleTransResult();
|
|
29466
|
+
obj.deserialize(params.PureSubtitleTransTask)
|
|
29467
|
+
this.PureSubtitleTransTask = obj;
|
|
29468
|
+
}
|
|
29469
|
+
|
|
28727
29470
|
}
|
|
28728
29471
|
}
|
|
28729
29472
|
|
|
@@ -29540,7 +30283,9 @@ class DescribeTasksRequest extends AbstractModel {
|
|
|
29540
30283
|
this.Status = null;
|
|
29541
30284
|
|
|
29542
30285
|
/**
|
|
29543
|
-
*
|
|
30286
|
+
* Whether there is a failed subtask when the task ends. If this parameter is left unspecified, ignore it.
|
|
30287
|
+
<li>false: filter the main tasks to identify those that have no failed subtasks.</li>
|
|
30288
|
+
<li>true: filter the main tasks to identify those that have failed subtasks.</li>
|
|
29544
30289
|
* @type {boolean || null}
|
|
29545
30290
|
*/
|
|
29546
30291
|
this.SubTaskHasFailed = null;
|
|
@@ -30670,30 +31415,34 @@ Length limit: 64 characters.
|
|
|
30670
31415
|
this.Name = null;
|
|
30671
31416
|
|
|
30672
31417
|
/**
|
|
30673
|
-
*
|
|
30674
|
-
|
|
30675
|
-
zh
|
|
30676
|
-
|
|
30677
|
-
|
|
30678
|
-
|
|
30679
|
-
|
|
30680
|
-
|
|
30681
|
-
|
|
30682
|
-
|
|
30683
|
-
|
|
30684
|
-
|
|
30685
|
-
|
|
30686
|
-
|
|
30687
|
-
|
|
30688
|
-
|
|
30689
|
-
|
|
30690
|
-
|
|
30691
|
-
|
|
30692
|
-
|
|
30693
|
-
|
|
30694
|
-
|
|
30695
|
-
|
|
30696
|
-
|
|
31418
|
+
* Source language of the video with smart subtitles.
|
|
31419
|
+
Currently, the following languages are supported:
|
|
31420
|
+
`zh`: Simplified Chinese.
|
|
31421
|
+
`yue`: Cantonese.
|
|
31422
|
+
`zh-PY`: Chinese, English, and Cantonese.
|
|
31423
|
+
`zh_medical`: Chinese (medical scenario).
|
|
31424
|
+
`zh_dialect`: Chinese dialect.
|
|
31425
|
+
`prime_zh`: Chinese, English, and Chinese dialects.
|
|
31426
|
+
`zh_en`: Chinese and English.
|
|
31427
|
+
`en`: English.
|
|
31428
|
+
`ja`: Japanese.
|
|
31429
|
+
`ko`: Korean.
|
|
31430
|
+
`fr`: French.
|
|
31431
|
+
`es`: Spanish.
|
|
31432
|
+
`it`: Italian.
|
|
31433
|
+
`de`: German.
|
|
31434
|
+
`tr`: Turkish.
|
|
31435
|
+
`ru`: Russian.
|
|
31436
|
+
`pt`: Portuguese (Brazil).
|
|
31437
|
+
`pt-PT`: Portuguese (Portugal).
|
|
31438
|
+
`vi`: Vietnamese.
|
|
31439
|
+
`id`: Indonesian.
|
|
31440
|
+
`ms`: Malay.
|
|
31441
|
+
`th`: Thai.
|
|
31442
|
+
`ar`: Arabic.
|
|
31443
|
+
`hi`: Hindi.
|
|
31444
|
+
`fil`: Filipino.
|
|
31445
|
+
`auto`: automatic recognition (it is only supported in pure subtitle translation).
|
|
30697
31446
|
* @type {string || null}
|
|
30698
31447
|
*/
|
|
30699
31448
|
this.VideoSrcLanguage = null;
|
|
@@ -30716,10 +31465,18 @@ Length limit: 256 characters.
|
|
|
30716
31465
|
this.Comment = null;
|
|
30717
31466
|
|
|
30718
31467
|
/**
|
|
30719
|
-
*
|
|
30720
|
-
|
|
30721
|
-
|
|
30722
|
-
|
|
31468
|
+
* Smart subtitle file format:
|
|
31469
|
+
- Under the ASR recognition and translation processing type:
|
|
31470
|
+
- vtt: WebVTT format subtitle.
|
|
31471
|
+
- srt: SRT format subtitle.
|
|
31472
|
+
- If this field is unspecified or left blank, no subtitle file will be generated.
|
|
31473
|
+
- Under the pure subtitle translation processing type:
|
|
31474
|
+
- original: consistent with the source file.
|
|
31475
|
+
- vtt: WebVTT format subtitle.
|
|
31476
|
+
- srt: SRT format subtitle.
|
|
31477
|
+
**Note**:
|
|
31478
|
+
- For ASR recognition mode, when 2 or more languages are involved in translation, this field cannot be unspecified or left blank.
|
|
31479
|
+
- For pure subtitle translation mode, this field cannot be unspecified or left blank.
|
|
30723
31480
|
* @type {string || null}
|
|
30724
31481
|
*/
|
|
30725
31482
|
this.SubtitleFormat = null;
|
|
@@ -30732,37 +31489,50 @@ If this field is left blank, no subtitle file will be generated.
|
|
|
30732
31489
|
|
|
30733
31490
|
/**
|
|
30734
31491
|
* Subtitle translation switch.
|
|
30735
|
-
ON
|
|
30736
|
-
OFF
|
|
31492
|
+
`ON`: translation enabled.
|
|
31493
|
+
`OFF`: translation disabled.
|
|
31494
|
+
**Note**: For pure subtitle translation mode, the default value is enabled if the field is unspecified. The field cannot be left blank or set to `OFF`.
|
|
30737
31495
|
* @type {string || null}
|
|
30738
31496
|
*/
|
|
30739
31497
|
this.TranslateSwitch = null;
|
|
30740
31498
|
|
|
30741
31499
|
/**
|
|
30742
|
-
*
|
|
30743
|
-
|
|
30744
|
-
|
|
30745
|
-
zh
|
|
30746
|
-
en
|
|
30747
|
-
ja
|
|
30748
|
-
ko
|
|
30749
|
-
fr
|
|
30750
|
-
es
|
|
30751
|
-
it
|
|
30752
|
-
de
|
|
30753
|
-
tr
|
|
30754
|
-
ru
|
|
30755
|
-
pt
|
|
30756
|
-
|
|
30757
|
-
|
|
30758
|
-
|
|
30759
|
-
|
|
30760
|
-
|
|
30761
|
-
|
|
31500
|
+
* Subtitle translation target language. This field is valid when the value of TranslateSwitch is `ON`.
|
|
31501
|
+
Currently, the following languages are supported:
|
|
31502
|
+
`zh`: Simplified Chinese.
|
|
31503
|
+
`zh-TW`: Traditional Chinese.
|
|
31504
|
+
`en`: English.
|
|
31505
|
+
`ja`: Japanese.
|
|
31506
|
+
`ko`: Korean.
|
|
31507
|
+
`fr`: French.
|
|
31508
|
+
`es`: Spanish.
|
|
31509
|
+
`it`: Italian.
|
|
31510
|
+
`de`: German.
|
|
31511
|
+
`tr`: Turkish.
|
|
31512
|
+
`ru`: Russian.
|
|
31513
|
+
`pt`: Portuguese (Brazil).
|
|
31514
|
+
`pt-PT`: Portuguese (Portugal).
|
|
31515
|
+
`vi`: Vietnamese.
|
|
31516
|
+
`id`: Indonesian.
|
|
31517
|
+
`ms`: Malay.
|
|
31518
|
+
`th`: Thai.
|
|
31519
|
+
`ar`: Arabic.
|
|
31520
|
+
`hi`: Hindi.
|
|
31521
|
+
`fil`: Filipino.
|
|
31522
|
+
**Note**: Use `/` to separate multiple languages, such as `en/ja`, which indicates English and Japanese.
|
|
30762
31523
|
* @type {string || null}
|
|
30763
31524
|
*/
|
|
30764
31525
|
this.TranslateDstLanguage = null;
|
|
30765
31526
|
|
|
31527
|
+
/**
|
|
31528
|
+
* Subtitle processing type:
|
|
31529
|
+
- 0: ASR recognition subtitle.
|
|
31530
|
+
- 1: pure subtitle translation.
|
|
31531
|
+
**Note**: The default processing type is ASR recognition subtitle if the field is unspecified.
|
|
31532
|
+
* @type {number || null}
|
|
31533
|
+
*/
|
|
31534
|
+
this.ProcessType = null;
|
|
31535
|
+
|
|
30766
31536
|
}
|
|
30767
31537
|
|
|
30768
31538
|
/**
|
|
@@ -30785,6 +31555,7 @@ hi: Hindi
|
|
|
30785
31555
|
}
|
|
30786
31556
|
this.TranslateSwitch = 'TranslateSwitch' in params ? params.TranslateSwitch : null;
|
|
30787
31557
|
this.TranslateDstLanguage = 'TranslateDstLanguage' in params ? params.TranslateDstLanguage : null;
|
|
31558
|
+
this.ProcessType = 'ProcessType' in params ? params.ProcessType : null;
|
|
30788
31559
|
|
|
30789
31560
|
}
|
|
30790
31561
|
}
|
|
@@ -30937,23 +31708,31 @@ class DrmInfo extends AbstractModel {
|
|
|
30937
31708
|
* Encryption type.
|
|
30938
31709
|
|
|
30939
31710
|
- simpleaes
|
|
30940
|
-
Can only be used for HLS. format support ts and mp4.
|
|
31711
|
+
Can only be used for HLS. format support: ts and mp4.
|
|
30941
31712
|
Only can be used in slice mode. cannot be used in singlefile mode.
|
|
30942
31713
|
|
|
30943
31714
|
- fairplay:
|
|
30944
|
-
Can only be used for HLS.
|
|
30945
|
-
|
|
31715
|
+
Can only be used for HLS. the segment format can only be mp4.
|
|
31716
|
+
Supports slice mode or singlefile mode.
|
|
30946
31717
|
|
|
30947
31718
|
- widevine:
|
|
30948
|
-
Can be used for HLS and DASH. format can only be mp4.
|
|
30949
|
-
Output HLS:
|
|
30950
|
-
|
|
31719
|
+
Can be used for HLS and DASH. the slice format can only be mp4.
|
|
31720
|
+
Output HLS: specifies the slicing or singlefile mode can be used.
|
|
31721
|
+
OutputOutput DASH]: can only be in singlefile mode.
|
|
30951
31722
|
|
|
30952
31723
|
- playready:
|
|
30953
|
-
Can be used for HLS and DASH. format can only be mp4.
|
|
30954
|
-
Output HLS:
|
|
30955
|
-
Output DASH: can only be singlefile mode.
|
|
31724
|
+
Can be used for HLS and DASH. the slice format can only be mp4.
|
|
31725
|
+
Output HLS: specifies the slicing or singlefile mode can be used.
|
|
31726
|
+
Output DASH: can only be in singlefile mode.
|
|
31727
|
+
|
|
31728
|
+
- widevine+fairplay,playready+fairplay,widevine+playready+fairplay:
|
|
31729
|
+
Can only be used for HLS. valid values: mp4.
|
|
31730
|
+
Supports slice mode or single file mode.
|
|
30956
31731
|
|
|
31732
|
+
- widevine+playready:
|
|
31733
|
+
Applicable to HLS and MPEG-DASH. the format can only be mp4.
|
|
31734
|
+
HLS format can use slice mode or single file mode.
|
|
31735
|
+
Specifies that only singlefile mode can be used for MPEG-DASH.
|
|
30957
31736
|
* @type {string || null}
|
|
30958
31737
|
*/
|
|
30959
31738
|
this.Type = null;
|
|
@@ -31780,6 +32559,38 @@ no_config: Not configured.
|
|
|
31780
32559
|
*/
|
|
31781
32560
|
this.CompressType = null;
|
|
31782
32561
|
|
|
32562
|
+
/**
|
|
32563
|
+
* Enhancement scenario configuration. Valid values:
|
|
32564
|
+
<li>common: common enhancement parameters, which are basic optimization parameters suitable for various video types, enhancing overall image quality.</li>
|
|
32565
|
+
<li>AIGC: overall resolution enhancement. It uses AI technology to improve the overall video resolution and image clarity.</li>
|
|
32566
|
+
<li>short_play: enhance facial and subtitle details, emphasizing characters' facial expressions and subtitle clarity to improve the viewing experience.</li>
|
|
32567
|
+
<li>short_video: optimize complex and diverse image quality issues, tailoring quality enhancements for the complex scenarios such as short videos to address various visual issues.</li>
|
|
32568
|
+
<li>game: fix motion blur and enhance details, with a focus on enhancing the clarity of game details and restoring blurry areas during motions to make the image content during gaming clearer and richer.</li>
|
|
32569
|
+
<li>HD_movie_series: provide a smooth playback effect for UHD videos. Standard 4K HDR videos with an FPS of 60 are generated to meet the needs of broadcasting/OTT for UHD videos. Formats for broadcasting scenarios are supported.</li>
|
|
32570
|
+
<li>LQ_material: low-definition material/old video restoration. It enhances overall resolution, and solves issues of old videos, such as low resolution, blur, distortion, scratches, and color temperature due to their age.</li>
|
|
32571
|
+
<li>lecture: live shows, e-commerce, conferences, and lectures. It improves the face display effect and performs specific optimizations, including face region enhancement, noise reduction, and artifacts removal, for scenarios involving human explanation, such as live shows, e-commerce, conferences, and lectures.</li>
|
|
32572
|
+
* @type {string || null}
|
|
32573
|
+
*/
|
|
32574
|
+
this.EnhanceSceneType = null;
|
|
32575
|
+
|
|
32576
|
+
/**
|
|
32577
|
+
* Enhanced transcoding type. Valid values:
|
|
32578
|
+
<li>Common: standard transcoding.</li>
|
|
32579
|
+
<li>TEHD-100: top speed codec video transcoding.</li>
|
|
32580
|
+
<li>TEHD-200: top speed codec audio transcoding.</li>
|
|
32581
|
+
* @type {string || null}
|
|
32582
|
+
*/
|
|
32583
|
+
this.EnhanceTranscodeType = null;
|
|
32584
|
+
|
|
32585
|
+
/**
|
|
32586
|
+
* Enhancement type. Valid values:
|
|
32587
|
+
<li>VideoEnhance: video enhancement only.</li>
|
|
32588
|
+
<li>AudioEnhance (audio enhancement only).</li>
|
|
32589
|
+
<li>VideoAudioEnhance: video and audio enhancement included.</li>
|
|
32590
|
+
* @type {string || null}
|
|
32591
|
+
*/
|
|
32592
|
+
this.EnhanceType = null;
|
|
32593
|
+
|
|
31783
32594
|
}
|
|
31784
32595
|
|
|
31785
32596
|
/**
|
|
@@ -31799,6 +32610,9 @@ no_config: Not configured.
|
|
|
31799
32610
|
this.Name = 'Name' in params ? params.Name : null;
|
|
31800
32611
|
this.SceneType = 'SceneType' in params ? params.SceneType : null;
|
|
31801
32612
|
this.CompressType = 'CompressType' in params ? params.CompressType : null;
|
|
32613
|
+
this.EnhanceSceneType = 'EnhanceSceneType' in params ? params.EnhanceSceneType : null;
|
|
32614
|
+
this.EnhanceTranscodeType = 'EnhanceTranscodeType' in params ? params.EnhanceTranscodeType : null;
|
|
32615
|
+
this.EnhanceType = 'EnhanceType' in params ? params.EnhanceType : null;
|
|
31802
32616
|
|
|
31803
32617
|
}
|
|
31804
32618
|
}
|
|
@@ -32024,6 +32838,53 @@ class DisableWorkflowRequest extends AbstractModel {
|
|
|
32024
32838
|
}
|
|
32025
32839
|
}
|
|
32026
32840
|
|
|
32841
|
+
/**
|
|
32842
|
+
* New frame interpolation configuration, which supports fractional frame rates.
|
|
32843
|
+
* @class
|
|
32844
|
+
*/
|
|
32845
|
+
class FrameRateWithDenConfig extends AbstractModel {
|
|
32846
|
+
constructor(){
|
|
32847
|
+
super();
|
|
32848
|
+
|
|
32849
|
+
/**
|
|
32850
|
+
* Capability configuration switch. Valid values:
|
|
32851
|
+
<li>ON: enabled.</li>
|
|
32852
|
+
<li>OFF: disabled.</li>
|
|
32853
|
+
Default value: ON.
|
|
32854
|
+
* @type {string || null}
|
|
32855
|
+
*/
|
|
32856
|
+
this.Switch = null;
|
|
32857
|
+
|
|
32858
|
+
/**
|
|
32859
|
+
* Frame rate numerator. Value range: non-negative number, which should be less than 120 when divided by the denominator, and in the unit of Hz. The default value is 0. Note: For transcoding, this parameter will overwrite the Fps in the VideoTemplate.
|
|
32860
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
32861
|
+
* @type {number || null}
|
|
32862
|
+
*/
|
|
32863
|
+
this.FpsNum = null;
|
|
32864
|
+
|
|
32865
|
+
/**
|
|
32866
|
+
* Frame rate denominator.Value range: numbers equal to or greater than 1. The default value is 1. Note: For transcoding, this parameter will overwrite the FpsDenominator in the VideoTemplate.
|
|
32867
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
32868
|
+
* @type {number || null}
|
|
32869
|
+
*/
|
|
32870
|
+
this.FpsDen = null;
|
|
32871
|
+
|
|
32872
|
+
}
|
|
32873
|
+
|
|
32874
|
+
/**
|
|
32875
|
+
* @private
|
|
32876
|
+
*/
|
|
32877
|
+
deserialize(params) {
|
|
32878
|
+
if (!params) {
|
|
32879
|
+
return;
|
|
32880
|
+
}
|
|
32881
|
+
this.Switch = 'Switch' in params ? params.Switch : null;
|
|
32882
|
+
this.FpsNum = 'FpsNum' in params ? params.FpsNum : null;
|
|
32883
|
+
this.FpsDen = 'FpsDen' in params ? params.FpsDen : null;
|
|
32884
|
+
|
|
32885
|
+
}
|
|
32886
|
+
}
|
|
32887
|
+
|
|
32027
32888
|
/**
|
|
32028
32889
|
* The parameters for detecting sensitive information.
|
|
32029
32890
|
* @class
|
|
@@ -32081,6 +32942,49 @@ class PoliticalConfigureInfoForUpdate extends AbstractModel {
|
|
|
32081
32942
|
}
|
|
32082
32943
|
}
|
|
32083
32944
|
|
|
32945
|
+
/**
|
|
32946
|
+
* LLM enhancement.
|
|
32947
|
+
* @class
|
|
32948
|
+
*/
|
|
32949
|
+
class DiffusionEnhanceConfig extends AbstractModel {
|
|
32950
|
+
constructor(){
|
|
32951
|
+
super();
|
|
32952
|
+
|
|
32953
|
+
/**
|
|
32954
|
+
* Capability configuration switch. Valid values:
|
|
32955
|
+
ON: enabled.
|
|
32956
|
+
OFF: disabled.
|
|
32957
|
+
Default value: OFF.
|
|
32958
|
+
* @type {string || null}
|
|
32959
|
+
*/
|
|
32960
|
+
this.Switch = null;
|
|
32961
|
+
|
|
32962
|
+
/**
|
|
32963
|
+
* Strength type. Valid values:
|
|
32964
|
+
weak
|
|
32965
|
+
normal
|
|
32966
|
+
strong
|
|
32967
|
+
Default value: normal.
|
|
32968
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
32969
|
+
* @type {string || null}
|
|
32970
|
+
*/
|
|
32971
|
+
this.Type = null;
|
|
32972
|
+
|
|
32973
|
+
}
|
|
32974
|
+
|
|
32975
|
+
/**
|
|
32976
|
+
* @private
|
|
32977
|
+
*/
|
|
32978
|
+
deserialize(params) {
|
|
32979
|
+
if (!params) {
|
|
32980
|
+
return;
|
|
32981
|
+
}
|
|
32982
|
+
this.Switch = 'Switch' in params ? params.Switch : null;
|
|
32983
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
32984
|
+
|
|
32985
|
+
}
|
|
32986
|
+
}
|
|
32987
|
+
|
|
32084
32988
|
/**
|
|
32085
32989
|
* DescribeWatermarkTemplates response structure.
|
|
32086
32990
|
* @class
|
|
@@ -32536,9 +33440,8 @@ class DescribeImageTaskDetailResponse extends AbstractModel {
|
|
|
32536
33440
|
|
|
32537
33441
|
/**
|
|
32538
33442
|
* Task type. Currently, the valid values include:
|
|
32539
|
-
<
|
|
32540
|
-
|
|
32541
|
-
Note: This field may return null, indicating that no valid value can be obtained.
|
|
33443
|
+
<li>WorkflowTask: workflow processing task.</li>
|
|
33444
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
32542
33445
|
* @type {string || null}
|
|
32543
33446
|
*/
|
|
32544
33447
|
this.TaskType = null;
|
|
@@ -32553,6 +33456,24 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
32553
33456
|
*/
|
|
32554
33457
|
this.Status = null;
|
|
32555
33458
|
|
|
33459
|
+
/**
|
|
33460
|
+
* Error code when the task fails.
|
|
33461
|
+
* @type {number || null}
|
|
33462
|
+
*/
|
|
33463
|
+
this.ErrCode = null;
|
|
33464
|
+
|
|
33465
|
+
/**
|
|
33466
|
+
* Error code. A null string indicates that the task is successful, while other values indicate that the task has failed. For valid values, see the list of [MPS error codes](https://www.tencentcloud.comom/document/product/862/50369?from_cn_redirect=1#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81).
|
|
33467
|
+
* @type {string || null}
|
|
33468
|
+
*/
|
|
33469
|
+
this.ErrMsg = null;
|
|
33470
|
+
|
|
33471
|
+
/**
|
|
33472
|
+
* Task exception message.
|
|
33473
|
+
* @type {string || null}
|
|
33474
|
+
*/
|
|
33475
|
+
this.Message = null;
|
|
33476
|
+
|
|
32556
33477
|
/**
|
|
32557
33478
|
* Execution status and results of the image processing task.
|
|
32558
33479
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
@@ -32591,6 +33512,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
32591
33512
|
}
|
|
32592
33513
|
this.TaskType = 'TaskType' in params ? params.TaskType : null;
|
|
32593
33514
|
this.Status = 'Status' in params ? params.Status : null;
|
|
33515
|
+
this.ErrCode = 'ErrCode' in params ? params.ErrCode : null;
|
|
33516
|
+
this.ErrMsg = 'ErrMsg' in params ? params.ErrMsg : null;
|
|
33517
|
+
this.Message = 'Message' in params ? params.Message : null;
|
|
32594
33518
|
|
|
32595
33519
|
if (params.ImageProcessTaskResultSet) {
|
|
32596
33520
|
this.ImageProcessTaskResultSet = new Array();
|
|
@@ -34144,6 +35068,45 @@ class OcrFullTextConfigureInfo extends AbstractModel {
|
|
|
34144
35068
|
}
|
|
34145
35069
|
}
|
|
34146
35070
|
|
|
35071
|
+
/**
|
|
35072
|
+
* Privacy protection configuration for the smart erasing template.
|
|
35073
|
+
* @class
|
|
35074
|
+
*/
|
|
35075
|
+
class UpdateSmartErasePrivacyConfig extends AbstractModel {
|
|
35076
|
+
constructor(){
|
|
35077
|
+
super();
|
|
35078
|
+
|
|
35079
|
+
/**
|
|
35080
|
+
* Erasing method of privacy protection.
|
|
35081
|
+
- blur
|
|
35082
|
+
- mosaic
|
|
35083
|
+
* @type {string || null}
|
|
35084
|
+
*/
|
|
35085
|
+
this.PrivacyModel = null;
|
|
35086
|
+
|
|
35087
|
+
/**
|
|
35088
|
+
* Privacy protection target. (When API Explorer is used, it is not required to specify an array. Add the corresponding items and enter the corresponding values.)
|
|
35089
|
+
- face: human face.
|
|
35090
|
+
- plate: license plate.
|
|
35091
|
+
* @type {Array.<string> || null}
|
|
35092
|
+
*/
|
|
35093
|
+
this.PrivacyTargets = null;
|
|
35094
|
+
|
|
35095
|
+
}
|
|
35096
|
+
|
|
35097
|
+
/**
|
|
35098
|
+
* @private
|
|
35099
|
+
*/
|
|
35100
|
+
deserialize(params) {
|
|
35101
|
+
if (!params) {
|
|
35102
|
+
return;
|
|
35103
|
+
}
|
|
35104
|
+
this.PrivacyModel = 'PrivacyModel' in params ? params.PrivacyModel : null;
|
|
35105
|
+
this.PrivacyTargets = 'PrivacyTargets' in params ? params.PrivacyTargets : null;
|
|
35106
|
+
|
|
35107
|
+
}
|
|
35108
|
+
}
|
|
35109
|
+
|
|
34147
35110
|
/**
|
|
34148
35111
|
* ModifyLiveRecordTemplate request structure.
|
|
34149
35112
|
* @class
|
|
@@ -34233,8 +35196,9 @@ class ModifySmartSubtitleTemplateRequest extends AbstractModel {
|
|
|
34233
35196
|
|
|
34234
35197
|
/**
|
|
34235
35198
|
* Subtitle translation switch.
|
|
34236
|
-
ON
|
|
34237
|
-
OFF
|
|
35199
|
+
`ON`: translation enabled.
|
|
35200
|
+
`OFF`: translation disabled.
|
|
35201
|
+
**Note**: For pure subtitle translation mode, the default value is enabled if the field is unspecified. The field cannot be left blank or set to `OFF`.
|
|
34238
35202
|
* @type {string || null}
|
|
34239
35203
|
*/
|
|
34240
35204
|
this.TranslateSwitch = null;
|
|
@@ -34254,40 +35218,51 @@ Length limit: 256 characters.
|
|
|
34254
35218
|
this.Comment = null;
|
|
34255
35219
|
|
|
34256
35220
|
/**
|
|
34257
|
-
*
|
|
34258
|
-
|
|
34259
|
-
zh
|
|
34260
|
-
|
|
34261
|
-
|
|
34262
|
-
|
|
34263
|
-
|
|
34264
|
-
|
|
34265
|
-
|
|
34266
|
-
|
|
34267
|
-
|
|
34268
|
-
|
|
34269
|
-
|
|
34270
|
-
|
|
34271
|
-
|
|
34272
|
-
|
|
34273
|
-
|
|
34274
|
-
|
|
34275
|
-
|
|
34276
|
-
|
|
34277
|
-
|
|
34278
|
-
|
|
34279
|
-
|
|
34280
|
-
|
|
34281
|
-
|
|
35221
|
+
* Source language of the video with smart subtitles.
|
|
35222
|
+
Currently, the following languages are supported:
|
|
35223
|
+
`zh`: Simplified Chinese.
|
|
35224
|
+
`yue`: Cantonese.
|
|
35225
|
+
`zh-PY`: Chinese, English, and Cantonese.
|
|
35226
|
+
`zh_medical`: Chinese (medical scenario).
|
|
35227
|
+
`zh_dialect`: Chinese dialect.
|
|
35228
|
+
`prime_zh`: Chinese, English, and Chinese dialects.
|
|
35229
|
+
`zh_en`: Chinese and English.
|
|
35230
|
+
`en`: English.
|
|
35231
|
+
`ja`: Japanese.
|
|
35232
|
+
`ko`: Korean.
|
|
35233
|
+
`fr`: French.
|
|
35234
|
+
`es`: Spanish.
|
|
35235
|
+
`it`: Italian.
|
|
35236
|
+
`de`: German.
|
|
35237
|
+
`tr`: Turkish.
|
|
35238
|
+
`ru`: Russian.
|
|
35239
|
+
`pt`: Portuguese (Brazil).
|
|
35240
|
+
`pt-PT`: Portuguese (Portugal).
|
|
35241
|
+
`vi`: Vietnamese.
|
|
35242
|
+
`id`: Indonesian.
|
|
35243
|
+
`ms`: Malay.
|
|
35244
|
+
`th`: Thai.
|
|
35245
|
+
`ar`: Arabic.
|
|
35246
|
+
`hi`: Hindi.
|
|
35247
|
+
`fil`: Filipino.
|
|
35248
|
+
`auto`: automatic recognition (it is only supported in pure subtitle translation).
|
|
34282
35249
|
* @type {string || null}
|
|
34283
35250
|
*/
|
|
34284
35251
|
this.VideoSrcLanguage = null;
|
|
34285
35252
|
|
|
34286
35253
|
/**
|
|
34287
|
-
*
|
|
34288
|
-
|
|
34289
|
-
|
|
34290
|
-
|
|
35254
|
+
* Smart subtitle file format:
|
|
35255
|
+
- Under the ASR recognition and translation processing type:
|
|
35256
|
+
- vtt: WebVTT format subtitle.
|
|
35257
|
+
- srt: SRT format subtitle.
|
|
35258
|
+
- Unspecified or left blank: no subtitle file generated.
|
|
35259
|
+
- Under the pure subtitle translation processing type:
|
|
35260
|
+
- original: consistent with the source file.
|
|
35261
|
+
- vtt: WebVTT format subtitle.
|
|
35262
|
+
- srt: SRT format subtitle.
|
|
35263
|
+
**Note**:
|
|
35264
|
+
- For ASR recognition mode, when 2 or more languages are involved in translation, this field cannot be unspecified or left blank.
|
|
35265
|
+
- For pure subtitle translation mode, this field cannot be unspecified or left blank.
|
|
34291
35266
|
* @type {string || null}
|
|
34292
35267
|
*/
|
|
34293
35268
|
this.SubtitleFormat = null;
|
|
@@ -34310,29 +35285,42 @@ The value can only be 0 when TranslateSwitch is set to OFF. The value can only b
|
|
|
34310
35285
|
|
|
34311
35286
|
/**
|
|
34312
35287
|
* Target language for subtitle translation.
|
|
34313
|
-
This field
|
|
34314
|
-
|
|
34315
|
-
zh
|
|
34316
|
-
|
|
34317
|
-
|
|
34318
|
-
|
|
34319
|
-
|
|
34320
|
-
|
|
34321
|
-
|
|
34322
|
-
|
|
34323
|
-
|
|
34324
|
-
|
|
34325
|
-
|
|
34326
|
-
|
|
34327
|
-
|
|
34328
|
-
|
|
34329
|
-
|
|
34330
|
-
|
|
34331
|
-
|
|
35288
|
+
This field is valid when the value of TranslateSwitch is ON.
|
|
35289
|
+
Currently, the following languages are supported:
|
|
35290
|
+
`zh`: Simplified Chinese.
|
|
35291
|
+
`zh-TW`: Traditional Chinese.
|
|
35292
|
+
`en`: English.
|
|
35293
|
+
`ja`: Japanese.
|
|
35294
|
+
`ko`: Korean.
|
|
35295
|
+
`fr`: French.
|
|
35296
|
+
`es`: Spanish.
|
|
35297
|
+
`it`: Italian.
|
|
35298
|
+
`de`: German.
|
|
35299
|
+
`tr`: Turkish.
|
|
35300
|
+
`ru`: Russian.
|
|
35301
|
+
`pt`: Portuguese (Brazil).
|
|
35302
|
+
`pt-PT`: Portuguese (Portugal).
|
|
35303
|
+
`vi`: Vietnamese.
|
|
35304
|
+
`id`: Indonesian.
|
|
35305
|
+
`ms`: Malay.
|
|
35306
|
+
`th`: Thai.
|
|
35307
|
+
`ar`: Arabic.
|
|
35308
|
+
`hi`: Hindi.
|
|
35309
|
+
`fil`: Filipino.
|
|
35310
|
+
**Note**: Use `/` to separate multiple languages, such as `en/ja`, which indicates English and Japanese.
|
|
34332
35311
|
* @type {string || null}
|
|
34333
35312
|
*/
|
|
34334
35313
|
this.TranslateDstLanguage = null;
|
|
34335
35314
|
|
|
35315
|
+
/**
|
|
35316
|
+
* Subtitle processing type:
|
|
35317
|
+
- 0: ASR recognition subtitle.
|
|
35318
|
+
- 1: pure subtitle translation.
|
|
35319
|
+
**Note**: If the field is unspecified, ASR is used by default.
|
|
35320
|
+
* @type {number || null}
|
|
35321
|
+
*/
|
|
35322
|
+
this.ProcessType = null;
|
|
35323
|
+
|
|
34336
35324
|
}
|
|
34337
35325
|
|
|
34338
35326
|
/**
|
|
@@ -34356,6 +35344,7 @@ hi: Hindi
|
|
|
34356
35344
|
this.AsrHotWordsConfigure = obj;
|
|
34357
35345
|
}
|
|
34358
35346
|
this.TranslateDstLanguage = 'TranslateDstLanguage' in params ? params.TranslateDstLanguage : null;
|
|
35347
|
+
this.ProcessType = 'ProcessType' in params ? params.ProcessType : null;
|
|
34359
35348
|
|
|
34360
35349
|
}
|
|
34361
35350
|
}
|
|
@@ -34795,6 +35784,151 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
34795
35784
|
}
|
|
34796
35785
|
}
|
|
34797
35786
|
|
|
35787
|
+
/**
|
|
35788
|
+
* Subtitle removal configuration for the smart erasing template.
|
|
35789
|
+
* @class
|
|
35790
|
+
*/
|
|
35791
|
+
class UpdateSmartEraseSubtitleConfig extends AbstractModel {
|
|
35792
|
+
constructor(){
|
|
35793
|
+
super();
|
|
35794
|
+
|
|
35795
|
+
/**
|
|
35796
|
+
* Subtitle erasing method.
|
|
35797
|
+
**Automatic erasing:** Video subtitles are automatically recognized using an AI model and are erased without traces to generate a new video. However, missed or incorrect erasing may occur due to image interference and special subtitle styles. In this case, you can specify the erasing area.
|
|
35798
|
+
When automatic erasing is used, if AutoAreas is not specified, the default area (lower middle part of the image) will be erased automatically. If AutoAreas is specified, the specified area will be erased automatically.
|
|
35799
|
+
**Specified area erasing:** If the subtitle position is relatively fixed, you are recommended to specify the erasing area directly to minimize missed erasing.
|
|
35800
|
+
When you choose specified area erasing, specify at least one area for CustomAreas.
|
|
35801
|
+
- auto: automatic erasing.
|
|
35802
|
+
- custom: specified area erasing.
|
|
35803
|
+
|
|
35804
|
+
* @type {string || null}
|
|
35805
|
+
*/
|
|
35806
|
+
this.SubtitleEraseMethod = null;
|
|
35807
|
+
|
|
35808
|
+
/**
|
|
35809
|
+
* Subtitle erasing model.
|
|
35810
|
+
**Standard edition (recommended):** For standard subtitle styles, you are recommended to select this edition to ensure better traceless effects in the details.
|
|
35811
|
+
**Area edition:** If the subtitles have special styles, such as calligraphy, shadow, or motion effects, you are recommended to select this edition to ensure a larger erasing area. However, the erasing effect in the details is not as good as the standard edition.
|
|
35812
|
+
- standard: standard edition.
|
|
35813
|
+
- area: area edition.
|
|
35814
|
+
* @type {string || null}
|
|
35815
|
+
*/
|
|
35816
|
+
this.SubtitleModel = null;
|
|
35817
|
+
|
|
35818
|
+
/**
|
|
35819
|
+
* Whether to enable OCR subtitle extraction. The default value is OFF.
|
|
35820
|
+
OCR subtitle extraction is supported if and only if SubtitleEraseMethod is set to auto. When OCR subtitle extraction is enabled, it identifies the text region that appears most persistently and stably within the automatic erasing area as the subtitle area. The text within the subtitle area is extracted and erased.
|
|
35821
|
+
- ON: enabled.
|
|
35822
|
+
-OFF: disabled.
|
|
35823
|
+
* @type {string || null}
|
|
35824
|
+
*/
|
|
35825
|
+
this.OcrSwitch = null;
|
|
35826
|
+
|
|
35827
|
+
/**
|
|
35828
|
+
* Subtitle language, which is used to guide OCR recognition. The default value is zh_en. This parameter is valid only when OcrSwitch is set to ON.
|
|
35829
|
+
- zh_en: Chinese and English.
|
|
35830
|
+
- multi: others.
|
|
35831
|
+
The following are other languages supported for recognition:
|
|
35832
|
+
Chinese, English, Japanese, Korean, Spanish, French, German, Portuguese, Vietnamese, Malay, Russian, Italian, Dutch, Swedish, Finnish, Danish, Norwegian, Hungarian, Thai, Hindi, Arabic, India-Bengali, India-Gujarati, India-Kannada, India-Malayalam, India-Tamil, India-Telugu, Slovenian, Polish, Catalan, Bosnian, Czech, Estonian, Croatian, Punjabi, Marathi, Azerbaijani, Indonesian, Luxembourgish, Lithuanian, Latvian, Maltese, Slovak, Turkish, Kazakh, Greek, Irish, Belarusian, Khmer, Tagalog, Pashto, Persian, and Tajik.
|
|
35833
|
+
|
|
35834
|
+
* @type {string || null}
|
|
35835
|
+
*/
|
|
35836
|
+
this.SubtitleLang = null;
|
|
35837
|
+
|
|
35838
|
+
/**
|
|
35839
|
+
* Subtitle file format. The default value is vtt. This parameter is valid only when OcrSwitch is set to ON.
|
|
35840
|
+
- srt: SRT format.
|
|
35841
|
+
- vtt: WebVTT format.
|
|
35842
|
+
* @type {string || null}
|
|
35843
|
+
*/
|
|
35844
|
+
this.SubtitleFormat = null;
|
|
35845
|
+
|
|
35846
|
+
/**
|
|
35847
|
+
* Whether to enable subtitle translation. The default value is OFF. This parameter is valid only when OcrSwitch is set to ON.
|
|
35848
|
+
- ON: enabled.
|
|
35849
|
+
- OFF: disabled.
|
|
35850
|
+
* @type {string || null}
|
|
35851
|
+
*/
|
|
35852
|
+
this.TransSwitch = null;
|
|
35853
|
+
|
|
35854
|
+
/**
|
|
35855
|
+
* Target language for Subtitle translation. The default value is en. This parameter is valid only when TransSwitch is set to ON.
|
|
35856
|
+
Currently, the following languages are supported:
|
|
35857
|
+
zh: Simplified Chinese.
|
|
35858
|
+
en: English.
|
|
35859
|
+
ja: Japanese.
|
|
35860
|
+
ko: Korean.
|
|
35861
|
+
fr: French.
|
|
35862
|
+
es: Spanish.
|
|
35863
|
+
it: Italian.
|
|
35864
|
+
de: German.
|
|
35865
|
+
tr: Turkish.
|
|
35866
|
+
ru: Russian.
|
|
35867
|
+
pt: Portuguese.
|
|
35868
|
+
vi: Vietnamese.
|
|
35869
|
+
id: Indonesian.
|
|
35870
|
+
ms: Malay.
|
|
35871
|
+
th: Thai.
|
|
35872
|
+
ar: Arabic.
|
|
35873
|
+
hi: Hindi.
|
|
35874
|
+
* @type {string || null}
|
|
35875
|
+
*/
|
|
35876
|
+
this.TransDstLang = null;
|
|
35877
|
+
|
|
35878
|
+
/**
|
|
35879
|
+
* Custom area for automatic erasing.
|
|
35880
|
+
For the specified area, AI models are used to automatically detect and erase the target objects.
|
|
35881
|
+
Note: When the erasing method is set to custom, this parameter is invalid. When a template is modified, input [] for the erasing area; if this parameter is unspecified, the template area information will remain unchanged.
|
|
35882
|
+
* @type {Array.<EraseArea> || null}
|
|
35883
|
+
*/
|
|
35884
|
+
this.AutoAreas = null;
|
|
35885
|
+
|
|
35886
|
+
/**
|
|
35887
|
+
* Custom area for specified area erasing.
|
|
35888
|
+
For the specified area, erase the target objects directly without detection and recognition within a selected time period.
|
|
35889
|
+
Note: When a template is modified, input [] for the erasing area; if this parameter is unspecified, the template area information will remain unchanged.
|
|
35890
|
+
* @type {Array.<EraseTimeArea> || null}
|
|
35891
|
+
*/
|
|
35892
|
+
this.CustomAreas = null;
|
|
35893
|
+
|
|
35894
|
+
}
|
|
35895
|
+
|
|
35896
|
+
/**
|
|
35897
|
+
* @private
|
|
35898
|
+
*/
|
|
35899
|
+
deserialize(params) {
|
|
35900
|
+
if (!params) {
|
|
35901
|
+
return;
|
|
35902
|
+
}
|
|
35903
|
+
this.SubtitleEraseMethod = 'SubtitleEraseMethod' in params ? params.SubtitleEraseMethod : null;
|
|
35904
|
+
this.SubtitleModel = 'SubtitleModel' in params ? params.SubtitleModel : null;
|
|
35905
|
+
this.OcrSwitch = 'OcrSwitch' in params ? params.OcrSwitch : null;
|
|
35906
|
+
this.SubtitleLang = 'SubtitleLang' in params ? params.SubtitleLang : null;
|
|
35907
|
+
this.SubtitleFormat = 'SubtitleFormat' in params ? params.SubtitleFormat : null;
|
|
35908
|
+
this.TransSwitch = 'TransSwitch' in params ? params.TransSwitch : null;
|
|
35909
|
+
this.TransDstLang = 'TransDstLang' in params ? params.TransDstLang : null;
|
|
35910
|
+
|
|
35911
|
+
if (params.AutoAreas) {
|
|
35912
|
+
this.AutoAreas = new Array();
|
|
35913
|
+
for (let z in params.AutoAreas) {
|
|
35914
|
+
let obj = new EraseArea();
|
|
35915
|
+
obj.deserialize(params.AutoAreas[z]);
|
|
35916
|
+
this.AutoAreas.push(obj);
|
|
35917
|
+
}
|
|
35918
|
+
}
|
|
35919
|
+
|
|
35920
|
+
if (params.CustomAreas) {
|
|
35921
|
+
this.CustomAreas = new Array();
|
|
35922
|
+
for (let z in params.CustomAreas) {
|
|
35923
|
+
let obj = new EraseTimeArea();
|
|
35924
|
+
obj.deserialize(params.CustomAreas[z]);
|
|
35925
|
+
this.CustomAreas.push(obj);
|
|
35926
|
+
}
|
|
35927
|
+
}
|
|
35928
|
+
|
|
35929
|
+
}
|
|
35930
|
+
}
|
|
35931
|
+
|
|
34798
35932
|
/**
|
|
34799
35933
|
* Smart Erase, specifies the region configuration.
|
|
34800
35934
|
Erase the designated region directly within a specified period.
|
|
@@ -34856,8 +35990,10 @@ class SpekeDrm extends AbstractModel {
|
|
|
34856
35990
|
super();
|
|
34857
35991
|
|
|
34858
35992
|
/**
|
|
34859
|
-
* Resource
|
|
35993
|
+
* Resource ID. The field content is user-defined.
|
|
34860
35994
|
It supports 1 to 128 characters consisting of digits, letters, underscores (_), and hyphens (-).
|
|
35995
|
+
This field corresponds to the cid field in the Speke request.
|
|
35996
|
+
Note: Different DRM vendors have different restrictions on this field (for example, SDMC Technology Co., Ltd. does not support this field containing underscores). For specific rules, check with the vendors.
|
|
34861
35997
|
* @type {string || null}
|
|
34862
35998
|
*/
|
|
34863
35999
|
this.ResourceId = null;
|
|
@@ -34877,10 +36013,15 @@ Note: different DRM manufacturers have different limitations on the number of su
|
|
|
34877
36013
|
this.Vector = null;
|
|
34878
36014
|
|
|
34879
36015
|
/**
|
|
34880
|
-
* Encryption method.
|
|
36016
|
+
* Encryption method. Options:
|
|
36017
|
+
- **cbcs**: Supports PlayReady, Widevine, FairPlay, Widevine+FairPlay, Widevine+PlayReady, PlayReady+FairPlay, and Widevine+PlayReady+FairPlay.
|
|
36018
|
+
- **cenc**: Supports PlayReady, Widevine, and Widevine+PlayReady.
|
|
34881
36019
|
|
|
34882
|
-
|
|
34883
|
-
|
|
36020
|
+
If not specified:
|
|
36021
|
+
- FairPlay defaults to **cbcs**.
|
|
36022
|
+
- PlayReady and Widevine default to **cenc**.
|
|
36023
|
+
- Widevine+FairPlay, PlayReady+FairPlay, and Widevine+PlayReady+FairPlay default to **cbcs**.
|
|
36024
|
+
- Widevine+PlayReady defaults to **cenc**.
|
|
34884
36025
|
* @type {string || null}
|
|
34885
36026
|
*/
|
|
34886
36027
|
this.EncryptionMethod = null;
|
|
@@ -36912,6 +38053,7 @@ module.exports = {
|
|
|
36912
38053
|
AiRecognitionTaskAsrFullTextSegmentItem: AiRecognitionTaskAsrFullTextSegmentItem,
|
|
36913
38054
|
UserDefineOcrTextReviewTemplateInfoForUpdate: UserDefineOcrTextReviewTemplateInfoForUpdate,
|
|
36914
38055
|
FrameRateConfig: FrameRateConfig,
|
|
38056
|
+
AiAnalysisTaskVideoComprehensionResult: AiAnalysisTaskVideoComprehensionResult,
|
|
36915
38057
|
OverrideTranscodeParameter: OverrideTranscodeParameter,
|
|
36916
38058
|
AiAnalysisTaskClassificationInput: AiAnalysisTaskClassificationInput,
|
|
36917
38059
|
SvgWatermarkInput: SvgWatermarkInput,
|
|
@@ -36927,6 +38069,7 @@ module.exports = {
|
|
|
36927
38069
|
MediaAiAnalysisDescriptionItem: MediaAiAnalysisDescriptionItem,
|
|
36928
38070
|
DeleteAnimatedGraphicsTemplateResponse: DeleteAnimatedGraphicsTemplateResponse,
|
|
36929
38071
|
AiReviewTaskProhibitedOcrResult: AiReviewTaskProhibitedOcrResult,
|
|
38072
|
+
UpdateSmartEraseWatermarkConfig: UpdateSmartEraseWatermarkConfig,
|
|
36930
38073
|
AiRecognitionTaskAsrFullTextResultOutput: AiRecognitionTaskAsrFullTextResultOutput,
|
|
36931
38074
|
AsrHotwordsSetItem: AsrHotwordsSetItem,
|
|
36932
38075
|
AiReviewProhibitedOcrTaskOutput: AiReviewProhibitedOcrTaskOutput,
|
|
@@ -36976,7 +38119,7 @@ module.exports = {
|
|
|
36976
38119
|
SmartEraseTaskResult: SmartEraseTaskResult,
|
|
36977
38120
|
AiRecognitionTaskInput: AiRecognitionTaskInput,
|
|
36978
38121
|
AiAnalysisTaskFrameTagResult: AiAnalysisTaskFrameTagResult,
|
|
36979
|
-
|
|
38122
|
+
AudioTemplateInfo: AudioTemplateInfo,
|
|
36980
38123
|
ExecuteFunctionResponse: ExecuteFunctionResponse,
|
|
36981
38124
|
CoverConfigureInfo: CoverConfigureInfo,
|
|
36982
38125
|
AIRecognitionTemplateItem: AIRecognitionTemplateItem,
|
|
@@ -36989,6 +38132,7 @@ module.exports = {
|
|
|
36989
38132
|
DeleteAIAnalysisTemplateResponse: DeleteAIAnalysisTemplateResponse,
|
|
36990
38133
|
TimeSpotCheck: TimeSpotCheck,
|
|
36991
38134
|
TextWatermarkTemplateInputForUpdate: TextWatermarkTemplateInputForUpdate,
|
|
38135
|
+
SubtitleTransResultItem: SubtitleTransResultItem,
|
|
36992
38136
|
AiReviewTerrorismOcrTaskInput: AiReviewTerrorismOcrTaskInput,
|
|
36993
38137
|
AiRecognitionTaskOcrWordsResultInput: AiRecognitionTaskOcrWordsResultInput,
|
|
36994
38138
|
CreateQualityControlTemplateResponse: CreateQualityControlTemplateResponse,
|
|
@@ -37022,6 +38166,7 @@ module.exports = {
|
|
|
37022
38166
|
MediaProcessTaskAdaptiveDynamicStreamingResult: MediaProcessTaskAdaptiveDynamicStreamingResult,
|
|
37023
38167
|
OcrWordsConfigureInfoForUpdate: OcrWordsConfigureInfoForUpdate,
|
|
37024
38168
|
WatermarkTemplate: WatermarkTemplate,
|
|
38169
|
+
OverrideEraseParameter: OverrideEraseParameter,
|
|
37025
38170
|
TextWatermarkTemplateInput: TextWatermarkTemplateInput,
|
|
37026
38171
|
ModifyAIAnalysisTemplateResponse: ModifyAIAnalysisTemplateResponse,
|
|
37027
38172
|
DescribeWordSamplesResponse: DescribeWordSamplesResponse,
|
|
@@ -37074,6 +38219,7 @@ module.exports = {
|
|
|
37074
38219
|
ComposeTransitionItem: ComposeTransitionItem,
|
|
37075
38220
|
DeleteAIAnalysisTemplateRequest: DeleteAIAnalysisTemplateRequest,
|
|
37076
38221
|
EditMediaRequest: EditMediaRequest,
|
|
38222
|
+
PureSubtitleTransResultOutput: PureSubtitleTransResultOutput,
|
|
37077
38223
|
DeleteAsrHotwordsRequest: DeleteAsrHotwordsRequest,
|
|
37078
38224
|
S3InputInfo: S3InputInfo,
|
|
37079
38225
|
MediaProcessTaskImageSpriteResult: MediaProcessTaskImageSpriteResult,
|
|
@@ -37127,6 +38273,7 @@ module.exports = {
|
|
|
37127
38273
|
AiAnalysisTaskTagResult: AiAnalysisTaskTagResult,
|
|
37128
38274
|
AiAnalysisTaskDelLogoInput: AiAnalysisTaskDelLogoInput,
|
|
37129
38275
|
SmartSubtitleTaskBatchOutput: SmartSubtitleTaskBatchOutput,
|
|
38276
|
+
PureSubtitleTransResult: PureSubtitleTransResult,
|
|
37130
38277
|
AiAnalysisTaskTagOutput: AiAnalysisTaskTagOutput,
|
|
37131
38278
|
CreateAsrHotwordsResponse: CreateAsrHotwordsResponse,
|
|
37132
38279
|
AiAnalysisTaskHighlightOutput: AiAnalysisTaskHighlightOutput,
|
|
@@ -37185,6 +38332,7 @@ module.exports = {
|
|
|
37185
38332
|
CreateWatermarkTemplateRequest: CreateWatermarkTemplateRequest,
|
|
37186
38333
|
ScheduleAnalysisTaskResult: ScheduleAnalysisTaskResult,
|
|
37187
38334
|
ComposeMediaItem: ComposeMediaItem,
|
|
38335
|
+
AdvancedSuperResolutionConfig: AdvancedSuperResolutionConfig,
|
|
37188
38336
|
ScheduleQualityControlTaskResult: ScheduleQualityControlTaskResult,
|
|
37189
38337
|
TerrorismConfigureInfoForUpdate: TerrorismConfigureInfoForUpdate,
|
|
37190
38338
|
DescribePersonSamplesRequest: DescribePersonSamplesRequest,
|
|
@@ -37197,7 +38345,7 @@ module.exports = {
|
|
|
37197
38345
|
LiveRecordTaskInput: LiveRecordTaskInput,
|
|
37198
38346
|
AIAnalysisTemplateItem: AIAnalysisTemplateItem,
|
|
37199
38347
|
AiRecognitionTaskObjectResultItem: AiRecognitionTaskObjectResultItem,
|
|
37200
|
-
|
|
38348
|
+
ComposeMediaConfig: ComposeMediaConfig,
|
|
37201
38349
|
LiveStreamAiReviewImagePoliticalResult: LiveStreamAiReviewImagePoliticalResult,
|
|
37202
38350
|
RawImageWatermarkInput: RawImageWatermarkInput,
|
|
37203
38351
|
DescribeImageSpriteTemplatesRequest: DescribeImageSpriteTemplatesRequest,
|
|
@@ -37255,6 +38403,7 @@ module.exports = {
|
|
|
37255
38403
|
AiReviewPoliticalAsrTaskInput: AiReviewPoliticalAsrTaskInput,
|
|
37256
38404
|
LiveStreamAiAnalysisResultInfo: LiveStreamAiAnalysisResultInfo,
|
|
37257
38405
|
SegmentSpecificInfo: SegmentSpecificInfo,
|
|
38406
|
+
AiAnalysisTaskVideoComprehensionInput: AiAnalysisTaskVideoComprehensionInput,
|
|
37258
38407
|
DescribeStreamLinkSecurityGroupResponse: DescribeStreamLinkSecurityGroupResponse,
|
|
37259
38408
|
MediaAiAnalysisTagItem: MediaAiAnalysisTagItem,
|
|
37260
38409
|
TranscodeTemplate: TranscodeTemplate,
|
|
@@ -37307,7 +38456,6 @@ module.exports = {
|
|
|
37307
38456
|
AiReviewPoliticalAsrTaskOutput: AiReviewPoliticalAsrTaskOutput,
|
|
37308
38457
|
TEHDConfigForUpdate: TEHDConfigForUpdate,
|
|
37309
38458
|
ModifyPersonSampleRequest: ModifyPersonSampleRequest,
|
|
37310
|
-
AudioTemplateInfo: AudioTemplateInfo,
|
|
37311
38459
|
AsrFullTextConfigureInfo: AsrFullTextConfigureInfo,
|
|
37312
38460
|
AiAnalysisTaskVideoRemakeResult: AiAnalysisTaskVideoRemakeResult,
|
|
37313
38461
|
ArtifactRepairConfig: ArtifactRepairConfig,
|
|
@@ -37317,6 +38465,7 @@ module.exports = {
|
|
|
37317
38465
|
ComposeCanvas: ComposeCanvas,
|
|
37318
38466
|
AiReviewPornTaskOutput: AiReviewPornTaskOutput,
|
|
37319
38467
|
CreateWorkflowResponse: CreateWorkflowResponse,
|
|
38468
|
+
AiAnalysisTaskVideoComprehensionOutput: AiAnalysisTaskVideoComprehensionOutput,
|
|
37320
38469
|
AiRecognitionTaskAsrFullTextResult: AiRecognitionTaskAsrFullTextResult,
|
|
37321
38470
|
ModifyAIRecognitionTemplateResponse: ModifyAIRecognitionTemplateResponse,
|
|
37322
38471
|
PoliticalImgReviewTemplateInfo: PoliticalImgReviewTemplateInfo,
|
|
@@ -37355,6 +38504,7 @@ module.exports = {
|
|
|
37355
38504
|
AiAnalysisTaskFrameTagInput: AiAnalysisTaskFrameTagInput,
|
|
37356
38505
|
MediaAiAnalysisFrameTagSegmentItem: MediaAiAnalysisFrameTagSegmentItem,
|
|
37357
38506
|
AiRecognitionTaskAsrWordsResultItem: AiRecognitionTaskAsrWordsResultItem,
|
|
38507
|
+
HeadTailParameter: HeadTailParameter,
|
|
37358
38508
|
DescribeTaskDetailResponse: DescribeTaskDetailResponse,
|
|
37359
38509
|
AiAnalysisTaskDubbingResult: AiAnalysisTaskDubbingResult,
|
|
37360
38510
|
DeleteImageSpriteTemplateRequest: DeleteImageSpriteTemplateRequest,
|
|
@@ -37419,7 +38569,9 @@ module.exports = {
|
|
|
37419
38569
|
DescribeSmartSubtitleTemplatesResponse: DescribeSmartSubtitleTemplatesResponse,
|
|
37420
38570
|
SchedulesInfo: SchedulesInfo,
|
|
37421
38571
|
DisableWorkflowRequest: DisableWorkflowRequest,
|
|
38572
|
+
FrameRateWithDenConfig: FrameRateWithDenConfig,
|
|
37422
38573
|
PoliticalConfigureInfoForUpdate: PoliticalConfigureInfoForUpdate,
|
|
38574
|
+
DiffusionEnhanceConfig: DiffusionEnhanceConfig,
|
|
37423
38575
|
DescribeWatermarkTemplatesResponse: DescribeWatermarkTemplatesResponse,
|
|
37424
38576
|
DeleteQualityControlTemplateResponse: DeleteQualityControlTemplateResponse,
|
|
37425
38577
|
CreateAnimatedGraphicsTemplateRequest: CreateAnimatedGraphicsTemplateRequest,
|
|
@@ -37458,6 +38610,7 @@ module.exports = {
|
|
|
37458
38610
|
DescribeStreamLinkSecurityGroupRequest: DescribeStreamLinkSecurityGroupRequest,
|
|
37459
38611
|
AiReviewPoliticalOcrTaskOutput: AiReviewPoliticalOcrTaskOutput,
|
|
37460
38612
|
OcrFullTextConfigureInfo: OcrFullTextConfigureInfo,
|
|
38613
|
+
UpdateSmartErasePrivacyConfig: UpdateSmartErasePrivacyConfig,
|
|
37461
38614
|
ModifyLiveRecordTemplateRequest: ModifyLiveRecordTemplateRequest,
|
|
37462
38615
|
ModifySmartSubtitleTemplateRequest: ModifySmartSubtitleTemplateRequest,
|
|
37463
38616
|
DescribeTranscodeTemplatesResponse: DescribeTranscodeTemplatesResponse,
|
|
@@ -37467,6 +38620,7 @@ module.exports = {
|
|
|
37467
38620
|
MediaAiAnalysisFrameTagItem: MediaAiAnalysisFrameTagItem,
|
|
37468
38621
|
ActivityResItem: ActivityResItem,
|
|
37469
38622
|
LiveActivityResItem: LiveActivityResItem,
|
|
38623
|
+
UpdateSmartEraseSubtitleConfig: UpdateSmartEraseSubtitleConfig,
|
|
37470
38624
|
EraseTimeArea: EraseTimeArea,
|
|
37471
38625
|
SpekeDrm: SpekeDrm,
|
|
37472
38626
|
AiAnalysisTaskDelLogoResult: AiAnalysisTaskDelLogoResult,
|