google-cognitive-apis

Crates.iogoogle-cognitive-apis
lib.rsgoogle-cognitive-apis
version0.2.2
sourcesrc
created_at2021-05-28 15:43:32.872956
updated_at2023-06-14 06:57:09.303681
descriptionLibrary wrapping Google speech-to-text, text-to-speech and dialogflow APIs. Provides high level API layer wrapping the underlying complexity of GRPC.
homepage
repositoryhttps://github.com/jabber-tools/google-cognitive-apis/
max_upload_size
id403185
size3,747,323
(adambezecny)

documentation

https://jabber-tools.github.io/google_cognitive_apis/doc/0.2.0/google_cognitive_apis/index.html

README

Google Cognitive APIs


CI License License: MIT Crates.io rustdoc

Asynchronous Rust bindings for Google Cloud Platform cognitive gRPC APIs. Provides high level interfaces wrapping complexity of low-level GRPC implementation. Bidirectional gRPC streaming is supported with two alternative approaches:

  • tokio.rs channels

  • asynchronous streams facilitated by crate async-stream

Following APIs are currently supported:

Cognitive API Feature name Status
Dialogflow ES dialogflow Complete
Speech-to-text speech-to-text Complete
Text-to-speech text-to-speech Complete

IMPORTANT: Version 0.2.0 is upgrading underlying GRPC stack (tonic, prost and prost-build libraries). Please keep in mind that prost-build requires now external Protocol Buffer compiler (protoc). Details can be found here. You can download protoc from github.

Google API proto definitions

Google proto definitions have been taken from this repo.

Limitations

  • Only limited subset of Google cognitive APIs is supported. Feel free to raise PR with new additions!
  • Dialogflow CX is not yet supported.
  • For Dialogflow we currently support only SessionClient (The purpose of this library is not support different DialogFlow management APIs).
  • REST APIs are supported with single purpose: to define structs that will enable deserialization of JSON config structures and their conversion into GRPC counterparts. Full support for REST APIs will be not introduced.

Examples

You can find all examples here.

License

Licensed under either Apache-2.0 or MIT license.

Commit count: 94

cargo fmt