class Google::Apis::TexttospeechV1beta1::Voice

Description of a voice supported by the TTS service.

Attributes

language_codes[RW]

The languages that this voice supports, expressed as [BCP-47](www.rfc- editor.org/rfc/bcp/bcp47.txt) language tags (e.g. “en-US”, “es-419”, “cmn-tw”). Corresponds to the JSON property `languageCodes` @return [Array<String>]

name[RW]

The name of this voice. Each distinct voice has a unique name. Corresponds to the JSON property `name` @return [String]

natural_sample_rate_hertz[RW]

The natural sample rate (in hertz) for this voice. Corresponds to the JSON property `naturalSampleRateHertz` @return [Fixnum]

ssml_gender[RW]

The gender of this voice. Corresponds to the JSON property `ssmlGender` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/texttospeech_v1beta1/classes.rb, line 277
def update!(**args)
  @language_codes = args[:language_codes] if args.key?(:language_codes)
  @name = args[:name] if args.key?(:name)
  @natural_sample_rate_hertz = args[:natural_sample_rate_hertz] if args.key?(:natural_sample_rate_hertz)
  @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
end