google-cloud-speech 0.36.0 → 0.37.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: fb352210dc8f3c48b6eef990d34453bec5048458b66a72068bbe38e56c2847c3
4
- data.tar.gz: 4376e8f43a422cb88b18cf1c378c8846b3179ad68a80c001f2e20e941b9986a9
3
+ metadata.gz: '097260285e9fc0974b445e01b73f0fae6738787bf0719045b1475185aae5c2e0'
4
+ data.tar.gz: 1653536be5b74266a3aa463c57f0101d7347229c375120878f0d0aa19f88f720
5
5
  SHA512:
6
- metadata.gz: 205b0c2bbad993e0742e9089f1642ea4d326f1eeb4c8d57240e46874e8efcb3069f3201c2820b591c0c5f4ef374b6d54eae1cd97bc422378a1a9d81bd19c0552
7
- data.tar.gz: 75da456bc41a4903db719a22a15dbdc678c7c1adc2c2d80e7c637d65391af56504af0db896f027e7a2a883a4c4567951d9b6c0c66e8d6c310d3cd7bf952bde05
6
+ metadata.gz: e6b0f379e2d75556c4ce91d067df3d6c3b7ff072af174c39e72cdae749cbd8a8559b0adb360fcf24712cc14f9fa2008b88834daf0f3fa3246056910df235c31e
7
+ data.tar.gz: 37212dc923146ee789b8631da1b80a5d6289d3fed52f96aae9b0e1c04a5944bf5bd9413007ff8a1cbcdadd5c367bb33817b0dc28315751acfa126aa6eaeb3f13
data/README.md CHANGED
@@ -12,7 +12,7 @@ steps:
12
12
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
13
13
  2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
14
14
  3. [Enable the Cloud Speech API.](https://console.cloud.google.com/apis/library/speech.googleapis.com)
15
- 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
15
+ 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-speech/latest/file.AUTHENTICATION.html)
16
16
 
17
17
  ### Installation
18
18
  ```
@@ -53,14 +53,14 @@ response = speech_client.recognize(config, audio)
53
53
  - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
54
54
  to see the full list of Cloud APIs that we cover.
55
55
 
56
- [Client Library Documentation]: https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-speech/latest/google/cloud/speech/v1
56
+ [Client Library Documentation]: https://googleapis.dev/ruby/google-cloud-speech/latest
57
57
  [Product Documentation]: https://cloud.google.com/speech
58
58
 
59
59
  ## Enabling Logging
60
60
 
61
61
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
62
62
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
63
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
63
+ or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
64
64
  that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
65
65
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
66
66
 
@@ -34,7 +34,7 @@ module Google
34
34
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
35
35
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
36
36
  # 3. [Enable the Cloud Speech API.](https://console.cloud.google.com/apis/library/speech.googleapis.com)
37
- # 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
37
+ # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-speech/latest/file.AUTHENTICATION.html)
38
38
  #
39
39
  # ### Installation
40
40
  # ```
@@ -79,7 +79,7 @@ module Google
79
79
  #
80
80
  # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
81
81
  # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
82
- # or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
82
+ # or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
83
83
  # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
84
84
  # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
85
85
  #
@@ -36,7 +36,7 @@ module Google
36
36
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
37
37
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
38
38
  # 3. [Enable the Cloud Speech API.](https://console.cloud.google.com/apis/library/speech.googleapis.com)
39
- # 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
39
+ # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-speech/latest/file.AUTHENTICATION.html)
40
40
  #
41
41
  # ### Installation
42
42
  # ```
@@ -74,7 +74,7 @@ module Google
74
74
  #
75
75
  # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
76
76
  # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
77
- # or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
77
+ # or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
78
78
  # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
79
79
  # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
80
80
  #
@@ -35,7 +35,7 @@ module Google
35
35
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
36
36
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
37
37
  # 3. [Enable the Cloud Speech API.](https://console.cloud.google.com/apis/library/speech.googleapis.com)
38
- # 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
38
+ # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-speech/latest/file.AUTHENTICATION.html)
39
39
  #
40
40
  # ### Installation
41
41
  # ```
@@ -73,7 +73,7 @@ module Google
73
73
  #
74
74
  # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
75
75
  # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
76
- # or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
76
+ # or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
77
77
  # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
78
78
  # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
79
79
  #
@@ -46,6 +46,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
46
46
  optional :enable_automatic_punctuation, :bool, 11
47
47
  optional :enable_speaker_diarization, :bool, 16
48
48
  optional :diarization_speaker_count, :int32, 17
49
+ optional :diarization_config, :message, 19, "google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig"
49
50
  optional :metadata, :message, 9, "google.cloud.speech.v1p1beta1.RecognitionMetadata"
50
51
  optional :model, :string, 13
