https://github.com/malantin/botbuildertranslationservice
A small sample based on the EchoBot to demonstrate how to translate messages and detect language without using the Translation Middleware.
https://github.com/malantin/botbuildertranslationservice
botbuilder botbuilder-sdk botframework cognitive-services microsoft-botbuilder microsoft-cognitive-services microsoft-translator microsoft-translator-api microsoft-translator-service
Last synced: 2 months ago
JSON representation
A small sample based on the EchoBot to demonstrate how to translate messages and detect language without using the Translation Middleware.
- Host: GitHub
- URL: https://github.com/malantin/botbuildertranslationservice
- Owner: malantin
- Created: 2018-07-03T08:40:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T08:47:51.000Z (almost 7 years ago)
- Last Synced: 2025-01-21T06:29:20.719Z (4 months ago)
- Topics: botbuilder, botbuilder-sdk, botframework, cognitive-services, microsoft-botbuilder, microsoft-cognitive-services, microsoft-translator, microsoft-translator-api, microsoft-translator-service
- Language: C#
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# An echo bot using a custom service class for translating user messages through the Microsoft Translator API
Sometimes you need translation capabilities in your bot but require a more granular control than the [Translation Middleware](https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-translation?view=azure-bot-service-4.0&tabs=cs) offers.
For example, you want to decide for each message you receive whether you want to translate the message or not. Or you might want to translate back just parts of your bot's messages to the user.This sample example is built on the Echo bot template and shows how use a custom service class for detecting the input language and translating text.
Feel free to comment of contribute.