public class SmartSubtitleTemplateItem extends AbstractModel
header, skipSign
Constructor and Description |
---|
SmartSubtitleTemplateItem() |
SmartSubtitleTemplateItem(SmartSubtitleTemplateItem 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 |
getAliasName()
Get Alias of the preset smart subtitle template.
|
AsrHotWordsConfigure |
getAsrHotWordsConfigure()
Get ASR hotword lexicon parameter.
|
String |
getAsrHotWordsLibraryName()
Get Name of the hotword lexicon associated with the template.
|
String |
getComment()
Get Smart subtitle template description.
|
String |
getCreateTime()
Get Template creation time in [ISO datetime format](https://intl.cloud.tencent.com/document/product/862/37710?from_cn_redirect=1#52).
|
Long |
getDefinition()
Get Unique identifier of the smart subtitle template.
|
String |
getName()
Get Smart subtitle template name.
|
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 |
getType()
Get Template type.
|
String |
getUpdateTime()
Get Last modification time of the template in [ISO datetime format](https://intl.cloud.tencent.com/document/product/862/37710?from_cn_redirect=1#52).
|
String |
getVideoSrcLanguage()
Get Source language of the video with smart subtitles.
|
void |
setAliasName(String AliasName)
Set Alias of the preset smart subtitle template.
|
void |
setAsrHotWordsConfigure(AsrHotWordsConfigure AsrHotWordsConfigure)
Set ASR hotword lexicon parameter.
|
void |
setAsrHotWordsLibraryName(String AsrHotWordsLibraryName)
Set Name of the hotword lexicon associated with the template.
|
void |
setComment(String Comment)
Set Smart subtitle template description.
|
void |
setCreateTime(String CreateTime)
Set Template creation time in [ISO datetime format](https://intl.cloud.tencent.com/document/product/862/37710?from_cn_redirect=1#52).
|
void |
setDefinition(Long Definition)
Set Unique identifier of the smart subtitle template.
|
void |
setName(String Name)
Set Smart subtitle template name.
|
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 |
setType(String Type)
Set Template type.
|
void |
setUpdateTime(String UpdateTime)
Set Last modification time of the template in [ISO datetime format](https://intl.cloud.tencent.com/document/product/862/37710?from_cn_redirect=1#52).
|
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 SmartSubtitleTemplateItem()
public SmartSubtitleTemplateItem(SmartSubtitleTemplateItem source)
public Long getDefinition()
public void setDefinition(Long Definition)
Definition
- Unique identifier of the smart subtitle template.public String getName()
public void setName(String Name)
Name
- Smart subtitle template name.
Note: This field may return null, indicating that no valid value can be obtained.public String getComment()
public void setComment(String Comment)
Comment
- Smart subtitle template description.
Note: This field may return null, indicating that no valid value can be obtained.public String getType()
public void setType(String Type)
Type
- Template type. Valid values:
Preset: system preset template
Custom: user-defined template
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 getAsrHotWordsLibraryName()
public void setAsrHotWordsLibraryName(String AsrHotWordsLibraryName)
AsrHotWordsLibraryName
- Name of the hotword lexicon associated with the template.
Note: This field may return null, indicating that no valid value can be obtained.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 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 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 String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Template creation time in [ISO datetime format](https://intl.cloud.tencent.com/document/product/862/37710?from_cn_redirect=1#52).public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- Last modification time of the template in [ISO datetime format](https://intl.cloud.tencent.com/document/product/862/37710?from_cn_redirect=1#52).public String getAliasName()
public void setAliasName(String AliasName)
AliasName
- Alias of the preset smart subtitle template.
Note: This field may return null, indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.