Skip to content

Commit c58a1bb

Browse files
Google APIscopybara-github
authored andcommitted
feat: add support for automatically generating subtitle for input videos
PiperOrigin-RevId: 798365183
1 parent 731d7f2 commit c58a1bb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

google/cloud/video/transcoder/v1/resources.proto

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ message Input {
242242

243243
// Preprocessing configurations.
244244
PreprocessingConfig preprocessing_config = 3;
245+
246+
// Optional. Input Attributes.
247+
InputAttributes attributes = 4 [(google.api.field_behavior) = OPTIONAL];
245248
}
246249

247250
// Location of output file(s) in a Cloud Storage bucket.
@@ -832,6 +835,37 @@ message PreprocessingConfig {
832835
Deinterlace deinterlace = 7;
833836
}
834837

838+
// Track definition for the input asset.
839+
message TrackDefinition {
840+
// The input track.
841+
optional int32 input_track = 1;
842+
843+
// Optional. A list of languages spoken in the input asset, represented by a
844+
// BCP 47 language code, such as "en-US" or "sr-Latn". For more information,
845+
// see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
846+
repeated string languages = 2 [(google.api.field_behavior) = OPTIONAL];
847+
848+
// Optional. Whether to automatically detect the languages present in the
849+
// track. If true, the system will attempt to identify all the languages
850+
// present in the track and populate the languages field.
851+
bool detect_languages = 3 [(google.api.field_behavior) = OPTIONAL];
852+
853+
// Output only. A list of languages detected in the input asset, represented
854+
// by a BCP 47 language code, such as "en-US" or "sr-Latn". For more
855+
// information, see
856+
// https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
857+
// This field is only populated if the detect_languages field is set to true.
858+
repeated string detected_languages = 4
859+
[(google.api.field_behavior) = OUTPUT_ONLY];
860+
}
861+
862+
// Input attributes that provide additional information about the input asset.
863+
message InputAttributes {
864+
// Optional. A list of track definitions for the input asset.
865+
repeated TrackDefinition track_definitions = 1
866+
[(google.api.field_behavior) = OPTIONAL];
867+
}
868+
835869
// Video stream resource.
836870
message VideoStream {
837871
// The conversion strategy for desired frame rate.

0 commit comments

Comments
 (0)