Autogenerated update (2019-02-20)

Update:
- adexchangebuyer2_v2beta1
- admin_directory_v1
- alertcenter_v1beta1
- androidmanagement_v1
- appengine_v1
- appengine_v1beta
- bigquery_v2
- bigquerydatatransfer_v1
- binaryauthorization_v1beta1
- cloudsearch_v1
- cloudtasks_v2beta2
- cloudtasks_v2beta3
- composer_v1
- composer_v1beta1
- compute_alpha
- compute_beta
- container_v1beta1
- content_v2
- content_v2_1
- dataflow_v1b3
- dfareporting_v3_3
- dialogflow_v2
- dialogflow_v2beta1
- dlp_v2
- docs_v1
- firebasedynamiclinks_v1
- fitness_v1
- genomics_v1
- genomics_v1alpha2
- genomics_v2alpha1
- jobs_v3p1beta1
- monitoring_v3
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- serviceconsumermanagement_v1
- servicecontrol_v1
- servicemanagement_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- speech_v1
- speech_v1p1beta1
- sqladmin_v1beta4
- storage_v1
- testing_v1
- toolresults_v1beta3
- tpu_v1
- tpu_v1alpha1
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
- youtube_partner_v1
This commit is contained in:
Google APIs committed 2019-02-20 02:14:27 +00:00
1 parent 6e90789b27
commit e6ea6069c9
130 files changed
+16824 -538

No files matched your search

@@ -274,6 +274,19 @@ module Google
class RecognitionConfig
include Google::Apis::Core::Hashable
# *Optional* The number of channels in the input audio data.
# ONLY set this for MULTI-CHANNEL recognition.
# Valid values for LINEAR16 and FLAC are `1`-`8`.
# Valid values for OGG_OPUS are '1'-'254'.
# Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`.
# If `0` or omitted, defaults to one channel (mono).
# Note: We only recognize the first channel by default.
# To perform independent recognition on each channel set
# `enable_separate_recognition_per_channel` to 'true'.
# Corresponds to the JSON property `audioChannelCount`
# @return [Fixnum]
attr_accessor :audio_channel_count
# *Optional* If 'true', adds punctuation to recognition result hypotheses.
# This feature is only available in select languages. Setting this for
# requests in other languages has no effect at all.
@@ -332,6 +345,11 @@ module Google
# @return [Fixnum]
attr_accessor :max_alternatives
# Description of audio data to be recognized.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::SpeechV1::RecognitionMetadata]
attr_accessor :metadata
# *Optional* Which model to select for the given request. Select the model
# best suited to your domain to get best results. If a model is not
# explicitly specified, then we auto-select a model based on the parameters
@@ -419,12 +437,14 @@ module Google
# Update properties of this object
def update!(**args)
@audio_channel_count = args[:audio_channel_count] if args.key?(:audio_channel_count)
@enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
@enable_separate_recognition_per_channel = args[:enable_separate_recognition_per_channel] if args.key?(:enable_separate_recognition_per_channel)
@enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets)
@encoding = args[:encoding] if args.key?(:encoding)
@language_code = args[:language_code] if args.key?(:language_code)
@max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
@metadata = args[:metadata] if args.key?(:metadata)
@model = args[:model] if args.key?(:model)
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
@@ -433,6 +453,83 @@ module Google
end
end
# Description of audio data to be recognized.
class RecognitionMetadata
include Google::Apis::Core::Hashable
# Description of the content. Eg. "Recordings of federal supreme court
# hearings from 2012".
# Corresponds to the JSON property `audioTopic`
# @return [String]
attr_accessor :audio_topic
# The industry vertical to which this speech recognition request most
# closely applies. This is most indicative of the topics contained
# in the audio. Use the 6-digit NAICS code to identify the industry
# vertical - see https://www.naics.com/search/.
# Corresponds to the JSON property `industryNaicsCodeOfAudio`
# @return [Fixnum]
attr_accessor :industry_naics_code_of_audio
# The use case most closely describing the audio content to be recognized.
# Corresponds to the JSON property `interactionType`
# @return [String]
attr_accessor :interaction_type
# The audio type that most closely describes the audio being recognized.
# Corresponds to the JSON property `microphoneDistance`
# @return [String]
attr_accessor :microphone_distance
# Obfuscated (privacy-protected) ID of the user, to identify number of
# unique users using the service.
# Corresponds to the JSON property `obfuscatedId`
# @return [Fixnum]
attr_accessor :obfuscated_id
# The original media the speech was recorded on.
# Corresponds to the JSON property `originalMediaType`
# @return [String]
attr_accessor :original_media_type
# Mime type of the original audio file. For example `audio/m4a`,
# `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
# A list of possible audio mime types is maintained at
# http://www.iana.org/assignments/media-types/media-types.xhtml#audio
# Corresponds to the JSON property `originalMimeType`
# @return [String]
attr_accessor :original_mime_type
# The device used to make the recording. Examples 'Nexus 5X' or
# 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
# 'Cardioid Microphone'.
# Corresponds to the JSON property `recordingDeviceName`
# @return [String]
attr_accessor :recording_device_name
# The type of device the speech was recorded with.
# Corresponds to the JSON property `recordingDeviceType`
# @return [String]
attr_accessor :recording_device_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audio_topic = args[:audio_topic] if args.key?(:audio_topic)
@industry_naics_code_of_audio = args[:industry_naics_code_of_audio] if args.key?(:industry_naics_code_of_audio)
@interaction_type = args[:interaction_type] if args.key?(:interaction_type)
@microphone_distance = args[:microphone_distance] if args.key?(:microphone_distance)
@obfuscated_id = args[:obfuscated_id] if args.key?(:obfuscated_id)
@original_media_type = args[:original_media_type] if args.key?(:original_media_type)
@original_mime_type = args[:original_mime_type] if args.key?(:original_mime_type)
@recording_device_name = args[:recording_device_name] if args.key?(:recording_device_name)
@recording_device_type = args[:recording_device_type] if args.key?(:recording_device_type)
end
end
# The top-level message sent by the client for the `Recognize` method.
class RecognizeRequest
include Google::Apis::Core::Hashable
@@ -64,6 +64,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RecognitionMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RecognizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -165,12 +171,15 @@ module Google
class RecognitionConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :audio_channel_count, as: 'audioChannelCount'
property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
property :enable_separate_recognition_per_channel, as: 'enableSeparateRecognitionPerChannel'
property :enable_word_time_offsets, as: 'enableWordTimeOffsets'
property :encoding, as: 'encoding'
property :language_code, as: 'languageCode'
property :max_alternatives, as: 'maxAlternatives'
property :metadata, as: 'metadata', class: Google::Apis::SpeechV1::RecognitionMetadata, decorator: Google::Apis::SpeechV1::RecognitionMetadata::Representation
property :model, as: 'model'
property :profanity_filter, as: 'profanityFilter'
property :sample_rate_hertz, as: 'sampleRateHertz'
@@ -180,6 +189,21 @@ module Google
end
end
class RecognitionMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :audio_topic, as: 'audioTopic'
property :industry_naics_code_of_audio, as: 'industryNaicsCodeOfAudio'
property :interaction_type, as: 'interactionType'
property :microphone_distance, as: 'microphoneDistance'
property :obfuscated_id, :numeric_string => true, as: 'obfuscatedId'
property :original_media_type, as: 'originalMediaType'
property :original_mime_type, as: 'originalMimeType'
property :recording_device_name, as: 'recordingDeviceName'
property :recording_device_type, as: 'recordingDeviceType'
end
end
class RecognizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation