Skip to content

Commit 708c474

Browse files
committed
update related files
1 parent cd74b9d commit 708c474

File tree

3 files changed

+53
-5
lines changed

3 files changed

+53
-5
lines changed

articles/ai-services/translator/document-translation/how-to-guides/use-rest-api-programmatically.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ The following headers are included with each Document translation API request:
183183
}
184184
```
185185

186-
### Translate text embedded in images within documents 🆕
186+
### Translate text embedded within images in a document 🆕
187187

188188
> [!Note]
189189
>
@@ -200,12 +200,59 @@ The following headers are included with each Document translation API request:
200200
* Data type: Boolean (`true` or `false`)
201201
* Default Boolean setting is `false`. Set the option to `true` to enable image text translation.
202202

203+
* Here's a sample JSON request:
204+
205+
```json
206+
{
207+
"inputs": [
208+
{
209+
"source": {
210+
"sourceUrl": "<SAS-URL>",
211+
"language": "en"
212+
},
213+
"targets": [
214+
{
215+
"targetUrl": "<SAS-URL>",
216+
"language": "ta"
217+
}
218+
]
219+
}
220+
],
221+
"options": {
222+
"experimental": false,
223+
"translateTextWithinImage": true
224+
}
225+
}
226+
```
227+
203228
* **Response Details**. When the feature is enabled, added image processing information is included with the response:
204229

205230
* **`totalImageScansSucceeded`**. The number of successfully translated image scans.
206231

207232
* **`totalImageScansFailed`**. The number of image scans that failed processing.
208233

234+
* Here's a sample JSON response:
235+
236+
```json
237+
{
238+
"id": "1a2b0c23-45d6-789-a123-a456fdaf7890",
239+
"createdDateTimeUtc": "2024-11-13T22:06:58.2789197Z",
240+
"lastActionDateTimeUtc": "2024-11-13T22:07:14.1608283Z",
241+
"status": "Running",
242+
"summary": {
243+
"total": 1,
244+
"failed": 0,
245+
"success": 0,
246+
"inProgress": 1,
247+
"notYetStarted": 0,
248+
"cancelled": 0,
249+
"totalCharacterCharged": 0,
250+
"totalImageScansSucceeded": 2,
251+
"totalImageScansFailed": 0
252+
}
253+
}
254+
```
255+
209256
### Translate documents using a custom glossary
210257

211258
```json

articles/ai-services/translator/document-translation/overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: laujan
55
manager: nitinme
66
ms.service: azure-ai-translator
77
ms.topic: overview
8-
ms.date: 04/14/2025
8+
ms.date: 06/03/2025
99
ms.author: lajanuar
1010
ms.custom: references_regions
1111
recommendations: false
@@ -36,6 +36,7 @@ Use asynchronous document processing to translate multiple documents and large f
3636
| ---------| -------------|
3737
|**Translate large files**| Translate whole documents asynchronously.|
3838
|**Translate numerous files**|Translate multiple files across all supported languages and dialects while preserving document structure and data format.|
39+
|[**Translate text embedded within images in a document** 🆕](how-to-guides/use-rest-api-programmatically.md#translate-text-embedded-within-images-in-a-document-).| This feature is available with the [batch document translation](how-to-guides/use-rest-api-programmatically.md#translate-text-embedded-within-images-in-a-document-) API for `.docx` file format.|
3940
|**Preserve source file presentation**| Translate files while preserving the original layout and format.|
4041
|**Apply custom translation**| Translate documents using general and [custom translation](../custom-translator/concepts/customization.md#azure-ai-custom-translator) models.|
4142
|**Apply custom glossaries**|Translate documents using custom glossaries.|

articles/ai-services/translator/whats-new.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: laujan
66
manager: nitinme
77
ms.service: azure-ai-translator
88
ms.topic: overview
9-
ms.date: 05/29/2025
9+
ms.date: 06/03/2025
1010
ms.author: lajanuar
1111
---
1212
<!-- markdownlint-disable MD024 -->
@@ -27,8 +27,8 @@ Azure AI Translator service supports language translation for more than 100 lang
2727

2828
Azure AI Translator [Document translation feature](document-translation/overview.md#batch-key-features) now supports [translating text embedded in images](document-translation/how-to-guides/use-rest-api-programmatically.md#translate-text-embedded-in-images-within-documents-) within documents.
2929

30-
* This is an optional feature and must be enabled for each translation request.
31-
* Currently, the feature is available only with the [batch document translation](document-translation/how-to-guides/use-rest-api-programmatically.md#translate-text-embedded-in-images-within-documents-) API for `.docx` file format.
30+
* This feature is optional and must be enabled for each translation request.
31+
* Currently, the feature is available only with the [batch document translation](document-translation/how-to-guides/use-rest-api-programmatically.md#translate-text-embedded-within-images-in-a-document-) API for `.docx` file format.
3232
* An [Azure AI Foundry resource](https://portal.azure.com/?Microsoft_Azure_PIMCommon=true#create/Microsoft.CognitiveServicesAIFoundry) (not the standalone Translator resource) is required to use this feature.
3333

3434
## May 2025

0 commit comments

Comments
 (0)