class Google::Apis::SpeechV1p1beta1::RecognitionMetadata

Description of audio data to be recognized.

Attributes

audio_topic[RW]

Description of the content. Eg. “Recordings of federal supreme court hearings from 2012”. Corresponds to the JSON property `audioTopic` @return [String]

industry_naics_code_of_audio[RW]

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 www.naics. com/search/. Corresponds to the JSON property `industryNaicsCodeOfAudio` @return [Fixnum]

interaction_type[RW]

The use case most closely describing the audio content to be recognized. Corresponds to the JSON property `interactionType` @return [String]

microphone_distance[RW]

The audio type that most closely describes the audio being recognized. Corresponds to the JSON property `microphoneDistance` @return [String]

obfuscated_id[RW]

Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service. Corresponds to the JSON property `obfuscatedId` @return [Fixnum]

original_media_type[RW]

The original media the speech was recorded on. Corresponds to the JSON property `originalMediaType` @return [String]

original_mime_type[RW]

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 www.iana.org/assignments/media-types/media-types.xhtml# audio Corresponds to the JSON property `originalMimeType` @return [String]

recording_device_name[RW]

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]

recording_device_type[RW]

The type of device the speech was recorded with. Corresponds to the JSON property `recordingDeviceType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/speech_v1p1beta1/classes.rb, line 864
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/speech_v1p1beta1/classes.rb, line 869
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