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 is null which works only for jobs with no speaker_channels_count provided during job submission.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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