public class AudioResult extends AbstractModel
Constructor and Description |
---|
AudioResult() |
AudioResult(AudioResult source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getDuration()
Get This field is used to return the length of an audio file in seconds.
|
String |
getExtra()
Get This field is used to return the additional information (Extra) in the input parameters.
|
Long |
getHitFlag()
Get This field is used to return whether the moderated content hit the moderation model.
|
String |
getLabel()
Get This field is used to return the maliciousness tag in the detection result.
Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content. |
AudioResultDetailLanguageResult[] |
getLanguageResults()
Get This field is used to return the detailed minor language detection result of an audio.
|
AudioResultDetailMoanResult[] |
getMoanResults()
Get This field is used to return the detailed moan detection result of an audio file.
|
RecognitionResult[] |
getRecognitionResults()
Get List of recognized category labels
Note: This field may return `null`, indicating that no valid values can be obtained.
|
Long |
getScore()
Get This field is used to return the confidence under the current tag.
|
String |
getSubLabel()
Get This field is used to return a subtag under the current tag (Lable).
|
String |
getSuggestion()
Get This field is used to return the operation suggestion.
|
String |
getText()
Get This field is used to return the text information generated by recognizing an audio file with ASR.
|
AudioResultDetailTextResult[] |
getTextResults()
Get This field is used to return the detailed moderation result of the text generated by recognizing an audio file with ASR.
|
String |
getUrl()
Get This field is used to return the URL where audio segments are stored, which is valid for 1 day.
|
void |
setDuration(String Duration)
Set This field is used to return the length of an audio file in seconds.
|
void |
setExtra(String Extra)
Set This field is used to return the additional information (Extra) in the input parameters.
|
void |
setHitFlag(Long HitFlag)
Set This field is used to return whether the moderated content hit the moderation model.
|
void |
setLabel(String Label)
Set This field is used to return the maliciousness tag in the detection result.
Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content. |
void |
setLanguageResults(AudioResultDetailLanguageResult[] LanguageResults)
Set This field is used to return the detailed minor language detection result of an audio.
|
void |
setMoanResults(AudioResultDetailMoanResult[] MoanResults)
Set This field is used to return the detailed moan detection result of an audio file.
|
void |
setRecognitionResults(RecognitionResult[] RecognitionResults)
Set List of recognized category labels
Note: This field may return `null`, indicating that no valid values can be obtained.
|
void |
setScore(Long Score)
Set This field is used to return the confidence under the current tag.
|
void |
setSubLabel(String SubLabel)
Set This field is used to return a subtag under the current tag (Lable).
|
void |
setSuggestion(String Suggestion)
Set This field is used to return the operation suggestion.
|
void |
setText(String Text)
Set This field is used to return the text information generated by recognizing an audio file with ASR.
|
void |
setTextResults(AudioResultDetailTextResult[] TextResults)
Set This field is used to return the detailed moderation result of the text generated by recognizing an audio file with ASR.
|
void |
setUrl(String Url)
Set This field is used to return the URL where audio segments are stored, which is valid for 1 day.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public AudioResult()
public AudioResult(AudioResult source)
public Long getHitFlag()
public void setHitFlag(Long HitFlag)
HitFlag
- This field is used to return whether the moderated content hit the moderation model. Valid values: 0 (**no**), 1 (**yes**).
Note: This field may return `null`, indicating that no valid values can be obtained.public String getLabel()
public void setLabel(String Label)
Label
- This field is used to return the maliciousness tag in the detection result.public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion
- This field is used to return the operation suggestion. When you get the determination result, the returned value indicates the suggested operation.public Long getScore()
public void setScore(Long Score)
Score
- This field is used to return the confidence under the current tag. Value range: 0 (**the lowest confidence**)–100 (**the highest confidence**), where a higher value indicates that the text is more likely to fall into the category of the current returned tag; for example, *Porn 99* indicates that the text is highly likely to be pornographic.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getText()
public void setText(String Text)
Text
- This field is used to return the text information generated by recognizing an audio file with ASR. Audio files of up to **5 hours** can be recognized. If this limit is exceeded, an error will be reported by the API.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getUrl()
public void setUrl(String Url)
Url
- This field is used to return the URL where audio segments are stored, which is valid for 1 day.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getDuration()
public void setDuration(String Duration)
Duration
- This field is used to return the length of an audio file in seconds.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getExtra()
public void setExtra(String Extra)
Extra
- This field is used to return the additional information (Extra) in the input parameters. If it is not configured, an empty value will be returned by default.public AudioResultDetailTextResult[] getTextResults()
public void setTextResults(AudioResultDetailTextResult[] TextResults)
TextResults
- This field is used to return the detailed moderation result of the text generated by recognizing an audio file with ASR. For the specific result, see the detailed description of the `AudioResultDetailLanguageResult` data structure.
Note: This field may return `null`, indicating that no valid values can be obtained.public AudioResultDetailMoanResult[] getMoanResults()
public void setMoanResults(AudioResultDetailMoanResult[] MoanResults)
MoanResults
- This field is used to return the detailed moan detection result of an audio file. For the specific result, see the detailed description of the `AudioResultDetailMoanResult` data structure.
Note: This field may return `null`, indicating that no valid values can be obtained.public AudioResultDetailLanguageResult[] getLanguageResults()
public void setLanguageResults(AudioResultDetailLanguageResult[] LanguageResults)
LanguageResults
- This field is used to return the detailed minor language detection result of an audio. For the specific result, see the detailed description of the `AudioResultDetailLanguageResult` data structure.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getSubLabel()
public void setSubLabel(String SubLabel)
SubLabel
- This field is used to return a subtag under the current tag (Lable).
Note: This field may return `null`, indicating that no valid values can be obtained.public RecognitionResult[] getRecognitionResults()
public void setRecognitionResults(RecognitionResult[] RecognitionResults)
RecognitionResults
- List of recognized category labels
Note: This field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.