public class AutoTranslationBlockDemo extends Object
| Constructor and Description |
|---|
AutoTranslationBlockDemo() |
| Modifier and Type | Method and Description |
|---|---|
static void |
autoTranslationBlock(COSClient cosClient)
autoTranslationBlock
实时文字翻译 https://cloud.tencent.com/document/product/460/83547
中文(代码zh)与下列语言之间的双向互译:
英语 en 阿拉伯语 ar 德语 de 西班牙语 es 法语 fr 印尼语 id 意大利语 it / 日语 ja
葡萄牙语 pt 俄语 ru 韩语 ko 高棉语 km 老挝语 lo
|
static void |
main(String[] args) |
public static void autoTranslationBlock(COSClient cosClient)
英文(代码en)与下列语言之间的双向互译: 中文 zh 阿拉伯语 ar 德语 de 西班牙语 es 法语 fr 印尼语 id 意大利语 it / 日语 ja 葡萄牙语 pt 俄语 ru 韩语 ko 高棉语 km 老挝语 lo 其中,中文除了常规的简体中文(zh)外,还有繁体中文(zh-tr)、中国香港繁体中文(zh-hk)、中国台湾繁体中文(zh-tw)。
通过text_domain和text_style参数获得相应能力: (1) 电商:textDomain=ecommerce
(2) 电商标题: textDomain=ecommerce;text_style=title
(3) 网络文学:textDomain=net-literature
Copyright © 2023. All rights reserved.