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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/speech.rb +1 -1
- data/lib/google/cloud/speech/v1.rb +1 -1
- data/lib/google/cloud/speech/v1/cloud_speech_pb.rb +1 -0
- data/lib/google/cloud/speech/v1/doc/google/cloud/speech/v1/cloud_speech.rb +8 -5
- data/lib/google/cloud/speech/v1p1beta1.rb +1 -1
- data/lib/google/cloud/speech/version.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: 7f82ac510a69353ef7bae70f93708ed349b6a159d835166aed5709629221da54
|
4
|
+
data.tar.gz: 9ff86427f5c292e871e6843f678d04710111226bb9c4eebac220d82f7807e30c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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
|
```
|
data/lib/google/cloud/speech.rb
CHANGED
@@ -62,7 +62,7 @@ module Google
|
|
62
62
|
# sample_rate_hertz: sample_rate_hertz,
|
63
63
|
# encoding: encoding
|
64
64
|
# }
|
65
|
-
# uri = "gs://
|
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://
|
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
|
-
#
|
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://
|
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
|
# ```
|
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.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-
|
11
|
+
date: 2019-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|