Crates.io | ssip-client |
lib.rs | ssip-client |
version | 0.10.0 |
source | src |
created_at | 2022-03-12 19:38:14.415679 |
updated_at | 2023-12-30 09:25:18.778792 |
description | Client API for Speech Dispatcher |
homepage | |
repository | https://gitlab.com/lp-accessibility/ssip-client |
max_upload_size | |
id | 548889 |
size | 148,126 |
Speech Dispatcher SSIP client library in pure rust.
The API is synchronous by default.
A non-blocking API can be used with a low-level polling mechanism based on poll
, or
with mio.
The crate is considered as feature complete. It is in maintenance mode. For a real async API, see ssip-client-async which is a fork of this crate.
To use the synchronous API or an asynchronous API compatible with low-level crates based on poll
, use:
[dependencies]
ssip-client = "0.9"
For the asynchronous API, use:
[dependencies]
ssip-client = { version = "0.9", features = ["async-mio"] }
use ssip_client::{FifoBuilder, ClientName};
let mut client = fifo::Builder::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.