Tait Hoyem
cbcd244e46
Additional progress on tokio and async_std versions
2 years ago
Tait Hoyem
0187c049cf
Initial work on a tokio/async-std feature
2 years ago
Laurent Pelecq
c9c80a1b6c
Fix compilation on non-unix platforms
2 years ago
Laurent Pelecq
1139ff7080
Add tcp communication
2 years ago
Laurent Pelecq
155a5dc1f1
Add history commands
2 years ago
Laurent Pelecq
c71698bda8
Implement history_get_client_id
2 years ago
Laurent Pelecq
4528d9c407
Fix response type and remove errors that can be mapped to io::Error.
2 years ago
Laurent Pelecq
9e4b09d96d
Implement history get client list.
2 years ago
Laurent Pelecq
1a2e7fc145
Change MessageId to u32 instead of String.
2 years ago
Laurent Pelecq
3e1a2e0cdc
Add synchronous history commands.
...
* Add commands history_get_clients, ...
* Change type of length from u16 to u32.
2 years ago
Laurent Pelecq
c67a79f3f5
Add history commands and fix types.
...
* Add history commands, not implemented.
* Add types for history commands.
* Fix i8 instead of u8 for rate, pitch and volume.
* Use u16 for length in commands.
2 years ago
Laurent Pelecq
de5ce128cb
Change AsyncClient to QueuedClient to use with different polling mechanism.
...
* When compiled without mio, QueuedClient returns the raw fd.
* When compiled with mio, there is a register method.
2 years ago
Laurent Pelecq
b5ec9e37ad
Allow to see the last request in async and pop it.
2 years ago
Laurent Pelecq
fe74259e43
Fix documentation
2 years ago
Laurent Pelecq
3622313d78
Fix one clippy warning
2 years ago
Laurent Pelecq
f662405997
Move generic methods send and receive from AsyncClient to Client.
...
* Generic methods can be used in the synchronous API. It gives the choice to use
either specific calls or the generic ones.
* AsyncClient consists in a simple queue of requests.
* Getters only return the generic Response::Get. Callers must convert if it's an
integer.
2 years ago
Laurent Pelecq
883e491a7f
Add all requests in AsyncClient.
...
* Simplify fifo tests with tempfile.
* Test getter in async fifo tests.
2 years ago
Laurent Pelecq
c0f0b69dd8
Don't reexport Source
2 years ago
Laurent Pelecq
7c8874237d
Add AsyncClient in documentation
2 years ago
Laurent Pelecq
ec1b1aca51
New AsyncClient class.
...
* Only few commands are implemented.
* Example async_mio_loop added.
2 years ago
Laurent Pelecq
5cc696a8b9
Rename FifoBuilder to Builder
...
Builder is not reexported in lib.rs. Module fifo must be imported instead.
2 years ago
Laurent Pelecq
b3dd02603a
Fix send_char and rename error NoLine to TooFewLines
2 years ago
Laurent Pelecq
a2ad2634d9
Add constants for events
2 years ago
Laurent Pelecq
bf33d18bb2
Use log::debug in debug mode to trace communication with server
2 years ago
Laurent Pelecq
c45bb7daa7
Fix minor clippy warnings
2 years ago
Laurent Pelecq
a186c456db
Dual synchronous and asynchronous API.
...
* Calls have been separate in a "send" and a "receive" to have the same methods in both modes.
* Asynchrone API is enabled with feature "async-mio".
2 years ago
Laurent Pelecq
58b1d5513f
Both sync and async tests pass
2 years ago
Laurent Pelecq
aff43c6147
Add error NotReady for asynchronous mode
2 years ago
Laurent Pelecq
4f9f0fe9dc
Change some method names
2 years ago
Laurent Pelecq
73b2531c4f
Dual synchronous and asynchronous API
...
Tests don't work in async mode
2 years ago
Laurent Pelecq
6154769db2
disable test on standard socket if XDG not available
2 years ago
Laurent Pelecq
855b0c5af0
add notifications
2 years ago
Laurent Pelecq
590859d15e
upgrade dependencies and fix lint errors
2 years ago
Laurent Pelecq
dcd38f2b9e
Test for synthesis voices. Few other tests.
3 years ago
Laurent Pelecq
7d6d8db931
Test {set, get, list}_voice_types.
3 years ago
Laurent Pelecq
79e7986ba9
Test SSML mode, spelling, capital letter recognition
3 years ago
Laurent Pelecq
837a84950c
More tests get/set language, rate, ...
3 years ago
Laurent Pelecq
ca890b48e4
Using new type ClientName to create client.
3 years ago
Laurent Pelecq
da3f295f96
Fix type ClientTarget. Move basic types in types.rs.
3 years ago
Laurent Pelecq
8aeb28a3ea
test speech_dispatcher_socket
3 years ago
Laurent Pelecq
0c7bf4f113
move client tests in integration tests
3 years ago
Laurent Pelecq
5a656d5d27
add all commands except notification and history, and no tests
3 years ago
Laurent Pelecq
c6527cb793
add sample in module documentation
3 years ago
Laurent Pelecq
5939548b69
fix speak, add documentation.
3 years ago
Laurent Pelecq
aa73dab21b
add speak and unit tests for the client
3 years ago
Laurent Pelecq
cab51e0fc6
add tests for unix client
3 years ago
Laurent Pelecq
0914f8b191
initial implementation to connect and quit
3 years ago