azure-speech 0.10.0

Pure Rust SDK for Azure Speech Service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Event for the speech recognition
//!     

use crate::synthesizer::message;
use crate::RequestId;

#[derive(Debug, Clone, PartialEq, Eq)]
/// Event for the speech recognition
pub enum Event {
    SessionStarted(RequestId),
    SessionEnded(RequestId),

    AudioMetadata(RequestId, Vec<message::Metadata>),
    /// Raw Audio Chunk from the synthesizer.
    Synthesising(RequestId, Vec<u8>),
    /// Synthesizing has finished.
    Synthesised(RequestId),
}