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.
Trait Implementations§
source§impl PartialEq for Subtitles
impl PartialEq for Subtitles
impl StructuralPartialEq for Subtitles
Auto Trait Implementations§
impl Freeze for Subtitles
impl RefUnwindSafe for Subtitles
impl Send for Subtitles
impl Sync for Subtitles
impl Unpin for Subtitles
impl UnwindSafe for Subtitles
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more