Class: IvonaSpeechCloud::Input::ListVoices

Inherits:
Object
  • Object
show all
Includes:
CommonDefaults
Defined in:
lib/ivona_speech_cloud/input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CommonDefaults

#gender, #language

Constructor Details

#initialize(options) ⇒ ListVoices

Returns a new instance of ListVoices.



96
97
98
# File 'lib/ivona_speech_cloud/input.rb', line 96

def initialize(options)
  @options = options.first.is_a?(Hash) ? options.first : {}
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



92
93
94
# File 'lib/ivona_speech_cloud/input.rb', line 92

def options
  @options
end

Instance Method Details

#paramsObject



100
101
102
103
104
105
106
# File 'lib/ivona_speech_cloud/input.rb', line 100

def params
  {
    "Voice" => {
      "Language" => language
    }.merge(options)
  }.to_json
end