Speech Dispatcher SSIP client library in pure rust.
The API is synchronous by default. An asynchronous API based on Mio is available with a feature.
To use the synchronous API, use:
toml
[dependencies]
ssip-client = "0.3"
For the asynchronous API, use:
toml
[dependencies]
ssip-client = { version = "0.3", features = ["async-mio"] }
rust
use ssip_client::{FifoBuilder, ClientName};
let mut client = FifoBuilder::new().build()?;
client
.set_client_name(ClientName::new("joe", "hello"))?
.check_client_name_set()?;
let msg_id = client.speak()?.send_line("hello")?.receive_message_id()?;
client.quit()?;
See other examples in the repository.
This software is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.