google-cloud-media_translation-v1beta1 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/media_translation/v1beta1/speech_translation_service/client.rb +24 -0
- data/lib/google/cloud/media_translation/v1beta1/version.rb +1 -1
- data/lib/google/cloud/mediatranslation/v1beta1/media_translation_pb.rb +2 -2
- data/lib/google/cloud/mediatranslation/v1beta1/media_translation_services_pb.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ab09ee765650adb21f47c42822e31acb4bf819367c0eee221a1de40b8774fbc
|
4
|
+
data.tar.gz: 1ead5ae467ddf5eb7e285a2ff8390347e2c903b351f98f40dc5e46a0f7ca2725
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc9493b13d6fbf376cc47aa31da87bf6d40b81443487c37701f56b375ff2895cefc531228608c6c9b5a9a954657f5ae3b60d06d3bcff999947fadf7698a2c33b
|
7
|
+
data.tar.gz: 8095c636b8f06426f443e45b91c75d21004711bed8fa1fa1fb8c9c2c0086ddcf7e4d5e5eaa673926d1471e1521e0120780343277c1f5ed1b6d23d8a4c6b81ddb
|
@@ -166,6 +166,30 @@ module Google
|
|
166
166
|
#
|
167
167
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
168
168
|
#
|
169
|
+
# @example Basic example
|
170
|
+
# require "google/cloud/media_translation/v1beta1"
|
171
|
+
#
|
172
|
+
# # Create a client object. The client can be reused for multiple calls.
|
173
|
+
# client = Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new
|
174
|
+
#
|
175
|
+
# # Create an input stream
|
176
|
+
# input = Gapic::StreamInput.new
|
177
|
+
#
|
178
|
+
# # Call the streaming_translate_speech method to start streaming.
|
179
|
+
# output = client.streaming_translate_speech input
|
180
|
+
#
|
181
|
+
# # Send requests on the stream. For each request, pass in keyword
|
182
|
+
# # arguments to set fields. Be sure to close the stream when done.
|
183
|
+
# input << Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechRequest.new
|
184
|
+
# input << Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechRequest.new
|
185
|
+
# input.close
|
186
|
+
#
|
187
|
+
# # Handle streamed responses. These may be interleaved with inputs.
|
188
|
+
# # Each response is of type ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResponse.
|
189
|
+
# output.each do |response|
|
190
|
+
# p response
|
191
|
+
# end
|
192
|
+
#
|
169
193
|
def streaming_translate_speech request, options = nil
|
170
194
|
unless request.is_a? ::Enumerable
|
171
195
|
raise ::ArgumentError, "request must be an Enumerable" unless request.respond_to? :to_enum
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/mediatranslation/v1beta1/media_translation.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/rpc/status_pb'
|
8
6
|
require 'google/api/client_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/mediatranslation/v1beta1/media_translation.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-media_translation-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|