1# This build file includes a target for the Ruby wrapper library for 2# google-cloud-speech. 3 4# This is an API workspace, having public visibility by default makes perfect sense. 5package(default_visibility = ["//visibility:public"]) 6 7# Export yaml configs. 8exports_files(glob(["*.yaml"])) 9 10load( 11 "@com_google_googleapis_imports//:imports.bzl", 12 "ruby_cloud_gapic_library", 13 "ruby_gapic_assembly_pkg", 14) 15 16# Generates a Ruby wrapper client for speech. 17# Ruby wrapper clients are versionless, but are generated from source protos 18# for a particular service version, v1 in this case. 19ruby_cloud_gapic_library( 20 name = "speech_ruby_wrapper", 21 srcs = ["//google/cloud/speech/v1:speech_proto_with_info"], 22 extra_protoc_parameters = [ 23 "ruby-cloud-gem-name=google-cloud-speech", 24 "ruby-cloud-env-prefix=SPEECH", 25 "ruby-cloud-wrapper-of=v1:0.16;v1p1beta1:0.20", 26 "ruby-cloud-product-url=https://cloud.google.com/speech-to-text", 27 "ruby-cloud-api-id=speech.googleapis.com", 28 "ruby-cloud-api-shortname=speech", 29 "ruby-cloud-migration-version=1.0", 30 ], 31 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.", 32 ruby_cloud_title = "Cloud Speech-to-Text", 33 transport = "grpc+rest", 34) 35 36# Open Source package. 37ruby_gapic_assembly_pkg( 38 name = "google-cloud-speech-ruby", 39 deps = [ 40 ":speech_ruby_wrapper", 41 ], 42) 43