pub struct AudioTranscriber { /* private fields */ }Expand description
Complete audio workflow backed by caller-owned typed intelligence operations.
Implementations§
Source§impl AudioTranscriber
impl AudioTranscriber
Sourcepub fn new(
transcribe_chunk: AudioChunkCall,
generate_text: TextGenerationCall,
) -> Self
pub fn new( transcribe_chunk: AudioChunkCall, generate_text: TextGenerationCall, ) -> Self
Constructs a transcriber from typed intelligence-router calls.
Sourcepub fn transcribe(
&self,
user_id: impl Into<String>,
audio: Vec<u8>,
) -> TranscriptionJob
pub fn transcribe( &self, user_id: impl Into<String>, 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