google-apis-speech_v1 0.10.0 → 0.11.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: 8e1af37cd240879c02445c946f94a7b481b6efadb70bb8c21837b22326567bd8
4
- data.tar.gz: 600246f7d6f761345e6ce8c6d19eb605f5e8bae0c855e6b66113b473d9bda94d
3
+ metadata.gz: a61aa91eaa2686b03a79d7673eb556a3da4ac04361b91810e1e73e6b5501473a
4
+ data.tar.gz: 07dc9d1d55f5c23a3fdc0a86d07422920b0e76d80dc2d11edcc0f34e33140069
5
5
  SHA512:
6
- metadata.gz: 42bc295fe3a22c72081eadf0ec4894600590d5a9f769b67b41c34ef27123edd605a2305fdcf1379122aff994c9bc28378e1b0421533527dec36ffc97affa0d8f
7
- data.tar.gz: 4caac8bbe96adf48fdee38198553b3129c166f1593bc66880dda369c6606bcd3940bd9425b6e3541c2ba9f6cb2bdb37067d2044b37f0b02b9e10cd8756afd09e
6
+ metadata.gz: 88c20e87a2684d34774fccebdac9a8c864c927b66f0b5ab6f45d03f6bddd1dcafa5eb1b04710e45efeb49efbf9580d9c6dfadb388f06c4d00c5ddb87ef354044
7
+ data.tar.gz: a6f597de569c16b005b19bd93a5e896d2445628b50da095ed73328fdf25330b9f4e66cf87b15c5f60c93689903ae25417eff85e48512850d647aafd84d509782
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-speech_v1
2
2
 
3
+ ### v0.11.0 (2021-10-22)
4
+
5
+ * Regenerated from discovery document revision 20211008
6
+ * Unspecified changes
7
+
3
8
  ### v0.10.0 (2021-10-08)
4
9
 
5
10
  * Regenerated from discovery document revision 20210929
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Speech service in particular.)
67
67
 
@@ -273,6 +273,20 @@ module Google
273
273
  class RecognitionConfig
274
274
  include Google::Apis::Core::Hashable
275
275
 
276
+ # A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.
277
+ # txt) language tags, listing possible alternative languages of the supplied
278
+ # audio. See [Language Support](https://cloud.google.com/speech-to-text/docs/
279
+ # languages) for a list of the currently supported language codes. If
280
+ # alternative languages are listed, recognition result will contain recognition
281
+ # in the most likely language detected including the main language_code. The
282
+ # recognition result will include the language tag of the language detected in
283
+ # the audio. Note: This feature is only supported for Voice Command and Voice
284
+ # Search use cases and performance may vary for other use cases (e.g., phone
285
+ # call transcription).
286
+ # Corresponds to the JSON property `alternativeLanguageCodes`
287
+ # @return [Array<String>]
288
+ attr_accessor :alternative_language_codes
289
+
276
290
  # The number of channels in the input audio data. ONLY set this for MULTI-
277
291
  # CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid
278
292
  # values for OGG_OPUS are '1'-'254'. Valid value for MULAW, AMR, AMR_WB and
@@ -309,6 +323,14 @@ module Google
309
323
  attr_accessor :enable_separate_recognition_per_channel
310
324
  alias_method :enable_separate_recognition_per_channel?, :enable_separate_recognition_per_channel
311
325
 
326
+ # If `true`, the top result includes a list of words and the confidence for
327
+ # those words. If `false`, no word-level confidence information is returned. The
328
+ # default is `false`.
329
+ # Corresponds to the JSON property `enableWordConfidence`
330
+ # @return [Boolean]
331
+ attr_accessor :enable_word_confidence
332
+ alias_method :enable_word_confidence?, :enable_word_confidence
333
+
312
334
  # If `true`, the top result includes a list of words and the start and end time
313
335
  # offsets (timestamps) for those words. If `false`, no word-level time offset
314
336
  # information is returned. The default is `false`.
@@ -402,10 +424,12 @@ module Google
402
424
 
403
425
  # Update properties of this object
404
426
  def update!(**args)
427
+ @alternative_language_codes = args[:alternative_language_codes] if args.key?(:alternative_language_codes)
405
428
  @audio_channel_count = args[:audio_channel_count] if args.key?(:audio_channel_count)
406
429
  @diarization_config = args[:diarization_config] if args.key?(:diarization_config)
407
430
  @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
