synapto-interface 0.1.0-dev.12

Interface definitions for the Synapto framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::plugin::Plugin;
use crate::speech_to_text::InputVoiceAudio;
use crate::sync::{broadcast, watch};
use async_trait::async_trait;

#[async_trait]
pub trait AudioRecorderPlugin: Plugin + Send + Sync {
    async fn start(
        &self,
        call_active_rx: watch::Receiver<bool>,
        input_voice_audio_rx: broadcast::Receiver<InputVoiceAudio>,
    ) -> Result<(), String>;
}