pub struct AssemblyAiStt { /* private fields */ }Available on crate feature
audio only.Expand description
AssemblyAI Universal STT provider.
Uses the AssemblyAI async transcription API (upload → create → poll).
Configure via ASSEMBLYAI_API_KEY environment variable.
Implementations§
Source§impl AssemblyAiStt
impl AssemblyAiStt
Sourcepub fn from_env() -> Result<AssemblyAiStt, AudioError>
Available on crate feature stt only.
pub fn from_env() -> Result<AssemblyAiStt, AudioError>
stt only.Create from environment variable ASSEMBLYAI_API_KEY.
Trait Implementations§
Source§impl SttProvider for AssemblyAiStt
impl SttProvider for AssemblyAiStt
Source§fn transcribe<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
audio: &'life1 AudioFrame,
opts: &'life2 SttOptions,
) -> Pin<Box<dyn Future<Output = Result<Transcript, AudioError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
AssemblyAiStt: 'async_trait,
fn transcribe<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
audio: &'life1 AudioFrame,
opts: &'life2 SttOptions,
) -> Pin<Box<dyn Future<Output = Result<Transcript, AudioError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
AssemblyAiStt: 'async_trait,
Transcribe a single audio frame (batch mode).
Source§fn transcribe_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
_audio: Pin<Box<dyn Stream<Item = AudioFrame> + Send>>,
_opts: &'life1 SttOptions,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Transcript, AudioError>> + Send>>, AudioError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
AssemblyAiStt: 'async_trait,
fn transcribe_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
_audio: Pin<Box<dyn Stream<Item = AudioFrame> + Send>>,
_opts: &'life1 SttOptions,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Transcript, AudioError>> + Send>>, AudioError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
AssemblyAiStt: 'async_trait,
Transcribe a stream of audio frames (streaming mode).
Auto Trait Implementations§
impl Freeze for AssemblyAiStt
impl !RefUnwindSafe for AssemblyAiStt
impl Send for AssemblyAiStt
impl Sync for AssemblyAiStt
impl Unpin for AssemblyAiStt
impl UnsafeUnpin for AssemblyAiStt
impl !UnwindSafe for AssemblyAiStt
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