简体   繁体   English

如何使用android的azure认知翻译服务?

[英]How to use azure cognitive translation services with android?

我想使用azure认知服务构建一个文本翻译器,但我不知道如何在android中使用它。

You need to install the SDK and then call like below 您需要安装SDK ,然后调用如下

 try {
      translatedText = Translate.execute(sentence, baseLanguage, targetLanguage);
      return true;
     } catch (Exception e) {
      e.printStackTrace();
      return false;
 }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM