Trait RealtimeProvider
Source pub trait RealtimeProvider: Send + Sync {
// Required methods
fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 LlmConfig,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn send_audio<'life0, 'life1, 'async_trait>(
&'life0 self,
audio: &'life1 [i16],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn subscribe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<RealtimeResponse>> + Send>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}