pub struct Transcription {
pub text: String,
pub languages: Option<Vec<TranscriptionLanguage>>,
pub logprobs: Option<Vec<TranscriptionLogprob>>,
pub usage: Option<TranscriptionUsage>,
}Expand description
Represents a transcription response returned by the model.
Fields§
§text: StringThe transcribed text.
languages: Option<Vec<TranscriptionLanguage>>The languages detected in the audio.
Returned by gpt-transcribe. An empty array indicates that no
language could be reliably detected.
logprobs: Option<Vec<TranscriptionLogprob>>The log probabilities of the tokens in the transcription.
Only returned with the models gpt-4o-transcribe and
gpt-4o-mini-transcribe if logprobs is added to the include
array.
usage: Option<TranscriptionUsage>Usage statistics for the request.
Trait Implementations§
Source§impl Clone for Transcription
impl Clone for Transcription
Source§impl Debug for Transcription
impl Debug for Transcription
Source§impl<'de> Deserialize<'de> for Transcription
impl<'de> Deserialize<'de> for Transcription
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Transcription
impl RefUnwindSafe for Transcription
impl Send for Transcription
impl Sync for Transcription
impl Unpin for Transcription
impl UnsafeUnpin for Transcription
impl UnwindSafe for Transcription
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