You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> * Typically, when you create an Azure AI resource in the Azure portal, you have the option to create a multi-service key or a single-service key. However, Document Translation is currently supported in the Translator (single-service) resource only, and is **not** included in the Azure AI services (multi-service) resource.
26
-
>
27
-
> * Document Translation is supported in the S1 Standard Service Plan (Pay-as-you-go) and C2, C3, C4, and D3 Volume Discount Plans. _See_[Azure AI services pricing—Translator](https://azure.microsoft.com/pricing/details/cognitive-services/translator/).
25
+
> Document Translation is supported in the S1 Standard Service Plan (Pay-as-you-go) and C2, C3, C4, and D3 Volume Discount Plans. _See_[Azure AI services pricing—Translator](https://azure.microsoft.com/pricing/details/cognitive-services/translator/).
28
26
>
29
27
30
28
To get started, you need:
@@ -36,7 +34,7 @@ To get started, you need:
36
34
***Source container**. This container is where you upload your files for translation (required).
37
35
***Target container**. This container is where your translated files are stored (required).
38
36
39
-
* A [**single-service Translator resource**](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) (**not** a multi-service Azure AI services resource):
37
+
* A [**Translator resource**](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation):
40
38
41
39
**Complete the Translator project and instance details fields as follows:**
42
40
@@ -212,6 +210,30 @@ The following headers are included with each Document Translation API request:
212
210
}
213
211
```
214
212
213
+
## 🆕 Translate text embedded within document images
214
+
215
+
> [!Note]
216
+
>
217
+
> * This feature is optional and must be enabled for each translation request.
218
+
> * Enabling this feature will incur additional costs based on usage. See [Azure AI Vision pricing](https://azure.microsoft.com/pricing/details/cognitive-services/computer-vision/)
219
+
> * It is currently only available with the Batch Document Translation API.
220
+
> * Supported file format: .docx only.
221
+
> * An Azure AI Services resource (not the standalone Translator resource) is required to use this feature.
222
+
223
+
### Request configuration
224
+
225
+
* Use the optional `translateTextWithinImage` parameter in the `options` field
226
+
227
+
* Data type: Boolean (`true` or `false`)
228
+
* Default Boolean setting is `false`. Set the option to `true` to enable image text translation.
229
+
230
+
***Response Details**. When the feature is enabled, additional image processing information will be included with the response:
231
+
232
+
***`totalImageScansSucceeded`**. The number of successfully translated image scans.
233
+
234
+
***`totalImageScansFailed`**. The number of image scans that failed processing.
235
+
236
+
215
237
## Use code to submit Document Translation requests
|400|BadRequest|Arequiredparameterismissing, empty, or null. Or, the value passed to either a required or optional parameter is invalid. A common issue is a header that is too long. |
1282
-
| 401 | Unauthorized | The request isn't authorized. Check to make sure your key or token is valid and in the correct region. When managing your subscription on the Azureportal, makesureyou'reusingthe **Translator** single-serviceresource_not_the **AzureAIservices** multi-serviceresource.
1304
+
| 401 | Unauthorized | The request isn't authorized. Check to make sure your key or token is valid and in the correct region.
1283
1305
| 429 | Too Many Requests | You exceeded the quota or rate of requests allowed for your subscription. |
1284
1306
| 502 | Bad Gateway | Network or server-side issue. Can also indicate invalid headers. |
0 commit comments