Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add video translation API for GA.
  • Loading branch information
DapengLi2016 committed Apr 24, 2025
commit f6420265b7977328e5baab0a519f8b15a933087c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Endpoint": "https://eastus.api.cognitive.microsoft.com/",
"api-version": "2025-05-20",
"Ocp-Apim-Subscription-Key": "{API Key}",
"resource": {
"body": {
"isEnabled": true,
"eventHubNamespaceHostName": "your-event-hub-namespace.servicebus.windows.net",
"eventHubName": "your-event-hub-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"IterationCompletion"
]
}
},
"404": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"enableVideoSpeedAdjustment": true,
"exportTargetLocaleAdvancedSubtitleFile": true,
"enableOcrCorrectionFromSubtitle": true,
"subtitlePrimaryColour": "ffffff",
"subtitlePrimaryColor": "ffffff",
"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"
Expand All @@ -43,7 +43,7 @@
"enableVideoSpeedAdjustment": true,
"exportTargetLocaleAdvancedSubtitleFile": true,
"enableOcrCorrectionFromSubtitle": true,
"subtitlePrimaryColour": "ffffff",
"subtitlePrimaryColor": "ffffff",
"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"
Expand All @@ -68,7 +68,7 @@
"enableVideoSpeedAdjustment": true,
"exportTargetLocaleAdvancedSubtitleFile": true,
"enableOcrCorrectionFromSubtitle": true,
"subtitlePrimaryColour": "ffffff",
"subtitlePrimaryColor": "ffffff",
"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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"enableVideoSpeedAdjustment": true,
"exportTargetLocaleAdvancedSubtitleFile": true,
"enableOcrCorrectionFromSubtitle": true,
"subtitlePrimaryColour": "ffffff",
"subtitlePrimaryColor": "ffffff",
"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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"enableVideoSpeedAdjustment": true,
"exportTargetLocaleAdvancedSubtitleFile": true,
"enableOcrCorrectionFromSubtitle": true,
"subtitlePrimaryColour": "ffffff",
"subtitlePrimaryColor": "ffffff",
"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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ model IterationInput {
exportSubtitleInVideo?: boolean;

@added(ApiVersions.v2025_05_20)
@doc("Translate with TTS custom lexicon for TTS synthesis, proivde the custom lexicon file with URL, ttsCustomLexiconFileUrl and ttsCustomLexiconFileIdInAudioContentCreation are conflict, only one of them are requied.")
@doc("Translate with TTS custom lexicon for TTS synthesis, provide the custom lexicon file with URL, ttsCustomLexiconFileUrl and ttsCustomLexiconFileIdInAudioContentCreation are conflict, only one of them are required.")
ttsCustomLexiconFileUrl?: url;

@added(ApiVersions.v2025_05_20)
@doc("Translate with TTS custom lexicon for TTS synthesis, proivde the custom lexicon file with file ID in Audio Content Creation, ttsCustomLexiconFileUrl and ttsCustomLexiconFileIdInAudioContentCreation are conflict, only one of them are requied.")
@doc("Translate with TTS custom lexicon for TTS synthesis, provide the custom lexicon file with file ID in Audio Content Creation, ttsCustomLexiconFileUrl and ttsCustomLexiconFileIdInAudioContentCreation are conflict, only one of them are required.")
ttsCustomLexiconFileIdInAudioContentCreation?: Guid;

@added(ApiVersions.v2025_05_20)
Expand Down Expand Up @@ -399,9 +399,6 @@ interface OperationOperations {
getOperation is ops.ResourceRead<Operation>;
}

@doc("Empty request body.")
model EmptyRequest {}

@added(ApiVersions.v2025_05_20)
interface EventHubConfigOperations {
@doc("Create or replace EventHub configuration.")
Expand All @@ -412,76 +409,15 @@ interface EventHubConfigOperations {
@doc("Get EventHub configuration.")
@route("/configurations/event-hub")
@get
getEventHubConfig is RpcOperation<EmptyRequest, EventHubConfig>;
getEventHubConfig is RpcOperation<{}, EventHubConfig>;

@doc("Get EventHub configuration.")
@delete
@route("/configurations/event-hub")
deleteEventHubConfig is RpcOperation<EventHubConfig, NoContentResponse>;
deleteEventHubConfig is RpcOperation<{}, NoContentResponse>;

@doc("Send ping to EventHub to verify configuration.")
@route("/configurations/event-hub:ping")
@post
pingEventHub is RpcOperation<EmptyRequest,NoContentResponse>;
pingEventHub is RpcOperation<{}, OkResponse>;
}

// #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Using custom operation signature for specific requirements"
// @added(ApiVersions.v2025_05_20)
// @doc("Create or replace EventHub configuration.")
// @route("/configurations/event-hub")
// @put
// op createOrReplaceEventHubConfig(
// @doc("API version parameter")
// @query("api-version")
// apiVersion: string,

// // @ApiVersionParameter("api-version")
// @doc("EventHub configuration.")
// @body
// resource: EventHubConfig,
// ): EventHubConfig;

// #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Using custom operation signature for specific requirements"
// @added(ApiVersions.v2025_05_20)
// @doc("Get EventHub configuration.")
// @route("/configurations/event-hub")
// @get
// op getEventHubConfig(
// @doc("API version parameter")
// @query("api-version")
// apiVersion: string,
// ): {
// #suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Union of literals should include the base scalar as a variant to make it an open enum. (ex: `union Choice { Yes: " yes ", No: " no ", string };`)."
// @statusCode status: 200;

// @doc("EventHub configuration.")
// @added(ApiVersions.v2025_05_20)
// @body
// resource?: EventHubConfig;
// };

// #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Using custom operation signature for specific requirements"
// @added(ApiVersions.v2025_05_20)
// @doc("Delete EventHub configuration.")
// @route("/configurations/event-hub")
// @delete
// op deleteEventHubConfig(
// @doc("API version parameter")
// @query("api-version")
// apiVersion: string,
// ): {
// @statusCode status: 204;
// };

// #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Using custom operation signature for specific requirements"
// @added(ApiVersions.v2025_05_20)
// @doc("Send ping to EventHub to verify configuration.")
// @route("/configurations/event-hub:ping")
// @post
// op pingEventHub(
// @doc("API version parameter")
// @query("api-version")
// apiVersion: string,
// ): {
// @statusCode status: 200;
// };
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

Configuration for generating VideoTranslation SDK.

The current release for the VideoTranslation is `release_2024_05_20_preview`.
The current release for the VideoTranslation is `release_2025_05_20`.

``` yaml
tag: release_2024_05_20_preview
tag: release_2025_05_20
add-credentials: true
openapi-type: data-plane
```
Expand All @@ -22,3 +22,12 @@ These settings apply only when `--tag=release_2024_05_20_preview` is specified o
input-file:
- preview/2024-05-20-preview/VideoTranslation.json
```

## VideoTranslation 2025-05-20

These settings apply only when `--tag=release_2025_05_20` is specified on the command line.

```yaml $(tag) == 'release_2025_05_20'
input-file:
- stable/2025-05-20/VideoTranslation.json
```
Loading
Loading