pub trait VoicePipeline: Send + Sync {
// Required methods
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 synthesize<'life0, 'life1, 'async_trait>(
&'life0 self,
text: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, AgentError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Trait representing a generic voice pipeline.
Required Methods§
Sourcefn 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.