BUILD.bazel 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This build file includes a target for the Ruby wrapper library for
  2. # google-cloud-speech.
  3. # This is an API workspace, having public visibility by default makes perfect sense.
  4. package(default_visibility = ["//visibility:public"])
  5. # Export yaml configs.
  6. exports_files(glob(["*.yaml"]))
  7. load(
  8. "@com_google_googleapis_imports//:imports.bzl",
  9. "ruby_cloud_gapic_library",
  10. "ruby_gapic_assembly_pkg",
  11. )
  12. # Generates a Ruby wrapper client for speech.
  13. # Ruby wrapper clients are versionless, but are generated from source protos
  14. # for a particular service version, v1 in this case.
  15. ruby_cloud_gapic_library(
  16. name = "speech_ruby_wrapper",
  17. srcs = ["//google/cloud/speech/v1:speech_proto_with_info"],
  18. extra_protoc_parameters = [
  19. "ruby-cloud-gem-name=google-cloud-speech",
  20. "ruby-cloud-env-prefix=SPEECH",
  21. "ruby-cloud-wrapper-of=v1:0.8;v1p1beta1:0.0",
  22. "ruby-cloud-product-url=https://cloud.google.com/speech-to-text",
  23. "ruby-cloud-api-id=speech.googleapis.com",
  24. "ruby-cloud-api-shortname=speech",
  25. "ruby-cloud-migration-version=1.0",
  26. ],
  27. ruby_cloud_description = "Google Speech-to-Text enables developers to convert audio to text by applying powerful neural network models in an easy-to-use API. The API recognizes more than 120 languages and variants to support your global user base. You can enable voice command-and-control, transcribe audio from call centers, and more. It can process real-time streaming or prerecorded audio, using Google's machine learning technology.",
  28. ruby_cloud_title = "Cloud Speech-to-Text",
  29. )
  30. # Open Source package.
  31. ruby_gapic_assembly_pkg(
  32. name = "google-cloud-speech-ruby",
  33. deps = [
  34. ":speech_ruby_wrapper",
  35. ],
  36. )