Mayura

Overview

Mayura is our powerful translation model that converts text between English and Indian languages while preserving meaning and context. For example: ‘मैं ऑफिस जा रहा हूँ’ translates to ‘I am going to the office’ in English, maintaining the original meaning across different scripts and languages.

Features

Language Support

Support for 11 languages including English and major Indian languages with auto-detection

Translation Modes

Multiple translation styles: formal, modern-colloquial, classic-colloquial, and code-mixed

Script Control

Flexible output script options: Roman, native, and spoken forms

Smart Processing

Advanced preprocessing and numeral format control

Key Capabilities

Simple translation between languages with default settings. Perfect for getting started with the Mayura API.

1from sarvamai import SarvamAI
2
3client = SarvamAI(
4 api_subscription_key="YOUR_API_SUBSCRIPTION_KEY"
5)
6
7response = client.translate(
8 input="मैं ऑफिस जा रहा हूँ",
9 source_language_code="hi-IN",
10 target_language_code="en-IN"
11)

Language Support

LanguageCodeTranslation Direction
Englishen-INBoth
Hindihi-INBoth
Bengalibn-INBoth
Gujaratigu-INBoth
Kannadakn-INBoth
Malayalamml-INBoth
Marathimr-INBoth
Odiaod-INBoth
Punjabipa-INBoth
Tamilta-INBoth
Telugute-INBoth

All Indian languages support bidirectional translation with English. The ‘auto’ option in source_language_code enables automatic language detection.