google-cloud-speech 0.39.1 → 0.40.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: 439e2e039a81b8f39e811df558b8163b9424558a495a7c953878241bbdcd3d20
4
- data.tar.gz: f1070eb2c9a2449d64c371e421e52f7c60f9b420ad0bfd84bb9860fad7db9f6c
3
+ metadata.gz: 7f82ac510a69353ef7bae70f93708ed349b6a159d835166aed5709629221da54
4
+ data.tar.gz: 9ff86427f5c292e871e6843f678d04710111226bb9c4eebac220d82f7807e30c
5
5
  SHA512:
6
- metadata.gz: 335f3a2576fd62ae7fbf0e1685b0f1a15a6556a48fe62fd0428994bdc24d283a10029d3bc6f5ceadd89a6fca05c4a0b06c565bafe6d747b8ac8e13b8083d5b9d
7
- data.tar.gz: 96c003b992b247319a56022a9b908decaf90088b13b70472a1c8f47438c6a0665c3306156fad6ba42b792928ba76d2c37da309483145433e3d9739dc1ffc4647
6
+ metadata.gz: fc8ac200b3783a3424730776cd7361976372fc2bef6d1fc8887d56ddca54a739953dc74acfe85bd29cf865e7d01d73dcc3711d71eea9b7b0a4e3b05044a72d01
7
+ data.tar.gz: 2016625fbcf377a9168cf2f9070c6a0509b8755c794a153a0e9cffe20a35a7d22cdaf420b7afd015873dfda5157d49fbdb0129afea09f1fbe6d94bc2462d3cd6
data/README.md CHANGED
@@ -40,7 +40,7 @@ config = {
40
40
  sample_rate_hertz: sample_rate_hertz,
41
41
  encoding: encoding
42
42
  }
43
- uri = "gs://gapic-toolkit/hello.flac"
43
+ uri = "gs://cloud-samples-data/speech/brooklyn_bridge.flac"
44
44
  audio = { uri: uri }
45
45
  response = speech_client.recognize(config, audio)
46
46
  ```
@@ -62,7 +62,7 @@ module Google
62
62
  # sample_rate_hertz: sample_rate_hertz,
63
63
  # encoding: encoding
64
64
  # }
65
- # uri = "gs://bucket-name/hello.flac"
65
+ # uri = "gs://cloud-samples-data/speech/brooklyn_bridge.flac"
66
66
  # audio = { uri: uri }
67
67
  # response = speech_client.recognize(config, audio)
68
68
  # ```
@@ -57,7 +57,7 @@ module Google
57
57
  # sample_rate_hertz: sample_rate_hertz,
58
58
  # encoding: encoding
59
59
  # }
60
- # uri = "gs://bucket-name/hello.flac"
60
+ # uri = "gs://cloud-samples-data/speech/brooklyn_bridge.flac"
61
61
  # audio = { uri: uri }
62
62
  # response = speech_client.recognize(config, audio)
63
63
  # ```
@@ -155,6 +155,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
155
155
  optional :start_time, :message, 1, "google.protobuf.Duration"
156
156
  optional :end_time, :message, 2, "google.protobuf.Duration"
157
157
  optional :word, :string, 3
158
+ optional :speaker_tag, :int32, 5
158
159
  end
159
160
  end
160
161
 
@@ -310,11 +310,7 @@ module Google
310
310
  # number of speakers. If not set, the default value is 6.
311
311
  # @!attribute [rw] speaker_tag
312
312
  # @return [Integer]
313
- # A distinct integer value is assigned for every speaker within
314
- # the audio. This field specifies which one of those speakers was detected to
315
- # have spoken this word. Value ranges from '1' to diarization_speaker_count.
316
- # speaker_tag is set if enable_speaker_diarization = 'true' and only in the
317
- # top alternative.
313
+ # Unused.
318
314
  class SpeakerDiarizationConfig; end
319
315
 
320
316
  # Description of audio data to be recognized.
@@ -688,6 +684,13 @@ module Google
688
684
  # @!attribute [rw] word
689
685
  # @return [String]
690
686
  # The word corresponding to this set of information.
687
+ # @!attribute [rw] speaker_tag
688
+ # @return [Integer]
689
+ # A distinct integer value is assigned for every speaker within
690
+ # the audio. This field specifies which one of those speakers was detected to
691
+ # have spoken this word. Value ranges from '1' to diarization_speaker_count.
692
+ # speaker_tag is set if enable_speaker_diarization = 'true' and only in the
693
+ # top alternative.
691
694
  class WordInfo; end
692
695
  end
693
696
  end
@@ -57,7 +57,7 @@ module Google
57
57
  # sample_rate_hertz: sample_rate_hertz,
58
58
  # encoding: encoding
59
59
  # }
60
- # uri = "gs://bucket-name/hello.flac"
60
+ # uri = "gs://cloud-samples-data/speech/brooklyn_bridge.flac"
61
61
  # audio = { uri: uri }
62
62
  # response = speech_client.recognize(config, audio)
63
63
  # ```
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Speech
19
- VERSION = "0.39.1".freeze
19
+ VERSION = "0.40.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.39.1
4
+ version: 0.40.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-11-07 00:00:00.000000000 Z
11
+ date: 2019-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax