BotTranslator | new apps , and bots 're becoming trend day | Runtime Evironment library
kandi X-RAY | BotTranslator Summary
kandi X-RAY | BotTranslator Summary
Bots are the new apps, and bots're becoming trend day by day in our daily life. Developers consider this platform for consumer and commercial usage to reach their users via social media or through a Line Of Business (LOB) applications using embedded bots. Native language support is an essential key point for such experiences provides Natural User Interface (NUI) for last users like chatbots. In this sample we'll learn how to use Microsoft Translator in a Bot Framework Application. In this demo I used "TR>EN" translation, Turkish as native language and English as target language.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of BotTranslator
BotTranslator Key Features
BotTranslator Examples and Code Snippets
Community Discussions
Trending Discussions on BotTranslator
QUESTION
I'm getting an Argument Exception message using the Microsoft Translator Text API.
I am using the Access Keys generated from Azure Portal for my Translator Speech API resource.
I am also able to retrieve the access token successfully as shown in the image below.
However, when I request for translation at https://api.microsofttranslator.com/V2/Http.svc/Translate I'm receiving the message
The API type of the received token in not Text. Please use a subscription to Translator Text API
as shown in the image below.
I have already tried the C# Bot Translator sample from https://github.com/MicrosoftTranslator/BotTranslator, with the same results (same error).
What could be the problem? Is there something I am missing?
...ANSWER
Answered 2018-Mar-12 at 15:55My mistake, I've been using a "Translator Speech API" subscription key instead of the "Traslator Text API" key that is required.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install BotTranslator
Sign up for a Microsoft Azure account at http://azure.com
After you have an account go to http://portal.azure.com
Select the + New option.
Select AI + Cognitive Services from the list of services.
Click See All on top right.
Select Translator Text API.
Select the Create button.
Fill out the rest of the form.
In the Pricing Tier section select the pricing tier that fits your needs.
Select the Create button.
You are now subscribed to Microsoft Translator.
Go to All Resources and select the Microsoft Translator API you subscribed to.
Go to the Keys option and copy your subscription key to access the service.
This is a step-by-step guide to writing an Bot in C# using the Bot Framework Connector SDK .NET template.
Install prerequisite software Visual Studio 2015 or Visual Studio 2017 - you can download the community version here for free: http://www.visualstudio.com Important: Please update all VS extensions to their latest versions Tools -> Extensions and Updates -> Updates
Download and install the Bot Application template Download the file from the direct download link here : For VS2015: Save the zip file to your Visual Studio 2015 templates directory which is traditionally in “%USERPROFILE%\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C For VS2017: Save the zip file to your Visual Studio 2017 templates directory which is traditionally in “%USERPROFILE%\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C
Open Visual Studio
Create a new C# project using the new Bot Application template.
The template is a fully functional Echo Bot that takes the user’s text utterance as input and returns it as output. In order to run however, The bot has to be registered with Bot Connector The BotID, MicrosoftAppID and MicrosoftAppPassword from the Bot Framework registration page have to be recorded in the project’s web.config The project needs to be published to the web
If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build.
Start Microsoft Visual Studio 2015 or 2017 and select File > Open > Project/Solution.
Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample. Double-click the Visual Studio Solution (.sln) file.
Press Ctrl+Shift+B, or select Build > Build Solution.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page