pub trait VoiceService:
Send
+ Sync
+ 'static {
type StreamVoiceEventsStream: Stream<Item = Result<VoiceEvent, Status>> + Send + 'static;
// Required methods
fn create_voice_session<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateVoiceSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<VoiceSession>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_voice_session<'life0, 'async_trait>(
&'life0 self,
request: Request<GetVoiceSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<VoiceSession>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_voice_session<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteVoiceSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_voices<'life0, 'async_trait>(
&'life0 self,
request: Request<ListVoicesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListVoicesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stream_voice_events<'life0, 'async_trait>(
&'life0 self,
request: Request<StreamVoiceEventsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamVoiceEventsStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with VoiceServiceServer.
Required Associated Types§
Sourcetype StreamVoiceEventsStream: Stream<Item = Result<VoiceEvent, Status>> + Send + 'static
type StreamVoiceEventsStream: Stream<Item = Result<VoiceEvent, Status>> + Send + 'static
Server streaming response type for the StreamVoiceEvents method.
Required Methods§
Sourcefn create_voice_session<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateVoiceSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<VoiceSession>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_voice_session<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateVoiceSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<VoiceSession>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new voice session (LiveKit room + agent dispatch)
Sourcefn get_voice_session<'life0, 'async_trait>(
&'life0 self,
request: Request<GetVoiceSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<VoiceSession>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_voice_session<'life0, 'async_trait>(
&'life0 self,
request: Request<GetVoiceSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<VoiceSession>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get current state of a voice session
Sourcefn delete_voice_session<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteVoiceSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_voice_session<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteVoiceSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
End a voice session
Sourcefn list_voices<'life0, 'async_trait>(
&'life0 self,
request: Request<ListVoicesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListVoicesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_voices<'life0, 'async_trait>(
&'life0 self,
request: Request<ListVoicesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListVoicesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List available voice profiles
Sourcefn stream_voice_events<'life0, 'async_trait>(
&'life0 self,
request: Request<StreamVoiceEventsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamVoiceEventsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_voice_events<'life0, 'async_trait>(
&'life0 self,
request: Request<StreamVoiceEventsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamVoiceEventsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stream voice events (transcripts, state changes) for a session