|
| 1 | +{ |
| 2 | + "title": "Create Translation", |
| 3 | + "operationId": "TranslationOperations_CreateOrReplaceTranslation", |
| 4 | + "parameters": { |
| 5 | + "Endpoint": "https://eastus.api.cognitive.microsoft.com/", |
| 6 | + "api-version": "2024-05-20-preview", |
| 7 | + "translationId": "TranslateMyZhCNVideo", |
| 8 | + "Ocp-Apim-Subscription-Key": "{API Key}", |
| 9 | + "Operation-Id": "Create-TranslateMyZhCNVideo", |
| 10 | + "resource": { |
| 11 | + "displayName": "hello.mp4", |
| 12 | + "description": "Translate video from en-US to zh-CN.", |
| 13 | + "input": { |
| 14 | + "sourceLocale": "en-US", |
| 15 | + "targetLocale": "zh-CN", |
| 16 | + "voiceKind": "PlatformVoice", |
| 17 | + "videoFileUrl": "https://mystorage.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" |
| 18 | + } |
| 19 | + }, |
| 20 | + "Content-Type": "application/json" |
| 21 | + }, |
| 22 | + "responses": { |
| 23 | + "200": { |
| 24 | + "headers": { |
| 25 | + "Operation-Location": "https://eastus.api.cognitive.microsoft.com/videotranslation/operations/Create-TranslateMyZhCNVideo?api-version=2024-02-01-preview", |
| 26 | + "Operation-Id": "Create-TranslateMyZhCNVideo" |
| 27 | + }, |
| 28 | + "body": { |
| 29 | + "id": "TranslateMyZhCNVideo", |
| 30 | + "displayName": "hello.mp4", |
| 31 | + "description": "Translate video from en-US to zh-CN.", |
| 32 | + "input": { |
| 33 | + "sourceLocale": "en-US", |
| 34 | + "targetLocale": "zh-CN", |
| 35 | + "voiceKind": "PlatformVoice", |
| 36 | + "videoFileUrl": "https://mystorage.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" |
| 37 | + }, |
| 38 | + "createdDateTime": "2023-04-01T05:30:00.000Z", |
| 39 | + "latestIteration": { |
| 40 | + "id": "Initial", |
| 41 | + "status": "NotStarted", |
| 42 | + "input": { |
| 43 | + "speakerCount": 3, |
| 44 | + "subtitleMaxCharCountPerSegment": 80, |
| 45 | + "webvttFile": { |
| 46 | + "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", |
| 47 | + "kind": "MetadataJson" |
| 48 | + } |
| 49 | + } |
| 50 | + } |
| 51 | + } |
| 52 | + }, |
| 53 | + "201": { |
| 54 | + "headers": { |
| 55 | + "Operation-Location": "https://eastus.api.cognitive.microsoft.com/videotranslation/operations/Create-TranslateMyZhCNVideo?api-version=2024-02-01-preview", |
| 56 | + "Operation-Id": "Create-TranslateMyZhCNVideo" |
| 57 | + }, |
| 58 | + "body": { |
| 59 | + "id": "TranslateMyZhCNVideo", |
| 60 | + "description": "Translate video from en-US to zh-CN.", |
| 61 | + "input": { |
| 62 | + "sourceLocale": "en-US", |
| 63 | + "targetLocale": "zh-CN", |
| 64 | + "voiceKind": "PlatformVoice", |
| 65 | + "videoFileUrl": "https://mystorage.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" |
| 66 | + }, |
| 67 | + "createdDateTime": "2023-04-01T05:30:00.000Z", |
| 68 | + "latestIteration": { |
| 69 | + "id": "Initial", |
| 70 | + "status": "NotStarted", |
| 71 | + "input": { |
| 72 | + "speakerCount": 3, |
| 73 | + "subtitleMaxCharCountPerSegment": 80, |
| 74 | + "webvttFile": { |
| 75 | + "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", |
| 76 | + "kind": "MetadataJson" |
| 77 | + } |
| 78 | + } |
| 79 | + } |
| 80 | + } |
| 81 | + } |
| 82 | + } |
| 83 | +} |
0 commit comments