目录

利用微软翻译api实现中英文互译

注意

  • 微软已于2021年停止了appid认证方式,如今网络上的使用appid方式的教程已不再适用

关于停用appid的公告:https://www.microsoft.com/en-us/translator/blog/2020/07/20/applications-using-the-bing-appid-authentication-method-will-stop-working-in-april-2021/

如何创建

  • 微软官方文档已经给出了详细的教程,大致流程为注册Azure(如果没有)并创建一个免费的翻译器资源。

注册Azure并创建翻译器资源官方教程:https://learn.microsoft.com/zh-cn/azure/cognitive-services/translator/how-to-create-translator-resource

如何使用

  • 同样在微软官方文档给出了如何使用已创建好的翻译器资源,甚至给出了常见语言的代码示例。

翻译器资源使用教程:https://learn.microsoft.com/zh-cn/azure/cognitive-services/translator/quickstart-translator?tabs=csharp