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 parameter to control emotional voice for iteration.
  • Loading branch information
DapengLi2016 committed Apr 24, 2025
commit 96e14ecbb46ef19bd86951a9fe9111168162644a
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,21 @@ union EventHubVideoTranslationEventKind {
IterationCompletion: "IterationCompletion",
}

@added(ApiVersions.v2025_05_20)
@doc("Emotional platform voice kind.")
union EmotionalPlatformVoiceKind {
string,

/** Let API to decide whether enable emotional voice for the target locale. */
Auto: "Auto",

/** Force to enable emotional voice if there is voice supported emotion for the target locale. */
Enable: "Enable",

/** Disable platform voice emotion for the target locale. */
Disable: "Disable",
}

@doc("Translation webvtt file.")
model WebvttFile {
@doc("Translation webvtt file url.")
Expand Down Expand Up @@ -236,6 +251,10 @@ model IterationInput {
@added(ApiVersions.v2025_05_20)
@doc("This parameter specifies the primary color of the subtitles in the video translation output. The value should be provided in the format <bb><gg><rr> or #<bb><gg><rr>, where <bb> represents the blue component, <gg> represents the green component, and <rr> represents the red component of the color. For example, EBA205 or #EBA205 would set the subtitle color to a specific shade of yellow. This parameter allows for customization of subtitle appearance to enhance readability and visual appeal")
subtitlePrimaryColor?: string;

@added(ApiVersions.v2025_05_20)
@doc("This parameter specifies whether or not enable the emotion for platform voice, by default let server to decide whether enable emotion for better quality for the target locale.")
emotionalPlatformVoiceKind?: EmotionalPlatformVoiceKind;
}

@added(ApiVersions.v2025_05_20)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,36 @@
}
}
},
"EmotionalPlatformVoiceKind": {
"type": "string",
"description": "Emotional platform voice kind.",
"enum": [
"Auto",
"Enable",
"Disable"
],
"x-ms-enum": {
"name": "EmotionalPlatformVoiceKind",
"modelAsString": true,
"values": [
{
"name": "Auto",
"value": "Auto",
"description": "Let API to decide whether enable emotional voice for the target locale."
},
{
"name": "Enable",
"value": "Enable",
"description": "Force to enable emotional voice if there is voice supported emotion for the target locale."
},
{
"name": "Disable",
"value": "Disable",
"description": "Disable platform voice emotion for the target locale."
}
]
}
},
"EventHubConfig": {
"type": "object",
"description": "EventHub configuration.",
Expand Down Expand Up @@ -938,6 +968,10 @@
"subtitlePrimaryColor": {
"type": "string",
"description": "This parameter specifies the primary color of the subtitles in the video translation output. The value should be provided in the format <bb><gg><rr> or #<bb><gg><rr>, where <bb> represents the blue component, <gg> represents the green component, and <rr> represents the red component of the color. For example, EBA205 or #EBA205 would set the subtitle color to a specific shade of yellow. This parameter allows for customization of subtitle appearance to enhance readability and visual appeal"
},
"emotionalPlatformVoiceKind": {
"$ref": "#/definitions/EmotionalPlatformVoiceKind",
"description": "This parameter specifies whether or not enable the emotion for platform voice, by default let server to decide whether enable emotion for better quality for the target locale."
}
}
},
Expand Down
Loading