Iteration Operations - Get Iteration
Haal een iteratie op id op.
GET {endpoint}/videotranslation/translations/{translationId}/iterations/{iterationId}?api-version=2024-05-20-preview
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
Ondersteunde Cognitive Services-eindpunten (protocol en hostnaam, bijvoorbeeld: https://eastus.api.cognitive.microsoft.com). |
iteration
|
path | True |
string minLength: 3maxLength: 64 pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$ |
Iteratie-id |
translation
|
path | True |
string minLength: 3maxLength: 64 pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$ |
Resource-id voor vertaling. |
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De aanvraag is voltooid. |
|
Other Status Codes |
Een onverwachte foutreactie. Kopteksten x-ms-error-code: string |
Beveiliging
Ocp-Apim-Subscription-Key
Geef hier uw spraakresourcesleutel op.
Type:
apiKey
In:
header
AADToken
Dit zijn de Microsoft Identity Platform stromen.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
https://cognitiveservices.azure.com/.default |
Voorbeelden
Get Iteration
Voorbeeldaanvraag
GET {endpoint}/videotranslation/translations/TranslateMyZhCNVideo/iterations/TranslateMyZhCNVideo-Iteration-1?api-version=2024-05-20-preview
Voorbeeldrespons
{
"id": "TranslateMyZhCNVideo-Iteration-1",
"description": "Translate video from en-US to zh-CN, fix segment issue.",
"status": "Succeeded",
"createdDateTime": "2023-04-10T05:30:00.000Z",
"lastActionDateTime": "2023-04-10T05:15:30.000Z",
"input": {
"speakerCount": 3,
"subtitleMaxCharCountPerSegment": 80,
"webvttFile": {
"url": "https://xxx.blob.core.windows.net/container1/myvtt.vtt?sv=2023-01-03&st=2024-05-20T08%3A27%3A15Z&se=2024-05-21T08%3A27%3A15Z&sr=b&sp=r&sig=xxx",
"kind": "MetadataJson"
}
},
"result": {
"translatedVideoFileUrl": "https://xxx.blob.core.windows.net/container1/video.mp4?sv=2023-01-03&st=2024-05-20T08%3A27%3A15Z&se=2024-05-21T08%3A27%3A15Z&sr=b&sp=r&sig=xxx",
"sourceLocaleSubtitleWebvttFileUrl": "https://xxx.blob.core.windows.net/container1/sourceLocale.vtt?sv=2023-01-03&st=2024-05-20T08%3A27%3A15Z&se=2024-05-21T08%3A27%3A15Z&sr=b&sp=r&sig=xxx",
"targetLocaleSubtitleWebvttFileUrl": "https://xxx.blob.core.windows.net/container1/targetLocale.vtt?sv=2023-01-03&st=2024-05-20T08%3A27%3A15Z&se=2024-05-21T08%3A27%3A15Z&sr=b&sp=r&sig=xxx",
"metadataJsonWebvttFileUrl": "https://xxx.blob.core.windows.net/container1/metadataJsonLocale.vtt?sv=2023-01-03&st=2024-05-20T08%3A27%3A15Z&se=2024-05-21T08%3A27%3A15Z&sr=b&sp=r&sig=xxx"
}
}
Definities
Name | Description |
---|---|
Azure. |
Het foutobject. |
Azure. |
Een antwoord met foutdetails. |
Azure. |
Een object met meer specifieke informatie over de fout. Volgens de richtlijnen voor Microsoft One-API- https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
Iteration |
Voer één iteratie uit om één videobestand te vertalen van de bronlocatie naar de doellocatie. Webvtt voor het bewerken van inhoud is optioneel voor het aanvragen van de parameter. |
Iteration |
Iteratie-invoer. |
Iteration |
Iteratieresultaat. |
Status |
Taakstatus. |
Webvtt |
Webvtt-bestand vertalen. |
Webvtt |
Webvtt-bestandstype. |
Azure.Core.Foundations.Error
Het foutobject.
Name | Type | Description |
---|---|---|
code |
string |
Een van een door de server gedefinieerde set foutcodes. |
details |
Een matrix met details over specifieke fouten die hebben geleid tot deze gemelde fout. |
|
innererror |
Een object met meer specifieke informatie dan het huidige object over de fout. |
|
message |
string |
Een leesbare weergave van de fout. |
target |
string |
Het doel van de fout. |
Azure.Core.Foundations.ErrorResponse
Een antwoord met foutdetails.
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
Azure.Core.Foundations.InnerError
Een object met meer specifieke informatie over de fout. Volgens de richtlijnen voor Microsoft One-API- https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
Name | Type | Description |
---|---|---|
code |
string |
Een van een door de server gedefinieerde set foutcodes. |
innererror |
Interne fout. |
Iteration
Voer één iteratie uit om één videobestand te vertalen van de bronlocatie naar de doellocatie. Webvtt voor het bewerken van inhoud is optioneel voor het aanvragen van de parameter.
Name | Type | Description |
---|---|---|
createdDateTime |
string (date-time) |
De tijdstempel waarop het object is gemaakt. De tijdstempel wordt gecodeerd als ISO 8601-datum- en tijdnotatie ('JJJJ-MM-DDThh:mm:ssZ', zie https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations). |
description |
string |
Beschrijving van iteratie |
failureReason |
string |
Reden van iteratiefout |
id |
string minLength: 3maxLength: 64 pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$ |
Iteratie-id |
input |
Iteratie-invoer. |
|
lastActionDateTime |
string (date-time) |
De tijdstempel waarop de huidige status is ingevoerd. De tijdstempel wordt gecodeerd als ISO 8601-datum- en tijdnotatie ('JJJJ-MM-DDThh:mm:ssZ', zie https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations). |
result |
Iteratieresultaat. |
|
status |
Iteratiestatus |
IterationInput
Iteratie-invoer.
Name | Type | Description |
---|---|---|
exportSubtitleInVideo |
boolean |
Ondertitel exporteren in video. |
speakerCount |
integer (int32) |
Aantal sprekers in de video. |
subtitleMaxCharCountPerSegment |
integer (int32) |
Maximum aantal ondertiteltekens per segment. |
webvttFile |
Webvtt-bestand voor het bewerken van inhoud is deze parameter vereist vanaf de tweede aanvraag voor het maken van de iteratie van de vertaling. |
IterationResult
Iteratieresultaat.
Name | Type | Description |
---|---|---|
metadataJsonWebvttFileUrl |
string (uri) |
URL van json-webvtt-bestand met metagegevens. |
reportFileUrl |
string (uri) |
URL van rapportbestand. |
sourceLocaleSubtitleWebvttFileUrl |
string (uri) |
URL van subtitelbestand van bronlandinstelling. |
targetLocaleSubtitleWebvttFileUrl |
string (uri) |
Url van doelondertitelbestand voor landinstellingen. |
translatedVideoFileUrl |
string (uri) |
Vertaalde URL van videobestand. |
Status
Taakstatus.
Waarde | Description |
---|---|
Canceled |
Geannuleerde status |
Failed |
Mislukte uitvoeringsstatus |
NotStarted |
Status niet gestart |
Running |
Status wordt uitgevoerd |
Succeeded |
Geslaagde status uitvoeren |
WebvttFile
Webvtt-bestand vertalen.
Name | Type | Description |
---|---|---|
kind |
Type vertaling van webvtt-bestand. |
|
url |
string (uri) |
URL van webvtt-bestand vertalen. |
WebvttFileKind
Webvtt-bestandstype.
Waarde | Description |
---|---|
MetadataJson |
JSON-webvtt-bestand met doelmetagegevens van landinstellingen |
SourceLocaleSubtitle |
Webvtt-bestand met tekst zonder opmaak voor brontekst |
TargetLocaleSubtitle |
Doellandinstelling webvtt-bestand met tekst zonder opmaak |