Skip to content

Commit f2b4f68

Browse files
committed
video translation api refresh
1 parent f004b3a commit f2b4f68

File tree

1 file changed

+20
-20
lines changed
  • articles/ai-services/speech-service/includes/how-to/video-translation

1 file changed

+20
-20
lines changed

articles/ai-services/speech-service/includes/how-to/video-translation/rest.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@ ms.custom: references_regions
1111

1212
The video translation REST API facilitates seamless video translation integration into your applications. It supports uploading, managing, and refining video translations, with multiple iterations for continuous improvement. In this article, you learn how to utilize video translation through the REST API.
1313

14-
## REST API operations
15-
16-
You can use the following REST API operations for video translation:
17-
18-
| Operation | Method | REST API call |
19-
| ----------------------------------------------------- | ------ | ------------------------------------------------- |
20-
| [Create a translation](/rest/api/aiservices/videotranslation/translation-operations/create-translation) | `PUT` | `/translations/{translationId}` |
21-
| [List translations](/rest/api/aiservices/videotranslation/translation-operations/list-translation) | `GET` | `/translations`|
22-
| [Get a translation by translation ID](/rest/api/aiservices/videotranslation/translation-operations/get-translation) | `GET` | `/translations/{translationId}` |
23-
| [Create an iteration](/rest/api/aiservices/videotranslation/iteration-operations/create-iteration) | `PUT` | `/translations/{translationId}/iterations/{iterationId}` |
24-
| [List iterations](/rest/api/aiservices/videotranslation/iteration-operations/list-iteration)| `GET` | `/translations/{translationId}/iterations` |
25-
| [Get an iteration by iteration ID](/rest/api/aiservices/videotranslation/iteration-operations/get-iteration) | `GET` | `/translations/{translationId}/iterations/{iterationId}` |
26-
| [Get operation by operation ID](/rest/api/aiservices/videotranslation/operation-operations/get-operation) | `GET` | `/operations/{operationId}` |
27-
| [Delete a translation by translation ID](/rest/api/aiservices/videotranslation/translation-operations/delete-translation) | `DELETE`| `/translations/{translationId}` |
28-
29-
For code samples, see [GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/video-translation/csharp).
30-
3114
## Pre-requisites
3215

3316
- An Azure subscription. If you don't have an Azure subscription, create a free account before you begin.
@@ -610,17 +593,34 @@ You should receive a response body in the following format:
610593

611594
## Delete a translation by translation ID
612595

613-
Remove a specific translation identified by `translationId`. This operation also removes all iterations associated with this translation. Replace `YourSpeechResourceKey` with your Speech resource key, `YourSpeechResourceRegion` with your Speech resource region, and `Your-Translation-Id` with the translation ID you want to delete. If not deleted manually, the service retains the translation history for up to 31 days.
596+
Remove a specific translation identified by `translationId`. This operation also removes all iterations associated with this translation.
597+
598+
Replace `YourSpeechResourceKey` with your Speech resource key, `YourSpeechResourceRegion` with your Speech resource region, and `Your-Translation-Id` with the translation ID you want to delete. If not deleted manually, the service retains the translation history for up to 31 days.
614599

615600
```azurecli-interactive
616601
curl -v -X DELETE -H "Ocp-Apim-Subscription-Key: YourSpeechResourceKey" "https://YourSpeechResourceRegion.api.cognitive.microsoft.com/videotranslation/translations/Your-Translation-Id?api-version=2024-05-20-preview"
617602
```
618603

619604
The response headers include `HTTP/1.1 204 No Content` if the delete request was successful.
620605

621-
## More REST API examples
606+
## REST API operations
607+
608+
You can use the following REST API operations for video translation:
609+
610+
| Operation | Method | REST API call |
611+
| ----------------------------------------------------- | ------ | ------------------------------------------------- |
612+
| [Create a translation](/rest/api/aiservices/videotranslation/translation-operations/create-translation) | `PUT` | `/translations/{translationId}` |
613+
| [List translations](/rest/api/aiservices/videotranslation/translation-operations/list-translation) | `GET` | `/translations`|
614+
| [Get a translation by translation ID](/rest/api/aiservices/videotranslation/translation-operations/get-translation) | `GET` | `/translations/{translationId}` |
615+
| [Create an iteration](/rest/api/aiservices/videotranslation/iteration-operations/create-iteration) | `PUT` | `/translations/{translationId}/iterations/{iterationId}` |
616+
| [List iterations](/rest/api/aiservices/videotranslation/iteration-operations/list-iteration)| `GET` | `/translations/{translationId}/iterations` |
617+
| [Get an iteration by iteration ID](/rest/api/aiservices/videotranslation/iteration-operations/get-iteration) | `GET` | `/translations/{translationId}/iterations/{iterationId}` |
618+
| [Get operation by operation ID](/rest/api/aiservices/videotranslation/operation-operations/get-operation) | `GET` | `/operations/{operationId}` |
619+
| [Delete a translation by translation ID](/rest/api/aiservices/videotranslation/translation-operations/delete-translation) | `DELETE`| `/translations/{translationId}` |
620+
621+
For code samples, see [GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/video-translation/csharp).
622622

623-
This section provides curl commands for other video translation API calls that aren't described in detail previously.
623+
This section provides examples for other video translation API calls that aren't described in detail previously.
624624

625625
### List translations
626626

0 commit comments

Comments
 (0)