#speech #google #cognitive #recognition #synthesizing

google-cognitive-apis

Library wrapping Google speech-to-text, text-to-speech and dialogflow APIs. Provides high level API layer wrapping the underlying complexity of GRPC.

9 releases

new 0.2.1 Jan 31, 2023
0.2.0 Sep 7, 2022
0.1.6 Sep 7, 2022
0.1.4 Nov 4, 2021
0.1.0 May 28, 2021

#197 in Audio

Download history 9/week @ 2022-10-10 5/week @ 2022-10-17 3/week @ 2022-10-24 8/week @ 2022-10-31 1/week @ 2022-11-07 5/week @ 2022-11-14 4/week @ 2022-11-21 1/week @ 2022-11-28 5/week @ 2022-12-05 32/week @ 2022-12-12 4/week @ 2022-12-19 1/week @ 2023-01-02 15/week @ 2023-01-09 60/week @ 2023-01-16 25/week @ 2023-01-23

101 downloads per month

MIT/Apache

1.5MB
18K SLoC

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.

Dependencies

~18–26MB
~568K SLoC