Struct aws_sdk_transcribe::types::Subtitles
source · #[non_exhaustive]pub struct Subtitles {
pub formats: Option<Vec<SubtitleFormat>>,
pub output_start_index: Option<i32>,
}
Expand description
Generate subtitles for your media file with your transcription request.
You can choose a start index of 0 or 1, and you can specify either WebVTT or SubRip (or both) as your output format.
Note that your subtitle files are placed in the same location as your transcription output.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.formats: Option<Vec<SubtitleFormat>>
Specify the output format for your subtitle file; if you select both WebVTT (vtt
) and SubRip (srt
) formats, two output files are generated.
output_start_index: Option<i32>
Specify the starting value that is assigned to the first subtitle segment.
The default start index for Amazon Transcribe is 0
, which differs from the more widely used standard of 1
. If you're uncertain which value to use, we recommend choosing 1
, as this may improve compatibility with other services.
Implementations§
source§impl Subtitles
impl Subtitles
sourcepub fn formats(&self) -> &[SubtitleFormat]
pub fn formats(&self) -> &[SubtitleFormat]
Specify the output format for your subtitle file; if you select both WebVTT (vtt
) and SubRip (srt
) formats, two output files are generated.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .formats.is_none()
.
sourcepub fn output_start_index(&self) -> Option<i32>
pub fn output_start_index(&self) -> Option<i32>
Specify the starting value that is assigned to the first subtitle segment.
The default start index for Amazon Transcribe is 0
, which differs from the more widely used standard of 1
. If you're uncertain which value to use, we recommend choosing 1
, as this may improve compatibility with other services.