public class STTConfig extends AbstractModel
header, skipSign
Constructor and Description |
---|
STTConfig() |
STTConfig(STTConfig 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[] |
getAlternativeLanguage()
Get Initiate fuzzy recognition to replace additional language types.
|
String |
getLanguage()
Get The supported languages for speech recognition are as follows, with the default being "zh" for Chinese.
|
Long |
getVadSilenceTime()
Get The time for speech recognition vad is in the range of 240-2000, the default value is 1000, and the unit is ms.
|
void |
setAlternativeLanguage(String[] AlternativeLanguage)
Set Initiate fuzzy recognition to replace additional language types.
|
void |
setLanguage(String Language)
Set The supported languages for speech recognition are as follows, with the default being "zh" for Chinese.
|
void |
setVadSilenceTime(Long VadSilenceTime)
Set The time for speech recognition vad is in the range of 240-2000, the default value is 1000, and the unit is ms.
|
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 STTConfig()
public STTConfig(STTConfig source)
public String getLanguage()
public void setLanguage(String Language)
Language
- The supported languages for speech recognition are as follows, with the default being "zh" for Chinese. The values for the `Language` field follow the [ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) standard. Here is the full list of supported languages:
1. Chinese = "zh"
2. Chinese_TW = "zh-TW"
3. Chinese_DIALECT = "zh-dialect"
4. English = "en"
5. Vietnamese = "vi"
6. Japanese = "ja"
7. Korean = "ko"
8. Indonesian = "id"
9. Thai = "th"
10. Portuguese = "pt"
11. Turkish = "tr"
12. Arabic = "ar"
13. Spanish = "es"
14. Hindi = "hi"
15. French = "fr"
16. Malay = "ms"
17. Filipino = "fil"
18. German = "de"
19. Italian = "it"
20. Russian = "ru"
Note:** If the language you need is not listed, please contact our technical support team.public String[] getAlternativeLanguage()
public void setAlternativeLanguage(String[] AlternativeLanguage)
AlternativeLanguage
- Initiate fuzzy recognition to replace additional language types. Fill in up to 3 language types. Note: When Language is specified as "zh-dialect", fuzzy recognition is not supported and this field is invalid.public Long getVadSilenceTime()
public void setVadSilenceTime(Long VadSilenceTime)
VadSilenceTime
- The time for speech recognition vad is in the range of 240-2000, the default value is 1000, and the unit is ms. A smaller value will make speech recognition sentence segmentation faster.Copyright © 2024. All rights reserved.