51
52
  optional :use_enhanced, :bool, 14
@@ -61,6 +62,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
61
62
  value :SPEEX_WITH_HEADER_BYTE, 7
62
63
  value :MP3, 8
63
64
  end
65
+ add_message "google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig" do
66
+ optional :enable_speaker_diarization, :bool, 1
67
+ optional :min_speaker_count, :int32, 2
68
+ optional :max_speaker_count, :int32, 3
69
+ end
64
70
  add_message "google.cloud.speech.v1p1beta1.RecognitionMetadata" do
65
71
  optional :interaction_type, :enum, 1, "google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType"
66
72
  optional :industry_naics_code_of_audio, :uint32, 3
@@ -170,6 +176,7 @@ module Google
170
176
  StreamingRecognitionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.StreamingRecognitionConfig").msgclass
171
177
  RecognitionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.RecognitionConfig").msgclass
172
178
  RecognitionConfig::AudioEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding").enummodule
179
+ SpeakerDiarizationConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig").msgclass
173
180
  RecognitionMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.RecognitionMetadata").msgclass
174
181
  RecognitionMetadata::InteractionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType").enummodule
175
182
  RecognitionMetadata::MicrophoneDistance = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance").enummodule
@@ -190,18 +190,23 @@ module Google
190
190
  # *Optional* If 'true', enables speaker detection for each recognized word in
191
191
  # the top alternative of the recognition result using a speaker_tag provided
192
192
  # in the WordInfo.
193
- # Note: When this is true, we send all the words from the beginning of the
193
+ # Note: Use diarization_config instead.
194
+ # @!attribute [rw] diarization_speaker_count
195
+ # @return [Integer]
196
+ # *Optional*
197
+ # If set, specifies the estimated number of speakers in the conversation.
198
+ # Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
199
+ # Note: Use diarization_config instead.
200
+ # @!attribute [rw] diarization_config
201
+ # @return [Google::Cloud::Speech::V1p1beta1::SpeakerDiarizationConfig]
202
+ # *Optional* Config to enable speaker diarization and set additional
203
+ # parameters to make diarization better suited for your application.
204
+ # Note: When this is enabled, we send all the words from the beginning of the
194
205
  # audio for the top alternative in every consecutive STREAMING responses.
195
206
  # This is done in order to improve our speaker tags as our models learn to
196
207
  # identify the speakers in the conversation over time.
197
208
  # For non-streaming requests, the diarization results will be provided only
198
209
  # in the top alternative of the FINAL SpeechRecognitionResult.
199
- # @!attribute [rw] diarization_speaker_count
200
- # @return [Integer]
201
- # *Optional*
202
- # If set, specifies the estimated number of speakers in the conversation.
203
- # If not set, defaults to '2'.
204
- # Ignored unless enable_speaker_diarization is set to true."
205
210
  # @!attribute [rw] metadata
206
211
  # @return [Google::Cloud::Speech::V1p1beta1::RecognitionMetadata]
207
212
  # *Optional* Metadata regarding this request.
@@ -322,6 +327,26 @@ module Google
322
327
  end
323
328
  end
324
329
 
330
+ # *Optional* Config to enable speaker diarization.
331
+ # @!attribute [rw] enable_speaker_diarization
332
+ # @return [true, false]
333
+ # *Optional* If 'true', enables speaker detection for each recognized word in
334
+ # the top alternative of the recognition result using a speaker_tag provided
335
+ # in the WordInfo.
336
+ # @!attribute [rw] min_speaker_count
337
+ # @return [Integer]
338
+ # *Optional*
339
+ # Minimum number of speakers in the conversation. This range gives you more
340
+ # flexibility by allowing the system to automatically determine the correct
341
+ # number of speakers. If not set, the default value is 2.
342
+ # @!attribute [rw] max_speaker_count
343
+ # @return [Integer]
344
+ # *Optional*
345
+ # Maximum number of speakers in the conversation. This range gives you more
346
+ # flexibility by allowing the system to automatically determine the correct
347
+ # number of speakers. If not set, the default value is 6.
348
+ class SpeakerDiarizationConfig; end
349
+
325
350
  # Description of audio data to be recognized.
326
351
  # @!attribute [rw] interaction_type
327
352
  # @return [Google::Cloud::Speech::V1p1beta1::RecognitionMetadata::InteractionType]
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Speech
19
- VERSION = "0.36.0".freeze
19
+ VERSION = "0.37.0".freeze
20
20
  end
21
21
  end
22
22
  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.36.0
4
+ version: 0.37.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: 2019-07-09 00:00:00.000000000 Z
11
+ date: 2019-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.0.3
156
+ rubygems_version: 3.0.4
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: API Client library for Cloud Speech API