Supplementary information about the JobParams and Output request parameters of the SubmitIProductionJob operation, and the Job response parameter of the QueryIProductionJob operation.
Caption Extraction: CaptionExtraction
|
Name |
Type |
Description |
|
Output |
String |
If the JobParams parameter is configured to separate Chinese and English, |
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
fps |
INT |
No |
The sampling frame rate. Valid values: [2,10]. Default value: 5. |
|
roi |
LIST |
No |
The region of interest.
|
|
sep |
BOOLEAN |
No |
Whether to generate separate Chinese and English SRT files. Default value: False. |
|
formatter |
String |
No |
The format string of the SRT caption. Example: "{\an8}". Default value: N/A. |
|
track |
String |
No |
If you set this parameter to "main", only the main caption track is extracted. If you do not specify this parameter, all captions that appear in the specified region are extracted by default. Default: None. |
Callback format
JSON format
{
"Code":"Success",
"Details":[],"FunctionName":"CaptionExtraction",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success","State":"Succes"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information: |
Green screen matting: VideoGreenScreenMatting
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
bgimage |
String |
No |
The replacement background image. Example: http://example-image-****.example-location.aliyuncs.com/example/example.jpg.
|
Callback format
JSON format
{
"Code":"Success",
"Details":[],"FunctionName":"VideoGreenScreenMatting",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information: |
Chorus detection: MusicSegmentDetect
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
None |
None |
None |
None |
Callback format
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"MusicSegmentDetect",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information: |
Video Caption Removal: VideoDetext
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
Text |
LIST |
No |
The location of a caption box that you want to remove. A maximum of two caption boxes are supported. Example: [[bx1, by1, bw1, bh1], [bx2, by2, bw2, bh2]]. Note
The location of a caption box must be specified by bx, by, bw, and bh at the same time.
|
|
LimitRegion |
LIST |
No |
The area in which you want to remove captions. The system detects the captions within the specified area and removes the detected captions. This parameter has a lower priority than the Text parameter that directly specifies the location of caption boxes to be removed. Example: |
Callback format
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"VideoDetext",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information: |
Convert horizontal videos to vertical: VideoH2V
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
None |
None |
None |
None |
Callback format
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"VideoH2V",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
STRING |
The detailed information about the job result. Example of success result information: |
VideoDelogo
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
Logo |
String |
No |
The position of a logo that you want to remove. Set the value in the format of [xmin, ymin, width, height]. You can remove up to two logos at a time. Example: [[0, 0, 0.3, 0.3], [0.7, 0, 0.3, 0.3]]. |
Callback format
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"VideoDelogo",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information: |
Smart Thumbnail: Cover
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
Model |
String |
No |
The smart thumbnail model. If left empty, a still thumbnail is generated. Set to gif to generate an animated thumbnail. |
Callback format
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"Cover",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information: |
Video synopsis: VideoClip
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
None |
None |
None |
None |
Callback format
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"VideoClip",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information:
|
ImageH2V
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
None |
None |
None |
None |
Callback format
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"ImageH2V",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The details of the job result. This parameter is returned when the job is successful. Example: |
Remove logos from images: ImageDelogo
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
None |
None |
None |
None |
Callback format
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"ImageDelogo",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
STRING |
The detailed information about the job result. Example of success result information: |
Beat detection: AudioBeatDetection
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
None |
None |
None |
None |
Callback format
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"AudioBeatDetection",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
STRING |
The detailed information about the job result. Example of success result information: |
AudioMixing
Parameter description of JobParams
|
Name |
Type |
Required |
Description |
|
inputs |
String |
No |
The URL of the audio track file to mix. Only one URL is supported. Example: |
Callback format
JSON format
{
"Code":"Success",
"FunctionName":"AudioMixing",
"JobId":"158688059d8443a68b78a65e55b3****",
"Message":"Successful.",
"State":"Success",
"Type":"IProduction",
"UserData":"test"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information: |
3D style and face stylization: ImageCartoonize
Parameter description of Output
|
Name |
Type |
Description |
|
Output |
STRING |
|
Callback Example
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"ImageCartoonize",
"JobId":"39f8e0bc005e4f309379701645f4744c",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information: |
Audio quality assessment: AudioQualityAssessment
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
Details of a successful job result. |
Result:
{
"Code" : "Success",
"Data" : "{
\"result\":[{
\"Discontinuity\":\"Good\",
\"Loudness\":\"Excellent\",
\"Worst MOS(0-5)\":\"0.38\",
\"Discontinuity(0-5)\":\"3.52\",
\"Speech Ratio\":\"48.55\",
\"Loudness(0-5)\":\"4.91\",
\"Worst Discontinuity(0-5)\":\"0.88\",
\"Worst Coloration(0-5)\":\"0.42\",
\"Channel\":\"1\",
\"Coloration(0-5)\":\"0.99\",
\"Bad Mute Ratio(%)\":\"0.0\",
\"Time\":\"2022-12-02 16:14:06\",
\"Noisiness(0-5)\":\"3.28\",
\"MOS\":\"Poor\",
\"Worst Noisiness(0-5)\":\"0.91\",
\"Double Talk Ratio(%)\":\"19.23\",
\"Input\":\"/home/admin/algo/quality****/example.wav\",
\"Total Duration\":\"42.78\",
\"Noisiness\":\"Good\",
\"Tag\":\"Valid\",
\"MOS(0-5)\":\"1.01\",
\"Loudness(-90dB-0dB)\":\"-0.59\",
\"Coloration\":\"Bad\",
\"Saturated Ratio(%)\":\"37.55\"
},
{
\"Discontinuity\":\"Fair\",
\"Loudness\":\"Excellent\",
\"Worst MOS(0-5)\":\"0.65\",
\"Discontinuity(0-5)\":\"2.45\",
\"Speech Ratio\":\"41.68\",
\"Loudness(0-5)\":\"4.52\",
\"Worst Discontinuity(0-5)\":\"0.66\",
\"Worst Coloration(0-5)\":\"0.72\",
\"Channel\":\"2\",
\"Coloration(0-5)\":\"2.34\",
\"Bad Mute Ratio(%)\":\"0.0\",
\"Time\":\"2022-12-02 16:14:06\",
\"Noisiness(0-5)\":\"2.53\",
\"MOS\":\"Poor\",
\"Worst Noisiness(0-5)\":\"0.67\",
\"Double Talk Ratio(%)\":\"25.93\",
\"Input\":\"/home/admin/algo/quality****/example.wav\",
\"Total Duration\":\"42.78\",
\"Noisiness\":\"Fair\",
\"Tag\":\"Valid\",
\"MOS(0-5)\":\"1.69\",
\"Loudness(-90dB-0dB)\":\"-4.82\",
\"Coloration\":\"Fair\",
\"Saturated Ratio(%)\":\"0.0\"
}]
}",
"Message" : "Successful."
}
Parameters
|
Parameter |
Description |
|
Time |
The timestamp generated when the input file was scored. |
|
Input |
The input file name. |
|
Total Duration |
The duration of the input file. Unit: seconds. |
|
Speech Ratio |
The ratio of the duration of the audio data to the duration of the input file. Valid values: [0,100]. Unit: percentage. |
|
Tag |
A tag that indicates whether the detection is valid.
Note
|
|
MOS(0-5) |
The MOS of the input file, which describes the quality of the audio data. Valid values: [0,5]. |
|
MOS |
The score level. Valid values:
|
|
Discontinuity(0-5) |
The continuity score of the audio data. The continuity score decreases due to the following reasons: the stuttering issue of audio data capture, echo issue due to multi-channel audio, and packet loss issue due to poor network connectivity. Valid values: [0,5]. |
|
Discontinuity |
The continuity score level. Valid values:
|
|
Coloration(0-5) |
The intelligibility score of the audio data. The intelligibility score decreases due to the following reasons: large reverberation, low bitrate, encoding error, and ambiguous pronunciation. Valid values: [0,5]. |
|
Coloration |
The score level. Valid values:
|
|
Noisiness(0-5) |
The noise score of the audio data. Valid values: [0,5]. Note
The noise in the audio data includes environmental noise, such as the noise from fans and streets, background noise from the device of poor quality, and residual noise caused by the incomplete echo processing of the noise pickup equipment. If noise is not eliminated well during audio data processing, the noise score increases. |
|
Noisiness |
The score level. Valid values:
|
|
Loudness(0-5) |
The loudness score of human voice. Higher values indicate clearer and louder voice; lower values indicate barely audible voice. Valid values: [0,5]. |
|
Loudness |
The score level. Valid values:
|
|
Loudness(-90dB-0dB) |
The average volume of the human voice. Valid values: [-90,0]. Unit: decibel.
|
|
Double Talk Ratio(%) |
The double talk ratio helps determine the possible causes of a low Discontinuity score. The value is a percentage that ranges from 0 to 100. Note
Two-channel audio data indicates that sounds simultaneously exist in two channels, such as the scenario in which the device leaks residual echo. This scenario may result in a low continuity score. Therefore, this parameter helps determine the possible factors of a low continuity score. |
|
Bad Mute Ratio(%) |
The percentage of abnormal mute frames. All abnormal mute frames of the audio data that does not include two-channel audio data are counted, excluding mute frames caused by cutting two-channel audio data. Valid values: [0,100]. Unit: percentage. |
|
Saturated Ratio(%) |
This metric indicates the percentage of a speech segment that contains popping sounds. It helps diagnose widespread popping issues caused by an excessively high recording volume. The value is a percentage that ranges from 0 to 100. |
|
Worst MOS(0-5) |
The lowest MOS during the scoring process. Valid values: [0,5]. |
|
Worst Discontinuity(0-5) |
The worst discontinuity score during the scoring process. Valid values: [0, 5]. |
|
Worst Noisiness(0-5) |
The highest noise score during the scoring process. Valid values: [0,5]. |
|
Worst Coloration(0-5) |
The worst coloration score during the scoring process. Valid values: [0, 5]. |
FaceBeauty
Parameter description of Job
|
Name |
Type |
Required |
Description |
|
beauty_params |
String |
No |
The parameters of the FaceBeauty operation. Example: "whiten=20,smooth=50,face_thin=50" |
Callback Example
JSON format
{
"Code":"Success",
"Details":[],
"FunctionName":"FaceBeauty",
"JobId":"39f8e0bc005e4f309379701645f4****",
"Message":"success",
"State":"Success",
"Type":"IProduction"
}
Parameters
|
Parameter |
Type |
Description |
|
skin_beauty_enable |
int |
Whether to enable skin polishing.
|
|
shape_beauty_enable |
int |
Whether to enable face shape adjustment.
|
|
whiten |
INT |
The degree of skin whitening. The greater the value, the whiter the skin looks.
|
|
smooth |
int |
The degree of skin smoothing. The greater the value, the more smooth the skin looks.
|
|
detail |
INT |
The degree of skin granularity. The greater the value, the more fine-grained the skin is, and the more skin details exist.
|
|
skin_model |
int |
Whether to enable the skin model feature. When enabled, skin whitening applies only to areas detected as skin.
|
|
cheek_thin |
float |
The degree of frontal bone thinning.
|
|
face_cut |
float |
The degree of cheekbone narrowing.
|
|
face_thin |
float |
The degree of face thinning.
|
|
face_length |
float |
The degree of face length adjustment (two-way).
|
|
chin_length |
float |
The degree of chin length adjustment (two-way).
|
|
chin_thin |
float |
The degree of chin thinning.
|
|
eye_size |
float |
The degree of eye enlargement.
|
|
eye_corner1 |
float |
The degree of vertical canthus adjustment (two-way).
|
|
eye_distance |
float |
The degree of eye distance adjustment (two-way).
|
|
nose_thin |
float |
The degree of nose slimming (two-way).
|
|
nose_wing |
float |
The degree of nasal alar slimming (two-way).
|
|
nose_length |
float |
The degree of nose length adjustment (two-way).
|
|
mouth_size |
FLOAT |
The degree of mouth size adjustment (two-way).
|
|
mouth_position |
float |
The degree of philtrum length adjustment (two-way).
|
|
lip_thickness |
float |
The degree of lip thickness adjustment (two-way).
|
|
hair_line |
float |
The degree of hairline adjustment (two-way).
|
|
smile |
float |
The degree of smile enhancement.
|
|
detect_mode |
float |
The face detection mode.
Note
In video mode, multiple frames are used to trace faces to ensure more stable results. |
|
detect_level |
float |
The resolution of the face detector. Smaller faces may not be detected at lower resolutions.
|
|
threshold |
float |
The confidence threshold for face detection.
|
|
detect_interval |
float |
The number of frames between consecutive face detections in video mode.
|
|
max_face_num |
float |
The maximum number of detectable faces.
|
|
min_face |
float |
The minimum face width in pixels.
|
Parameter description of Job
|
Name |
Type |
Description |
|
Result |
String |
The detailed information about the job result. Example of success result information: {"Code":"Success","Data":"{\"result\":[{\"file\":\"result.mp4\"}]}","Message":"Successful."}. |
Intelligent noise reduction: SpeechDenoise
The input audio file must be in the WAV format with a sampling rate of 16,000 Hz or 48,000 Hz.
The format and sampling rate of the output audio file are the same as those of the input audio file.