skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

azure-ai-translation-document-py

Batch document translation

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/microsoft/skills --skill azure-ai-translation-document-py

Overview

What This Skill Does

Azure AI Document Translation SDK for Python handles batch translation of documents across formats like Word, PDF, Excel, and PowerPoint while preserving the original layout and formatting. It submits jobs to Azure's translation service using source and target Azure Blob Storage containers, supports multiple target languages per job, and can apply custom glossaries for domain-specific terms.

Application

When to use this Skill

Documentation

Show Skills.md file

Azure AI Document Translation SDK for Python

Client library for Azure AI Translator document translation service for batch document translation with format preservation.

Installation

pip install azure-ai-translation-document

Environment Variables

AZURE_DOCUMENT_TRANSLATION_ENDPOINT=https://<resource>.cognitiveservices.azure.com  # Required for all auth methods
# Storage for source and target documents
AZURE_SOURCE_CONTAINER_URL=https://<storage>.blob.core.windows.net/<container>?<sas>  # Required for all auth methods
AZURE_TARGET_CONTAINER_URL=https://<storage>.blob.core.windows.net/<container>?<sas>  # Required for all auth methods
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
AZURE_DOCUMENT_TRANSLATION_KEY=<your-api-key>  # Only required for the legacy API-key auth path below

Authentication & Lifecycle

🔑 Two rules apply to every code sample below:

Lines 1 - 25 of 266

Recommendations

Explore other random skills

All skillsMy patterns