google-cloud-speech 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/speech.rb +1 -1
- data/lib/google/cloud/speech/v1.rb +2 -1
- data/lib/google/cloud/speech/v1/cloud_speech_pb.rb +3 -0
- data/lib/google/cloud/speech/v1/credentials.rb +1 -1
- data/lib/google/cloud/speech/v1/doc/google/cloud/speech/v1/cloud_speech.rb +33 -9
- data/lib/google/cloud/speech/v1/doc/google/longrunning/operations.rb +1 -43
- data/lib/google/cloud/speech/v1/doc/google/protobuf/any.rb +1 -1
- data/lib/google/cloud/speech/v1/doc/google/protobuf/duration.rb +1 -1
- data/lib/google/cloud/speech/v1/doc/google/rpc/status.rb +1 -1
- data/lib/google/cloud/speech/v1/speech_client.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/credentials.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/doc/google/cloud/speech/v1p1beta1/cloud_speech.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/doc/google/longrunning/operations.rb +1 -43
- data/lib/google/cloud/speech/v1p1beta1/doc/google/protobuf/any.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/doc/google/protobuf/duration.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/doc/google/rpc/status.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/speech_client.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e03311af3b9e25f3f8599d4fabd0eff277c6b8512b037f32703244c5999d31b
|
|
4
|
+
data.tar.gz: e240f4045e43426f86b38b404e0a1b32f7c2702440af9b79dba01ddd0c885469
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae0db4433d45c286390662ac62e58f2f076c6df05037cbaf1309a73af01f827237e8dd377026f62af8dc42fbff58f5be9ee1802550f7bbff07e0ce8b49c00017
|
|
7
|
+
data.tar.gz: 16895bde1c701dfac007cbe41aeca992e61392c88f5aed64759cf5b02abe9aee597a636a8f7e784e4cf51733f5c40096a567bbfa4cb31b2454607629fd5c7eca
|
data/lib/google/cloud/speech.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
require "google/cloud/speech/v1/speech_client"
|
|
17
17
|
require "google/cloud/speech/v1/helpers"
|
|
18
|
+
require "google/cloud/speech/v1/cloud_speech_pb"
|
|
18
19
|
|
|
19
20
|
module Google
|
|
20
21
|
module Cloud
|
|
@@ -34,6 +34,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
34
34
|
add_message "google.cloud.speech.v1.RecognitionConfig" do
|
|
35
35
|
optional :encoding, :enum, 1, "google.cloud.speech.v1.RecognitionConfig.AudioEncoding"
|
|
36
36
|
optional :sample_rate_hertz, :int32, 2
|
|
37
|
+
optional :enable_separate_recognition_per_channel, :bool, 12
|
|
37
38
|
optional :language_code, :string, 3
|
|
38
39
|
optional :max_alternatives, :int32, 4
|
|
39
40
|
optional :profanity_filter, :bool, 5
|
|
@@ -86,9 +87,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
86
87
|
repeated :alternatives, :message, 1, "google.cloud.speech.v1.SpeechRecognitionAlternative"
|
|
87
88
|
optional :is_final, :bool, 2
|
|
88
89
|
optional :stability, :float, 3
|
|
90
|
+
optional :channel_tag, :int32, 5
|
|
89
91
|
end
|
|
90
92
|
add_message "google.cloud.speech.v1.SpeechRecognitionResult" do
|
|
91
93
|
repeated :alternatives, :message, 1, "google.cloud.speech.v1.SpeechRecognitionAlternative"
|
|
94
|
+
optional :channel_tag, :int32, 2
|
|
92
95
|
end
|
|
93
96
|
add_message "google.cloud.speech.v1.SpeechRecognitionAlternative" do
|
|
94
97
|
optional :transcript, :string, 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -103,6 +103,14 @@ module Google
|
|
|
103
103
|
# the audio source (instead of re-sampling).
|
|
104
104
|
# This field is optional for `FLAC` and `WAV` audio files and required
|
|
105
105
|
# for all other audio formats. For details, see {Google::Cloud::Speech::V1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
|
106
|
+
# @!attribute [rw] enable_separate_recognition_per_channel
|
|
107
|
+
# @return [true, false]
|
|
108
|
+
# This needs to be set to `true` explicitly and `audio_channel_count` > 1
|
|
109
|
+
# to get each channel recognized separately. The recognition result will
|
|
110
|
+
# contain a `channel_tag` field to state which channel that result belongs
|
|
111
|
+
# to. If this is not true, we will only recognize the first channel. The
|
|
112
|
+
# request is billed cumulatively for all channels recognized:
|
|
113
|
+
# `audio_channel_count` multiplied by the length of the audio.
|
|
106
114
|
# @!attribute [rw] language_code
|
|
107
115
|
# @return [String]
|
|
108
116
|
# *Required* The language of the supplied audio as a
|
|
@@ -181,16 +189,20 @@ module Google
|
|
|
181
189
|
# @!attribute [rw] use_enhanced
|
|
182
190
|
# @return [true, false]
|
|
183
191
|
# *Optional* Set to true to use an enhanced model for speech recognition.
|
|
184
|
-
#
|
|
185
|
-
#
|
|
186
|
-
#
|
|
187
|
-
#
|
|
188
|
-
#
|
|
192
|
+
# If `use_enhanced` is set to true and the `model` field is not set, then
|
|
193
|
+
# an appropriate enhanced model is chosen if:
|
|
194
|
+
# 1. project is eligible for requesting enhanced models
|
|
195
|
+
# 2. an enhanced model exists for the audio
|
|
196
|
+
#
|
|
197
|
+
# If `use_enhanced` is true and an enhanced version of the specified model
|
|
198
|
+
# does not exist, then the speech is recognized using the standard version
|
|
199
|
+
# of the specified model.
|
|
189
200
|
#
|
|
190
201
|
# Enhanced speech models require that you opt-in to data logging using
|
|
191
|
-
# instructions in the
|
|
192
|
-
# If you set
|
|
193
|
-
#
|
|
202
|
+
# instructions in the
|
|
203
|
+
# [documentation](https://cloud.google.com/speech-to-text/docs/enable-data-logging). If you set
|
|
204
|
+
# `use_enhanced` to true and you have not enabled audio logging, then you
|
|
205
|
+
# will receive an error.
|
|
194
206
|
class RecognitionConfig
|
|
195
207
|
# The encoding of the audio data sent in the request.
|
|
196
208
|
#
|
|
@@ -426,6 +438,11 @@ module Google
|
|
|
426
438
|
# (completely unstable) to 1.0 (completely stable).
|
|
427
439
|
# This field is only provided for interim results (`is_final=false`).
|
|
428
440
|
# The default of 0.0 is a sentinel value indicating `stability` was not set.
|
|
441
|
+
# @!attribute [rw] channel_tag
|
|
442
|
+
# @return [Integer]
|
|
443
|
+
# For multi-channel audio, this is the channel number corresponding to the
|
|
444
|
+
# recognized result for the audio from that channel.
|
|
445
|
+
# For audio_channel_count = N, its output values can range from '1' to 'N'.
|
|
429
446
|
class StreamingRecognitionResult; end
|
|
430
447
|
|
|
431
448
|
# A speech recognition result corresponding to a portion of the audio.
|
|
@@ -435,6 +452,11 @@ module Google
|
|
|
435
452
|
# maximum specified in `max_alternatives`).
|
|
436
453
|
# These alternatives are ordered in terms of accuracy, with the top (first)
|
|
437
454
|
# alternative being the most probable, as ranked by the recognizer.
|
|
455
|
+
# @!attribute [rw] channel_tag
|
|
456
|
+
# @return [Integer]
|
|
457
|
+
# For multi-channel audio, this is the channel number corresponding to the
|
|
458
|
+
# recognized result for the audio from that channel.
|
|
459
|
+
# For audio_channel_count = N, its output values can range from '1' to 'N'.
|
|
438
460
|
class SpeechRecognitionResult; end
|
|
439
461
|
|
|
440
462
|
# Alternative hypotheses (a.k.a. n-best list).
|
|
@@ -453,6 +475,8 @@ module Google
|
|
|
453
475
|
# @!attribute [rw] words
|
|
454
476
|
# @return [Array<Google::Cloud::Speech::V1::WordInfo>]
|
|
455
477
|
# Output only. A list of word-specific information for each recognized word.
|
|
478
|
+
# Note: When `enable_speaker_diarization` is true, you will see all the words
|
|
479
|
+
# from the beginning of the audio.
|
|
456
480
|
class SpeechRecognitionAlternative; end
|
|
457
481
|
|
|
458
482
|
# Word-specific information for recognized words.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -47,47 +47,5 @@ module Google
|
|
|
47
47
|
# is `TakeSnapshot()`, the inferred response type is
|
|
48
48
|
# `TakeSnapshotResponse`.
|
|
49
49
|
class Operation; end
|
|
50
|
-
|
|
51
|
-
# The request message for {Google::Longrunning::Operations::GetOperation Operations::GetOperation}.
|
|
52
|
-
# @!attribute [rw] name
|
|
53
|
-
# @return [String]
|
|
54
|
-
# The name of the operation resource.
|
|
55
|
-
class GetOperationRequest; end
|
|
56
|
-
|
|
57
|
-
# The request message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
|
|
58
|
-
# @!attribute [rw] name
|
|
59
|
-
# @return [String]
|
|
60
|
-
# The name of the operation collection.
|
|
61
|
-
# @!attribute [rw] filter
|
|
62
|
-
# @return [String]
|
|
63
|
-
# The standard list filter.
|
|
64
|
-
# @!attribute [rw] page_size
|
|
65
|
-
# @return [Integer]
|
|
66
|
-
# The standard list page size.
|
|
67
|
-
# @!attribute [rw] page_token
|
|
68
|
-
# @return [String]
|
|
69
|
-
# The standard list page token.
|
|
70
|
-
class ListOperationsRequest; end
|
|
71
|
-
|
|
72
|
-
# The response message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
|
|
73
|
-
# @!attribute [rw] operations
|
|
74
|
-
# @return [Array<Google::Longrunning::Operation>]
|
|
75
|
-
# A list of operations that matches the specified filter in the request.
|
|
76
|
-
# @!attribute [rw] next_page_token
|
|
77
|
-
# @return [String]
|
|
78
|
-
# The standard List next-page token.
|
|
79
|
-
class ListOperationsResponse; end
|
|
80
|
-
|
|
81
|
-
# The request message for {Google::Longrunning::Operations::CancelOperation Operations::CancelOperation}.
|
|
82
|
-
# @!attribute [rw] name
|
|
83
|
-
# @return [String]
|
|
84
|
-
# The name of the operation resource to be cancelled.
|
|
85
|
-
class CancelOperationRequest; end
|
|
86
|
-
|
|
87
|
-
# The request message for {Google::Longrunning::Operations::DeleteOperation Operations::DeleteOperation}.
|
|
88
|
-
# @!attribute [rw] name
|
|
89
|
-
# @return [String]
|
|
90
|
-
# The name of the operation resource to be deleted.
|
|
91
|
-
class DeleteOperationRequest; end
|
|
92
50
|
end
|
|
93
51
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright
|
|
1
|
+
# Copyright 2019 Google LLC
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -47,47 +47,5 @@ module Google
|
|
|
47
47
|
# is `TakeSnapshot()`, the inferred response type is
|
|
48
48
|
# `TakeSnapshotResponse`.
|
|
49
49
|
class Operation; end
|
|
50
|
-
|
|
51
|
-
# The request message for {Google::Longrunning::Operations::GetOperation Operations::GetOperation}.
|
|
52
|
-
# @!attribute [rw] name
|
|
53
|
-
# @return [String]
|
|
54
|
-
# The name of the operation resource.
|
|
55
|
-
class GetOperationRequest; end
|
|
56
|
-
|
|
57
|
-
# The request message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
|
|
58
|
-
# @!attribute [rw] name
|
|
59
|
-
# @return [String]
|
|
60
|
-
# The name of the operation collection.
|
|
61
|
-
# @!attribute [rw] filter
|
|
62
|
-
# @return [String]
|
|
63
|
-
# The standard list filter.
|
|
64
|
-
# @!attribute [rw] page_size
|
|
65
|
-
# @return [Integer]
|
|
66
|
-
# The standard list page size.
|
|
67
|
-
# @!attribute [rw] page_token
|
|
68
|
-
# @return [String]
|
|
69
|
-
# The standard list page token.
|
|
70
|
-
class ListOperationsRequest; end
|
|
71
|
-
|
|
72
|
-
# The response message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
|
|
73
|
-
# @!attribute [rw] operations
|
|
74
|
-
# @return [Array<Google::Longrunning::Operation>]
|
|
75
|
-
# A list of operations that matches the specified filter in the request.
|
|
76
|
-
# @!attribute [rw] next_page_token
|
|
77
|
-
# @return [String]
|
|
78
|
-
# The standard List next-page token.
|
|
79
|
-
class ListOperationsResponse; end
|
|
80
|
-
|
|
81
|
-
# The request message for {Google::Longrunning::Operations::CancelOperation Operations::CancelOperation}.
|
|
82
|
-
# @!attribute [rw] name
|
|
83
|
-
# @return [String]
|
|
84
|
-
# The name of the operation resource to be cancelled.
|
|
85
|
-
class CancelOperationRequest; end
|
|
86
|
-
|
|
87
|
-
# The request message for {Google::Longrunning::Operations::DeleteOperation Operations::DeleteOperation}.
|
|
88
|
-
# @!attribute [rw] name
|
|
89
|
-
# @return [String]
|
|
90
|
-
# The name of the operation resource to be deleted.
|
|
91
|
-
class DeleteOperationRequest; end
|
|
92
50
|
end
|
|
93
51
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-speech
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.33.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:
|
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-gax
|
|
@@ -58,14 +58,14 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.
|
|
61
|
+
version: 0.61.0
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0.
|
|
68
|
+
version: 0.61.0
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: simplecov
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
152
|
version: '0'
|
|
153
153
|
requirements: []
|
|
154
154
|
rubyforge_project:
|
|
155
|
-
rubygems_version: 2.7.
|
|
155
|
+
rubygems_version: 2.7.6
|
|
156
156
|
signing_key:
|
|
157
157
|
specification_version: 4
|
|
158
158
|
summary: API Client library for Cloud Speech API
|