Struct revai::captions::Captions [−][src]
pub struct Captions {
pub client: Client,
}
Fields
client: Client
Implementations
Get Captions.
This function performs a GET
to the /jobs/{id}/captions
endpoint.
Returns the caption output for a transcription job. We currently support SubRip (SRT) and Web Video Text Tracks (VTT) output.
Caption output format can be specified in the Accept
header. Returns SRT by default.
Note: For streaming jobs, transient failure of our storage during a live session may prevent the final hypothesis elements from saving properly, resulting in an incomplete caption file. This is rare, but not impossible.
Parameters:
accept: crate::types::Accept
– MIME type specifying the caption output format.speaker_channel: i64
– Identifies which channel of the job output to caption. Default isnull
which works only for jobs with nospeaker_channels_count
provided during job submission.
Auto Trait Implementations
impl !RefUnwindSafe for Captions
impl !UnwindSafe for Captions
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more