Hi Anil Gudla,
Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!
The Azure Document Translation API does not currently support the use of Custom Translator models. While the Translator API allows you to specify a custom model using the model's category ID, this functionality is not available for the Document Translation API, which uses only the standard general translation models.
However, you can work around this limitation by extracting the text content from your documents using tools like Azure Computer Vision (for scanned or image-based documents. Once extracted, you can translate the text using the Translator API with your Custom Translator model by specifying the custom model's category ID. After translation, you can reapply the translated text back into the original document format using document generation libraries such as python-docx for Word files or FPDF for PDFs. While this approach allows you to leverage Custom Translator for document translation, it requires additional effort to preserve the original document's formatting and structure. For more information, you can refer to the official documentation for Custom Translator and Document Translation API.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.