pub struct AudioTranscriber { /* private fields */ }Expand description
Complete audio transcription pipeline backed by configured provider clients.
Implementations§
Source§impl AudioTranscriber
impl AudioTranscriber
Sourcepub fn new(gemini: Gemini, codex: Codex) -> Self
pub fn new(gemini: Gemini, codex: Codex) -> Self
Constructs a transcriber without receiving or resolving provider keys.
Sourcepub fn transcribe(&self, audio: Vec<u8>) -> TranscriptionJob
pub fn transcribe(&self, audio: Vec<u8>) -> TranscriptionJob
Starts transcription of owned WAV bytes and immediately returns a job.
The complete pipeline runs on the current Tokio runtime. If no runtime is active, the returned job is immediately failed with a status error.
Trait Implementations§
Source§impl Clone for AudioTranscriber
impl Clone for AudioTranscriber
Source§fn clone(&self) -> AudioTranscriber
fn clone(&self) -> AudioTranscriber
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AudioTranscriber
impl !UnwindSafe for AudioTranscriber
impl Freeze for AudioTranscriber
impl Send for AudioTranscriber
impl Sync for AudioTranscriber
impl Unpin for AudioTranscriber
impl UnsafeUnpin for AudioTranscriber
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