Struct revai::transcript::Transcript
source · pub struct Transcript {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl Transcript
impl Transcript
sourcepub async fn get(
&self,
id: &str,
accept: AcceptTranscript
) -> Result<Response<String>, ClientError>
pub async fn get( &self, id: &str, accept: AcceptTranscript ) -> Result<Response<String>, ClientError>
Get Transcript By Id.
This function performs a GET
to the /jobs/{id}/transcript
endpoint.
Returns the transcript for a completed transcription job. Transcript can be returned as either JSON or plaintext format. Transcript output format can be specified in the Accept
header. Returns JSON 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 transcript. This is rare, but not impossible. To guarantee 100% completeness, we recommend capturing all final hypothesis when you receive them on the client.
Parameters:
accept: crate::types::AcceptTranscript
– MIME type specifying the transcription output format.
Auto Trait Implementations§
impl !RefUnwindSafe for Transcript
impl Send for Transcript
impl Sync for Transcript
impl Unpin for Transcript
impl !UnwindSafe for Transcript
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
Mutably borrows from an owned value. Read more