Class: Google::Cloud::TextToSpeech::V1::Voice

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb

Overview

Description of a voice supported by the TTS service.

Instance Attribute Summary collapse

Instance Attribute Details

#language_codes::Array<::String>

Returns The languages that this voice supports, expressed as BCP-47 language tags (e.g. "en-US", "es-419", "cmn-tw").

Returns:

  • (::Array<::String>)

    The languages that this voice supports, expressed as BCP-47 language tags (e.g. "en-US", "es-419", "cmn-tw").



64
65
66
67
# File 'proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb', line 64

class Voice
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String

Returns The name of this voice. Each distinct voice has a unique name.

Returns:

  • (::String)

    The name of this voice. Each distinct voice has a unique name.



64
65
66
67
# File 'proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb', line 64

class Voice
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#natural_sample_rate_hertz::Integer

Returns The natural sample rate (in hertz) for this voice.

Returns:

  • (::Integer)

    The natural sample rate (in hertz) for this voice.



64
65
66
67
# File 'proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb', line 64

class Voice
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#ssml_gender::Google::Cloud::TextToSpeech::V1::SsmlVoiceGender

Returns The gender of this voice.

Returns:



64
65
66
67
# File 'proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb', line 64

class Voice
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end