
com.tencentcloudapi.vod.v20180717.models.AsrTranslateConfigureInfo Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.vod.v20180717.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class AsrTranslateConfigureInfo extends AbstractModel {
/**
* Voice translation task switch, optional values:
ON: switch on;
OFF: switch off. Note: The task results of voice translation include asr full text recognition result. To avoid duplicate charges, simultaneous activation of voice translation and asr full text recognition features is prohibited.
*/
@SerializedName("Switch")
@Expose
private String Switch;
/**
* Media source language. When the Switch is ON, this parameter is mandatory. Value range:
`zh`: Chinese;
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`vi`: Vietnamese;
`ms`: Malay;
`th`: Thai;
`pt`: Portuguese;
`tr`: Turkish;
`ar`: Arabic;
`es`: Spanish;
`hi`: Hindi;
`fr`: French.
*/
@SerializedName("SrcLanguage")
@Expose
private String SrcLanguage;
/**
* Translation target language. When the Switch is ON, this parameter is mandatory.
When SrcLanguage is zh (Chinese), the value range:
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay.
When SrcLanguage is en (English), the value range:
`zh`: Chinese;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay;
`ar`: Arabic;
`hi`: Hindi.
When SrcLanguage is ja (Japanese), the valid options are:
`zh`: Chinese;
`en`: English;
`ko`: Korean.
When SrcLanguage is ko (Korean), the valid options are:
`zh`: Chinese;
`en`: English;
`ja`: Japanese.
When SrcLanguage is vi (Vietnamese), ms (Malay), or th (Thai), the valid options are:
`zh`: Chinese;
`en`: English.
When SrcLanguage is pt (Portuguese), the valid options are:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian.
When SrcLanguage is tr (Turkish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is es (Spanish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is ar (Arabic) or hi (Hindi), the value range is:
`en`: English.
When SrcLanguage is fr (French), the value range is:
`zh`: Chinese;
`en`: English;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
*/
@SerializedName("DstLanguage")
@Expose
private String DstLanguage;
/**
* Generated subtitle file format list. If not filled or an empty array is provided, no subtitle file will be generated. Optional values:
vtt: generate WebVTT subtitle file;
srt: generate SRT subtitle files. Note: VOD media assets only support adding vtt subtitles. Therefore, VOD will add generated subtitles to media assets only when SubtitleFormats includes vtt.
*/
@SerializedName("SubtitleFormats")
@Expose
private String [] SubtitleFormats;
/**
* Specify subtitle name, length limit: 64 characters. This value will be displayed by the player. If not provided, VOD will automatically generate it.
*/
@SerializedName("SubtitleName")
@Expose
private String SubtitleName;
/**
* Get Voice translation task switch, optional values:
ON: switch on;
OFF: switch off. Note: The task results of voice translation include asr full text recognition result. To avoid duplicate charges, simultaneous activation of voice translation and asr full text recognition features is prohibited.
* @return Switch Voice translation task switch, optional values:
ON: switch on;
OFF: switch off. Note: The task results of voice translation include asr full text recognition result. To avoid duplicate charges, simultaneous activation of voice translation and asr full text recognition features is prohibited.
*/
public String getSwitch() {
return this.Switch;
}
/**
* Set Voice translation task switch, optional values:
ON: switch on;
OFF: switch off. Note: The task results of voice translation include asr full text recognition result. To avoid duplicate charges, simultaneous activation of voice translation and asr full text recognition features is prohibited.
* @param Switch Voice translation task switch, optional values:
ON: switch on;
OFF: switch off. Note: The task results of voice translation include asr full text recognition result. To avoid duplicate charges, simultaneous activation of voice translation and asr full text recognition features is prohibited.
*/
public void setSwitch(String Switch) {
this.Switch = Switch;
}
/**
* Get Media source language. When the Switch is ON, this parameter is mandatory. Value range:
`zh`: Chinese;
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`vi`: Vietnamese;
`ms`: Malay;
`th`: Thai;
`pt`: Portuguese;
`tr`: Turkish;
`ar`: Arabic;
`es`: Spanish;
`hi`: Hindi;
`fr`: French.
* @return SrcLanguage Media source language. When the Switch is ON, this parameter is mandatory. Value range:
`zh`: Chinese;
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`vi`: Vietnamese;
`ms`: Malay;
`th`: Thai;
`pt`: Portuguese;
`tr`: Turkish;
`ar`: Arabic;
`es`: Spanish;
`hi`: Hindi;
`fr`: French.
*/
public String getSrcLanguage() {
return this.SrcLanguage;
}
/**
* Set Media source language. When the Switch is ON, this parameter is mandatory. Value range:
`zh`: Chinese;
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`vi`: Vietnamese;
`ms`: Malay;
`th`: Thai;
`pt`: Portuguese;
`tr`: Turkish;
`ar`: Arabic;
`es`: Spanish;
`hi`: Hindi;
`fr`: French.
* @param SrcLanguage Media source language. When the Switch is ON, this parameter is mandatory. Value range:
`zh`: Chinese;
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`vi`: Vietnamese;
`ms`: Malay;
`th`: Thai;
`pt`: Portuguese;
`tr`: Turkish;
`ar`: Arabic;
`es`: Spanish;
`hi`: Hindi;
`fr`: French.
*/
public void setSrcLanguage(String SrcLanguage) {
this.SrcLanguage = SrcLanguage;
}
/**
* Get Translation target language. When the Switch is ON, this parameter is mandatory.
When SrcLanguage is zh (Chinese), the value range:
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay.
When SrcLanguage is en (English), the value range:
`zh`: Chinese;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay;
`ar`: Arabic;
`hi`: Hindi.
When SrcLanguage is ja (Japanese), the valid options are:
`zh`: Chinese;
`en`: English;
`ko`: Korean.
When SrcLanguage is ko (Korean), the valid options are:
`zh`: Chinese;
`en`: English;
`ja`: Japanese.
When SrcLanguage is vi (Vietnamese), ms (Malay), or th (Thai), the valid options are:
`zh`: Chinese;
`en`: English.
When SrcLanguage is pt (Portuguese), the valid options are:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian.
When SrcLanguage is tr (Turkish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is es (Spanish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is ar (Arabic) or hi (Hindi), the value range is:
`en`: English.
When SrcLanguage is fr (French), the value range is:
`zh`: Chinese;
`en`: English;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
* @return DstLanguage Translation target language. When the Switch is ON, this parameter is mandatory.
When SrcLanguage is zh (Chinese), the value range:
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay.
When SrcLanguage is en (English), the value range:
`zh`: Chinese;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay;
`ar`: Arabic;
`hi`: Hindi.
When SrcLanguage is ja (Japanese), the valid options are:
`zh`: Chinese;
`en`: English;
`ko`: Korean.
When SrcLanguage is ko (Korean), the valid options are:
`zh`: Chinese;
`en`: English;
`ja`: Japanese.
When SrcLanguage is vi (Vietnamese), ms (Malay), or th (Thai), the valid options are:
`zh`: Chinese;
`en`: English.
When SrcLanguage is pt (Portuguese), the valid options are:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian.
When SrcLanguage is tr (Turkish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is es (Spanish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is ar (Arabic) or hi (Hindi), the value range is:
`en`: English.
When SrcLanguage is fr (French), the value range is:
`zh`: Chinese;
`en`: English;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
*/
public String getDstLanguage() {
return this.DstLanguage;
}
/**
* Set Translation target language. When the Switch is ON, this parameter is mandatory.
When SrcLanguage is zh (Chinese), the value range:
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay.
When SrcLanguage is en (English), the value range:
`zh`: Chinese;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay;
`ar`: Arabic;
`hi`: Hindi.
When SrcLanguage is ja (Japanese), the valid options are:
`zh`: Chinese;
`en`: English;
`ko`: Korean.
When SrcLanguage is ko (Korean), the valid options are:
`zh`: Chinese;
`en`: English;
`ja`: Japanese.
When SrcLanguage is vi (Vietnamese), ms (Malay), or th (Thai), the valid options are:
`zh`: Chinese;
`en`: English.
When SrcLanguage is pt (Portuguese), the valid options are:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian.
When SrcLanguage is tr (Turkish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is es (Spanish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is ar (Arabic) or hi (Hindi), the value range is:
`en`: English.
When SrcLanguage is fr (French), the value range is:
`zh`: Chinese;
`en`: English;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
* @param DstLanguage Translation target language. When the Switch is ON, this parameter is mandatory.
When SrcLanguage is zh (Chinese), the value range:
`en`: English;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay.
When SrcLanguage is en (English), the value range:
`zh`: Chinese;
`ja`: Japanese;
`ko`: Korean;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese;
`vi`: Vietnamese;
`id`: Indonesian;
`th`: Thai;
`ms`: Malay;
`ar`: Arabic;
`hi`: Hindi.
When SrcLanguage is ja (Japanese), the valid options are:
`zh`: Chinese;
`en`: English;
`ko`: Korean.
When SrcLanguage is ko (Korean), the valid options are:
`zh`: Chinese;
`en`: English;
`ja`: Japanese.
When SrcLanguage is vi (Vietnamese), ms (Malay), or th (Thai), the valid options are:
`zh`: Chinese;
`en`: English.
When SrcLanguage is pt (Portuguese), the valid options are:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian.
When SrcLanguage is tr (Turkish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`es`: Spanish;
`it`: Italian;
`de`: German;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is es (Spanish), the value range is:
`zh`: Chinese;
`en`: English;
`fr`: French;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
When SrcLanguage is ar (Arabic) or hi (Hindi), the value range is:
`en`: English.
When SrcLanguage is fr (French), the value range is:
`zh`: Chinese;
`en`: English;
`es`: Spanish;
`it`: Italian;
`de`: German;
`tr`: Turkish;
`ru`: Russian;
`pt`: Portuguese.
*/
public void setDstLanguage(String DstLanguage) {
this.DstLanguage = DstLanguage;
}
/**
* Get Generated subtitle file format list. If not filled or an empty array is provided, no subtitle file will be generated. Optional values:
vtt: generate WebVTT subtitle file;
srt: generate SRT subtitle files. Note: VOD media assets only support adding vtt subtitles. Therefore, VOD will add generated subtitles to media assets only when SubtitleFormats includes vtt.
* @return SubtitleFormats Generated subtitle file format list. If not filled or an empty array is provided, no subtitle file will be generated. Optional values:
vtt: generate WebVTT subtitle file;
srt: generate SRT subtitle files. Note: VOD media assets only support adding vtt subtitles. Therefore, VOD will add generated subtitles to media assets only when SubtitleFormats includes vtt.
*/
public String [] getSubtitleFormats() {
return this.SubtitleFormats;
}
/**
* Set Generated subtitle file format list. If not filled or an empty array is provided, no subtitle file will be generated. Optional values:
vtt: generate WebVTT subtitle file;
srt: generate SRT subtitle files. Note: VOD media assets only support adding vtt subtitles. Therefore, VOD will add generated subtitles to media assets only when SubtitleFormats includes vtt.
* @param SubtitleFormats Generated subtitle file format list. If not filled or an empty array is provided, no subtitle file will be generated. Optional values:
vtt: generate WebVTT subtitle file;
srt: generate SRT subtitle files. Note: VOD media assets only support adding vtt subtitles. Therefore, VOD will add generated subtitles to media assets only when SubtitleFormats includes vtt.
*/
public void setSubtitleFormats(String [] SubtitleFormats) {
this.SubtitleFormats = SubtitleFormats;
}
/**
* Get Specify subtitle name, length limit: 64 characters. This value will be displayed by the player. If not provided, VOD will automatically generate it.
* @return SubtitleName Specify subtitle name, length limit: 64 characters. This value will be displayed by the player. If not provided, VOD will automatically generate it.
*/
public String getSubtitleName() {
return this.SubtitleName;
}
/**
* Set Specify subtitle name, length limit: 64 characters. This value will be displayed by the player. If not provided, VOD will automatically generate it.
* @param SubtitleName Specify subtitle name, length limit: 64 characters. This value will be displayed by the player. If not provided, VOD will automatically generate it.
*/
public void setSubtitleName(String SubtitleName) {
this.SubtitleName = SubtitleName;
}
public AsrTranslateConfigureInfo() {
}
/**
* 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.
*/
public AsrTranslateConfigureInfo(AsrTranslateConfigureInfo source) {
if (source.Switch != null) {
this.Switch = new String(source.Switch);
}
if (source.SrcLanguage != null) {
this.SrcLanguage = new String(source.SrcLanguage);
}
if (source.DstLanguage != null) {
this.DstLanguage = new String(source.DstLanguage);
}
if (source.SubtitleFormats != null) {
this.SubtitleFormats = new String[source.SubtitleFormats.length];
for (int i = 0; i < source.SubtitleFormats.length; i++) {
this.SubtitleFormats[i] = new String(source.SubtitleFormats[i]);
}
}
if (source.SubtitleName != null) {
this.SubtitleName = new String(source.SubtitleName);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Switch", this.Switch);
this.setParamSimple(map, prefix + "SrcLanguage", this.SrcLanguage);
this.setParamSimple(map, prefix + "DstLanguage", this.DstLanguage);
this.setParamArraySimple(map, prefix + "SubtitleFormats.", this.SubtitleFormats);
this.setParamSimple(map, prefix + "SubtitleName", this.SubtitleName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy