pub struct HttpVoicePipeline { /* private fields */ }
Expand description
Composed pipeline using STT and TTS.
Implementations§
Trait Implementations§
Source§impl VoicePipeline for HttpVoicePipeline
impl VoicePipeline for HttpVoicePipeline
Source§fn transcribe<'life0, 'life1, 'async_trait>(
&'life0 self,
audio: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<String, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn transcribe<'life0, 'life1, 'async_trait>(
&'life0 self,
audio: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<String, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process an input audio buffer and return a textual transcription.
Auto Trait Implementations§
impl Freeze for HttpVoicePipeline
impl !RefUnwindSafe for HttpVoicePipeline
impl Send for HttpVoicePipeline
impl Sync for HttpVoicePipeline
impl Unpin for HttpVoicePipeline
impl !UnwindSafe for HttpVoicePipeline
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