arci-speak-cmd 0.1.1

arci::Speaker implementation using local command
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use arci::Speaker;
use arci_speak_cmd::LocalCommand;
use clap::Parser;

#[derive(Debug, Parser)]
struct Args {
    message: String,
}

#[tokio::main]
async fn main() -> Result<(), arci::Error> {
    tracing_subscriber::fmt::init();
    let args = Args::parse();

    let speaker = LocalCommand::default();
    let wait = speaker.speak(&args.message)?;
    wait.await
}