public class TranslationConfig extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
TranslationConfig()  | 
TranslationConfig(TranslationConfig 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 | 
|---|---|
Long | 
getMode()
Get 1: Only text translation, 2: Voice simultaneous interpretation. 
 | 
String[] | 
getTargetLanguages()
Get Target language, target language list (ISO 639-1). 
 | 
Terminology[] | 
getTerminology()
Get Translation terminology. 
 | 
TTSConfig | 
getTTSConfig()
Get Voice simultaneous interpretation configuration: When enabling simultaneous interpretation, this parameter needs to be passed. 
 | 
void | 
setMode(Long Mode)
Set 1: Only text translation, 2: Voice simultaneous interpretation. 
 | 
void | 
setTargetLanguages(String[] TargetLanguages)
Set Target language, target language list (ISO 639-1). 
 | 
void | 
setTerminology(Terminology[] Terminology)
Set Translation terminology. 
 | 
void | 
setTTSConfig(TTSConfig TTSConfig)
Set Voice simultaneous interpretation configuration: When enabling simultaneous interpretation, this parameter needs to be passed. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic TranslationConfig()
public TranslationConfig(TranslationConfig source)
public String[] getTargetLanguages()
public void setTargetLanguages(String[] TargetLanguages)
TargetLanguages - Target language, target language list (ISO 639-1).public Long getMode()
public void setMode(Long Mode)
Mode - 1: Only text translation, 2: Voice simultaneous interpretation.public TTSConfig getTTSConfig()
public void setTTSConfig(TTSConfig TTSConfig)
TTSConfig - Voice simultaneous interpretation configuration: When enabling simultaneous interpretation, this parameter needs to be passed.public Terminology[] getTerminology()
public void setTerminology(Terminology[] Terminology)
Terminology - Translation terminology.Copyright © 2025. All rights reserved.