Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb

Overview

Provides hints to the model about possible languages present in the audio.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints

Returns a new instance of GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints.



259
260
261
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 259

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#language_codesArray<String>

Required. BCP-47 language codes. At least one must be specified. Corresponds to the JSON property languageCodes

Returns:

  • (Array<String>)


257
258
259
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 257

def language_codes
  @language_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



264
265
266
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 264

def update!(**args)
  @language_codes = args[:language_codes] if args.key?(:language_codes)
end