Bhashini-Translation is a powerful language translation library designed specifically for Indian languages. It harnesses the power of AI to offer accurate and efficient translation services. With Bhashini-Translation, you can easily integrate advanced language translation capabilities into your web applicationsIt's integrating with Bhashini Api. It seamlessly integrates with web frontends such as Vanilla JS, React, and Angular.
Bhashini follows ISO-639 series of language codes.
Users interact with the Text-to-Text Translation tool through a user interface, which can be a web-based application, a desktop program, or a mobile app. The interface typically includes text input fields where users can type or paste the source text they want to translate. Additionally, users can select their preferred target language from a list of available languages.
- Install the package using npm or yarn
npm install bashaini-texttranslation
yarn add bashaini-texttranslation
- Import the package in Module
import { TextTranslationModule } from 'bhashini-texttranslation';
import { TextTranslateConfig } from 'bhashini-texttranslation/lib/text-translate.config';
3.Add Your userId,apiKey,authorizationToken For configuration
providers: [
{
provide: 'TEXT_TRANSLATE_CONFIG', // Use a string token to provide the configuration
useValue: {
userId: 'Your User Id', // Provide the user ID here
apiKey: 'Your apiKey', // Provide the API key here
authorizationToken: 'Your authorizationToken', // Provide the authorization token here
} as SpeechTranslateConfig,
},
]
4 Call Library
<lib-text-translation></lib-text-translation>
Signup here to get authentication details
- Step 1: Fill out the registration form.
- Step 2: Perform email authentication to enable login functionality
- Step 3: Login using the authenticated email.
- Step 4: Open the "My Profile" section
- Step 5: create the API Key using Generate Button under My Profile section.
- Step 6: press generate in api key to get credentials
- Step 7: now copy
userid
,UlcaApiKey
, andauthorizationToken
forMeity
and pass as argument inbhashini.auth("userid", "UlcaApiKey", "authorizationToken")
function
We have option to select a Different Sentence and the option come to translate it in some other language and translate it.The system or tool you're using employs advanced machine translation algorithms to convert the input sentence from the source language to the target language. These algorithms are based on sophisticated language models that have been trained on a massive amount of multilingual text. They learn to understand linguistic patterns and relationships across languages to generate accurate translations.
- Install the package using npm or yarn
npm install bashaini-speechtranslation
yarn add bashaini-speechtranslation
- Import the package in Module
import { SpeechtranslateModule } from 'bhashini-speechtranslation';
import { SpeechTranslateConfig } from 'bashaini-speechtranslation/public-api';
3.Add Your userId,apiKey,authorizationToken For configuration
providers: [
{
provide: 'SPEECH_TRANSLATE_CONFIG', // Use a string token to provide the configuration
useValue: {
userId: 'Your User Id', // Provide the user ID here
apiKey: 'Your apiKey', // Provide the API key here
authorizationToken: 'Your authorizationToken', // Provide the authorization token here
} as SpeechTranslateConfig,
},
]
4 Call Library
<lib-speechtranslate></lib-speechtranslate>
Signup here to get authentication details
- Step 1: Fill out the registration form.
- Step 2: Perform email authentication to enable login functionality
- Step 3: Login using the authenticated email.
- Step 4: Open the "My Profile" section
- Step 5: create the API Key using Generate Button under My Profile section.
- Step 6: press generate in api key to get credentials
- Step 7: now copy
userid
,UlcaApiKey
, andauthorizationToken
forMeity
and pass as argument inbhashini.auth("userid", "UlcaApiKey", "authorizationToken")
function
Users can first input text into the text area, then choose to either have the text translated into a different language or converted into speech (or both). This could be particularly useful for scenarios where users want to communicate with someone who speaks a different language or want to listen to content rather than reading it.
- Install the package using npm or yarn
npm install bashaini-textandspeechtranslation
yarn add bashaini-textandspeechtranslation
- Import the package in Module
import { TextandspeechModule } from 'bashaini-textandspeechtranslation';
import { TextandspeechConfig } from 'bashaini-textandspeechtranslation/public-api';
3.Add Your userId,apiKey,authorizationToken For configuration
providers: [
{
provide: 'TEXT_AND_SPEECH_CONFIG', // Use a string token to provide the configuration
useValue: {
userId: 'Your User Id', // Provide the user ID here
apiKey: 'Your apiKey', // Provide the API key here
authorizationToken: 'Your authorizationToken', // Provide the authorization token here
} as TextandspeechConfig,
},
]
4 Call Library
<lib-textandspeech></lib-textandspeech>
Signup here to get authentication details
- Step 1: Fill out the registration form.
- Step 2: Perform email authentication to enable login functionality
- Step 3: Login using the authenticated email.
- Step 4: Open the "My Profile" section
- Step 5: create the API Key using Generate Button under My Profile section.
- Step 6: press generate in api key to get credentials
- Step 7: now copy
userid
,UlcaApiKey
, andauthorizationToken
forMeity
and pass as argument inbhashini.auth("userid", "UlcaApiKey", "authorizationToken")
function