Introduction
In this article, I will discuss how to do real-time translation chat using the language of your choice in two-way communication (sending and receiving) using SignalR and Cognitive Services Translate API in .NET Core 2.1. I have also used one of the new features of.Net Core 2.1 HttpClientFactory – TypedHttpClient to make API calls. This is a simple chat application where the user can login with their name and choice of language that they want to use to send and receive the message. When the user sends a message, it translates the text in real time and sends it to other users with the choice of their selected languages and vice versa.
Demo
Architecture
The real-time chat application is developed in .NET Core Web App using Razor Pages with Bootstrap stylesheets and .NET Core SignalR Libraries. When the user logs in with the name and choice of language they selected, the system establishes the connection with SignalRHub and puts the user into the selected language group. It also notifies all the other users that a new user has joined. When the user sends the message, SignalRHub makes the Web API call with Cognitive Services API to get the translated text and sends the translated message to other members in their selected languages in real time. When the user exits the chat, it removes them from the group and also notifies all the other users.
Senthilan DhamodaranPosted Feb 28, 2020, 11:10 PM
I want to deploy this application it asking password, how to do? reply as soon as possible
Hadshana KamalanathanPosted Jul 19, 2018, 5:32 AM
Thanks for sharing