phoxal 0.67.0

Phoxal - production-oriented autonomous robot framework: the one framework library, holding the runtime engine, the api contract tree, the typed bus, the canonical model, and the bundle.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
crate::endpoints! {
    stream: Stream<Chunk, In>;
}

/// One chunk of an audio stream to play on this speaker.
///
/// `Some(bytes)` carries WAV-coded audio: the first chunk of a
/// stream starts with the standard WAV header, later chunks
/// continue its data. `None` ends the stream and is what tells
/// the owner the sound is complete.
#[derive(
    phoxal_macros::DescribeWire, Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize,
)]
pub struct Chunk {
    pub stream: Option<Vec<u8>>,
}