public class Machinetranslation extends BaseClient
accessToken, aipKey, aipToken, appId, config, expireDate, isAuthorized, isBceKey, LOGGER, state| 构造器和说明 |
|---|
Machinetranslation(String appId,
String apiKey,
String secretKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.json.JSONObject |
docTranslationCreateV2(String from,
String to,
Object input,
HashMap<String,Object> options)
文档翻译
接口使用说明文档: https://ai.baidu.com/ai-doc/MT/Xky9x5xub
|
org.json.JSONObject |
docTranslationQueryV2(String id)
文档翻译-文档状态查询
接口使用说明文档: https://ai.baidu.com/ai-doc/MT/Xky9x5xub
|
org.json.JSONObject |
speechTranslationV2(String from,
String to,
byte[] voice,
String format,
HashMap<String,Object> options)
语音翻译
接口使用说明文档: https://ai.baidu.com/ai-doc/MT/el4cmi76f
|
org.json.JSONObject |
texttransV1(String from,
String to,
String q,
HashMap<String,Object> options)
文本翻译-通用版
接口使用说明文档: https://ai.baidu.com/ai-doc/MT/4kqryjku9
|
org.json.JSONObject |
texttransWithDictV1(String from,
String to,
String q,
HashMap<String,Object> options)
文本翻译-词典版
接口使用说明文档: https://ai.baidu.com/ai-doc/MT/nkqrzmbpc
|
getAccessToken, needAuth, postOperation, preOperation, preOperation, requestServer, setConnectionTimeoutInMillis, setHttpProxy, setSocketProxy, setSocketTimeoutInMillispublic org.json.JSONObject texttransV1(String from, String to, String q, HashMap<String,Object> options)
public org.json.JSONObject texttransWithDictV1(String from, String to, String q, HashMap<String,Object> options)
public org.json.JSONObject docTranslationCreateV2(String from, String to, Object input, HashMap<String,Object> options)
public org.json.JSONObject docTranslationQueryV2(String id)
Copyright © 2024. All rights reserved.