google-cloud-media_translation-v1beta1 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d879eb257518f47045417dd9bcdcc506858ec19be53770d7b5183e5702eb4e9f
|
4
|
+
data.tar.gz: 7ea0191f53fff4f323f53b4f7c58ec354133eeac02aaede312b868a5ca73e1b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0063c7468a6a9bd628bea093d38d9598745182afb820d554c9ea9875bae36582eac786820c3db4b455703ba726e1679fdbb37c4c8ece08551ecf10be08eaf92
|
7
|
+
data.tar.gz: 79d31a5085a75c3612c06f70672dc7d66ce492cd910b8b423429b813ae1d4573d0efdafbf020996522415259b1cd391b170143de52bb779d37d35b22cd336f68
|
@@ -11,7 +11,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
11
|
add_message "google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig" do
|
12
12
|
optional :audio_encoding, :string, 1
|
13
13
|
optional :source_language_code, :string, 2
|
14
|
-
repeated :alternative_source_language_codes, :string, 6
|
15
14
|
optional :target_language_code, :string, 3
|
16
15
|
optional :sample_rate_hertz, :int32, 4
|
17
16
|
optional :model, :string, 5
|
@@ -27,7 +26,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
27
26
|
end
|
28
27
|
end
|
29
28
|
add_message "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult" do
|
30
|
-
optional :recognition_result, :string, 3
|
31
29
|
oneof :result do
|
32
30
|
optional :text_translation_result, :message, 1, "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult"
|
33
31
|
end
|
@@ -35,7 +33,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
35
33
|
add_message "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult" do
|
36
34
|
optional :translation, :string, 1
|
37
35
|
optional :is_final, :bool, 2
|
38
|
-
optional :detected_source_language_code, :string, 3
|
39
36
|
end
|
40
37
|
add_message "google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse" do
|
41
38
|
optional :error, :message, 1, "google.rpc.Status"
|
@@ -31,17 +31,39 @@ module Google
|
|
31
31
|
# - `linear16`
|
32
32
|
#
|
33
33
|
# Uncompressed 16-bit signed little-endian samples (Linear PCM).
|
34
|
+
#
|
35
|
+
# - `flac`
|
36
|
+
#
|
37
|
+
# `flac` (Free Lossless Audio Codec) is the recommended encoding
|
38
|
+
# because it is lossless--therefore recognition is not compromised--and
|
39
|
+
# requires only about half the bandwidth of `linear16`.
|
40
|
+
#
|
41
|
+
# - `mulaw`
|
42
|
+
#
|
43
|
+
# 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
|
44
|
+
#
|
45
|
+
# - `amr`
|
46
|
+
#
|
47
|
+
# Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
|
48
|
+
#
|
49
|
+
# - `amr-wb`
|
50
|
+
#
|
51
|
+
# Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
|
52
|
+
#
|
53
|
+
# - `ogg-opus`
|
54
|
+
#
|
55
|
+
# Opus encoded audio frames in [Ogg](https://wikipedia.org/wiki/Ogg)
|
56
|
+
# container. `sample_rate_hertz` must be one of 8000, 12000, 16000, 24000,
|
57
|
+
# or 48000.
|
58
|
+
#
|
59
|
+
# - `mp3`
|
60
|
+
#
|
61
|
+
# MP3 audio. Support all standard MP3 bitrates (which range from 32-320
|
62
|
+
# kbps). When using this encoding, `sample_rate_hertz` has to match the
|
63
|
+
# sample rate of the file being used.
|
34
64
|
# @!attribute [rw] source_language_code
|
35
65
|
# @return [::String]
|
36
66
|
# Required. Source language code (BCP-47) of the input audio.
|
37
|
-
# @!attribute [rw] alternative_source_language_codes
|
38
|
-
# @return [::Array<::String>]
|
39
|
-
# Optional. A list of up to 3 additional language codes (BCP-47), listing possible
|
40
|
-
# alternative languages of the supplied audio. If alternative source
|
41
|
-
# languages are listed, speech translation result will translate in the most
|
42
|
-
# likely language detected including the main source_language_code. The
|
43
|
-
# translated result will include the language code of the language detected
|
44
|
-
# in the audio.
|
45
67
|
# @!attribute [rw] target_language_code
|
46
68
|
# @return [::String]
|
47
69
|
# Required. Target language code (BCP-47) of the output.
|
@@ -50,11 +72,12 @@ module Google
|
|
50
72
|
# Optional. Sample rate in Hertz of the audio data. Valid values are:
|
51
73
|
# 8000-48000. 16000 is optimal. For best results, set the sampling rate of
|
52
74
|
# the audio source to 16000 Hz. If that's not possible, use the native sample
|
53
|
-
# rate of the audio source (instead of re-sampling).
|
54
|
-
# omitted for `FLAC` and `WAV` audio files.
|
75
|
+
# rate of the audio source (instead of re-sampling).
|
55
76
|
# @!attribute [rw] model
|
56
77
|
# @return [::String]
|
57
|
-
# Optional.
|
78
|
+
# Optional. `google-provided-model/video` and
|
79
|
+
# `google-provided-model/enhanced-phone-call` are premium models.
|
80
|
+
# `google-provided-model/phone-call` is not premium model.
|
58
81
|
class TranslateSpeechConfig
|
59
82
|
include ::Google::Protobuf::MessageExts
|
60
83
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -115,13 +138,6 @@ module Google
|
|
115
138
|
# @!attribute [rw] text_translation_result
|
116
139
|
# @return [::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult::TextTranslationResult]
|
117
140
|
# Text translation result.
|
118
|
-
# @!attribute [r] recognition_result
|
119
|
-
# @return [::String]
|
120
|
-
# Output only. The debug only recognition result in original language. This field is debug
|
121
|
-
# only and will be set to empty string if not available.
|
122
|
-
# This is implementation detail and will not be backward compatible.
|
123
|
-
#
|
124
|
-
# Still need to decide whether to expose this field by default.
|
125
141
|
class StreamingTranslateSpeechResult
|
126
142
|
include ::Google::Protobuf::MessageExts
|
127
143
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -138,11 +154,6 @@ module Google
|
|
138
154
|
# `StreamingTranslateSpeechResult`, the streaming translator will not
|
139
155
|
# return any further hypotheses for this portion of the transcript and
|
140
156
|
# corresponding audio.
|
141
|
-
# @!attribute [r] detected_source_language_code
|
142
|
-
# @return [::String]
|
143
|
-
# Output only. The source language code (BCP-47) detected in the audio. Speech
|
144
|
-
# translation result will translate in the most likely language detected
|
145
|
-
# including the alternative source languages and main source_language_code.
|
146
157
|
class TextTranslationResult
|
147
158
|
include ::Google::Protobuf::MessageExts
|
148
159
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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
|
+
version: 0.4.0
|
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-
|
11
|
+
date: 2021-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
|
-
rubygems_version: 3.2.
|
204
|
+
rubygems_version: 3.2.16
|
205
205
|
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: API Client library for the Media Translation V1beta1 API
|