408
431
  @enable_separate_recognition_per_channel = args[:enable_separate_recognition_per_channel] if args.key?(:enable_separate_recognition_per_channel)
432
+ @enable_word_confidence = args[:enable_word_confidence] if args.key?(:enable_word_confidence)
409
433
  @enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets)
410
434
  @encoding = args[:encoding] if args.key?(:encoding)
411
435
  @language_code = args[:language_code] if args.key?(:language_code)
@@ -674,6 +698,13 @@ module Google
674
698
  # @return [Fixnum]
675
699
  attr_accessor :channel_tag
676
700
 
701
+ # Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
702
+ # language tag of the language in this result. This language code was detected
703
+ # to have the most likelihood of being spoken in the audio.
704
+ # Corresponds to the JSON property `languageCode`
705
+ # @return [String]
706
+ attr_accessor :language_code
707
+
677
708
  def initialize(**args)
678
709
  update!(**args)
679
710
  end
@@ -682,6 +713,7 @@ module Google
682
713
  def update!(**args)
683
714
  @alternatives = args[:alternatives] if args.key?(:alternatives)
684
715
  @channel_tag = args[:channel_tag] if args.key?(:channel_tag)
716
+ @language_code = args[:language_code] if args.key?(:language_code)
685
717
  end
686
718
  end
687
719
 
@@ -749,6 +781,16 @@ module Google
749
781
  class WordInfo
750
782
  include Google::Apis::Core::Hashable
751
783
 
784
+ # The confidence estimate between 0.0 and 1.0. A higher number indicates an
785
+ # estimated greater likelihood that the recognized words are correct. This field
786
+ # is set only for the top alternative of a non-streaming result or, of a
787
+ # streaming result where `is_final=true`. This field is not guaranteed to be
788
+ # accurate and users should not rely on it to be always provided. The default of
789
+ # 0.0 is a sentinel value indicating `confidence` was not set.
790
+ # Corresponds to the JSON property `confidence`
791
+ # @return [Float]
792
+ attr_accessor :confidence
793
+
752
794
  # Time offset relative to the beginning of the audio, and corresponding to the
753
795
  # end of the spoken word. This field is only set if `enable_word_time_offsets=
754
796
  # true` and only in the top hypothesis. This is an experimental feature and the
@@ -785,6 +827,7 @@ module Google
785
827
 
786
828
  # Update properties of this object
787
829
  def update!(**args)
830
+ @confidence = args[:confidence] if args.key?(:confidence)
788
831
  @end_time = args[:end_time] if args.key?(:end_time)
789
832
  @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
790
833
  @start_time = args[:start_time] if args.key?(:start_time)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SpeechV1
18
18
  # Version of the google-apis-speech_v1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210929"
25
+ REVISION = "20211008"
26
26
  end
27
27
  end
28
28
  end
@@ -191,11 +191,13 @@ module Google
191
191
  class RecognitionConfig
192
192
  # @private
193
193
  class Representation < Google::Apis::Core::JsonRepresentation
194
+ collection :alternative_language_codes, as: 'alternativeLanguageCodes'
194
195
  property :audio_channel_count, as: 'audioChannelCount'
195
196
  property :diarization_config, as: 'diarizationConfig', class: Google::Apis::SpeechV1::SpeakerDiarizationConfig, decorator: Google::Apis::SpeechV1::SpeakerDiarizationConfig::Representation
196
197
 
197
198
  property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
198
199
  property :enable_separate_recognition_per_channel, as: 'enableSeparateRecognitionPerChannel'
200
+ property :enable_word_confidence, as: 'enableWordConfidence'
199
201
  property :enable_word_time_offsets, as: 'enableWordTimeOffsets'
200
202
  property :encoding, as: 'encoding'
201
203
  property :language_code, as: 'languageCode'
@@ -277,6 +279,7 @@ module Google
277
279
  collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1::SpeechRecognitionAlternative::Representation
278
280
 
279
281
  property :channel_tag, as: 'channelTag'
282
+ property :language_code, as: 'languageCode'
280
283
  end
281
284
  end
282
285
 
@@ -299,6 +302,7 @@ module Google
299
302
  class WordInfo
300
303
  # @private
301
304
  class Representation < Google::Apis::Core::JsonRepresentation
305
+ property :confidence, as: 'confidence'
302
306
  property :end_time, as: 'endTime'
303
307
  property :speaker_tag, as: 'speakerTag'
304
308
  property :start_time, as: 'startTime'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-speech_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.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-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.10.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.11.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: