v2

latestOpenAPI 3.1.02026-07-2628105122.0 KB
text

Transliterate Text

Transliteration converts text from one script to another while preserving the original pronunciation. For example, 'नमस्ते' becomes 'namaste' in English, and 'how are you' can be written as 'हाउ आर यू' in Devanagari. This process ensures that the sound of the original text remains intact, even when written in a different script.

Transliteration is useful when you want to represent words phonetically across different writing systems, such as converting 'मैं ऑफिस जा रहा हूँ' to 'main office ja raha hun' in English letters.

Translation, on the other hand, converts text from one language to another while preserving the meaning rather than pronunciation. For example, 'मैं ऑफिस जा रहा हूँ' translates to 'I am going to the office' in English, changing both the script and the language while conveying the intended message.

Examples of Transliteration:

  • 'Good morning' becomes 'गुड मॉर्निंग' in Hindi, where the pronunciation is preserved but the meaning is not translated.
  • 'सुप्रभात' becomes 'suprabhat' in English.

Available languages:

  • en-IN: English
  • hi-IN: Hindi
  • bn-IN: Bengali
  • gu-IN: Gujarati
  • kn-IN: Kannada
  • ml-IN: Malayalam
  • mr-IN: Marathi
  • od-IN: Odia
  • pa-IN: Punjabi
  • ta-IN: Tamil
  • te-IN: Telugu

For hands-on practice, you can explore the notebook tutorial on Transliterate API Tutorial.

post/transliterate

Headers

api-subscription-keystring required

Request body

inputstring required

The text you want to transliterate.

source_language_code'auto' | 'bn-IN' | 'en-IN' | 'gu-IN' | 'hi-IN' | 'kn-IN' | 'ml-IN' | 'mr-IN' | 'od-IN' | 'pa-IN' | 'ta-IN' | 'te-IN' required
target_language_code'bn-IN' | 'en-IN' | 'gu-IN' | 'hi-IN' | 'kn-IN' | 'ml-IN' | 'mr-IN' | 'od-IN' | 'pa-IN' | 'ta-IN' | 'te-IN' required
numerals_format'international' | 'native'
spoken_form_numerals_language'english' | 'native'
spoken_formboolean
  • Default: False
  • Converts text into a natural spoken form when True.
  • Note: No effect if output language is en-IN.

Example:

  • Input: मुझे कल 9:30am को appointment है
    • Output: मुझे कल सुबह साढ़े नौ बजे को अपॉइंटमेंट है

Response

Successful Response

request_idstring nullable required
transliterated_textstring required

Transliterated text result in the requested target language.

source_language_codestring required

Detected or provided source language of the input text.