public class RawSmartSubtitleParameter extends AbstractModel
header, skipSign
Constructor and Description |
---|
RawSmartSubtitleParameter() |
RawSmartSubtitleParameter(RawSmartSubtitleParameter 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 |
---|---|
AsrHotWordsConfigure |
getAsrHotWordsConfigure()
Get ASR hotword lexicon parameter.
|
String |
getExtInfo()
Get Custom parameter.
|
String |
getSubtitleFormat()
Get Smart subtitle file format.
|
Long |
getSubtitleType()
Get Smart subtitle language type.
|
String |
getTranslateDstLanguage()
Get Target language for subtitle translation.
|
String |
getTranslateSwitch()
Get Subtitle translation switch.
|
String |
getVideoSrcLanguage()
Get Source language of the video with smart subtitles.
|
void |
setAsrHotWordsConfigure(AsrHotWordsConfigure AsrHotWordsConfigure)
Set ASR hotword lexicon parameter.
|
void |
setExtInfo(String ExtInfo)
Set Custom parameter.
|
void |
setSubtitleFormat(String SubtitleFormat)
Set Smart subtitle file format.
|
void |
setSubtitleType(Long SubtitleType)
Set Smart subtitle language type.
|
void |
setTranslateDstLanguage(String TranslateDstLanguage)
Set Target language for subtitle translation.
|
void |
setTranslateSwitch(String TranslateSwitch)
Set Subtitle translation switch.
|
void |
setVideoSrcLanguage(String VideoSrcLanguage)
Set Source language of the video with smart subtitles.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public RawSmartSubtitleParameter()
public RawSmartSubtitleParameter(RawSmartSubtitleParameter source)
public Long getSubtitleType()
public void setSubtitleType(Long SubtitleType)
SubtitleType
- Smart subtitle language type.
0: source language1: target language
2: source language + target language
The value can only be 0 when TranslateSwitch is set to OFF.The value can only be 1 or 2 when TranslateSwitch is set to ON.public String getVideoSrcLanguage()
public void setVideoSrcLanguage(String VideoSrcLanguage)
VideoSrcLanguage
- Source language of the video with smart subtitles.
Supported languages:
zh: Simplified Chinese
en: English
ja: Japanese
ko: Korean
zh-PY: Chinese-English-Cantonese
zh-medical: Medical Chinese
yue: Cantonese
vi: Vietnamese
ms: Malay
id: Indonesian
fli: Filipino
th: Thai
pt: Portuguese
tr: Turkish
ar: Arabic
es: Spanish
hi: Hindi
fr: French
de: German
zh-dialect: Chinese dialectpublic String getSubtitleFormat()
public void setSubtitleFormat(String SubtitleFormat)
SubtitleFormat
- Smart subtitle file format.
vtt: WebVTT format
If this field is left blank, no subtitle file will be generated.
Note: This field may return null, indicating that no valid value can be obtained.public String getTranslateSwitch()
public void setTranslateSwitch(String TranslateSwitch)
TranslateSwitch
- Subtitle translation switch.
ON: enable translation
OFF: disable translation
Note: This field may return null, indicating that no valid value can be obtained.public String getTranslateDstLanguage()
public void setTranslateDstLanguage(String TranslateDstLanguage)
TranslateDstLanguage
- Target language for subtitle translation.
This field takes effect when TranslateSwitch is set to ON.
Supported languages:
zh: Simplified Chinese
en: English
ja: Japanese
ko: Korean
fr: French
es: Spanish
it: Italian
de: German
tr: Turkish
ru: Russian
pt: Portuguese
vi: Vietnamese
id: Indonesian
ms: Malay
th: Thai
ar: Arabic
hi: Hindi
Note: This field may return null, indicating that no valid value can be obtained.public AsrHotWordsConfigure getAsrHotWordsConfigure()
public void setAsrHotWordsConfigure(AsrHotWordsConfigure AsrHotWordsConfigure)
AsrHotWordsConfigure
- ASR hotword lexicon parameter.
Note: This field may return null, indicating that no valid value can be obtained.public String getExtInfo()
public void setExtInfo(String ExtInfo)
ExtInfo
- Custom parameter.Copyright © 2025. All rights reserved.