#[non_exhaustive]pub enum SttModel {
Whisper1,
Gpt4oTranscribe,
Gpt4oMiniTranscribe,
Gpt4oTranscribeDiarize,
GptTranscribe,
GptLiveTranscribe,
GptRealtimeWhisper,
}Expand description
Speech-to-text models for transcription and translation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Whisper1
Whisper v1 model
Gpt4oTranscribe
GPT-4o Transcribe model
Gpt4oMiniTranscribe
GPT-4o Mini Transcribe - cheaper GPT-4o Transcribe
Gpt4oTranscribeDiarize
GPT-4o Transcribe Diarize - transcription with speaker diarization
GptTranscribe
GPT Transcribe - high-accuracy speech-to-text for file and realtime input
GptLiveTranscribe
GPT Live Transcribe - low-latency streaming transcript deltas
Realtime transcription sessions only; not available on
/v1/audio/transcriptions.
GptRealtimeWhisper
GPT Realtime Whisper - Whisper for realtime transcription sessions
Realtime transcription sessions only; not available on
/v1/audio/transcriptions.
Implementations§
Source§impl SttModel
impl SttModel
Sourcepub fn supports_file_transcription(&self) -> bool
pub fn supports_file_transcription(&self) -> bool
Returns true if the model can transcribe uploaded files via
/v1/audio/transcriptions.
GptLiveTranscribe and
GptRealtimeWhisper are exposed only on
/v1/realtime/transcription_sessions, so passing them to
Audio::transcribe would be rejected by the API.
Trait Implementations§
impl Copy for SttModel
Source§impl<'de> Deserialize<'de> for SttModel
impl<'de> Deserialize<'de> for SttModel
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>,
impl Eq for SttModel
impl StructuralPartialEq for SttModel
Auto Trait Implementations§
impl Freeze for SttModel
impl RefUnwindSafe for SttModel
impl Send for SttModel
impl Sync for SttModel
impl Unpin for SttModel
impl UnsafeUnpin for SttModel
impl UnwindSafe for SttModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.