Class: RunApi::OpenaiTts::Client

Inherits:
Core::Client
  • Object
show all
Defined in:
lib/runapi/openai_tts/client.rb

Overview

OpenAI TTS speech generation client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key: nil, **options) ⇒ Client

Returns a new instance of Client.



9
10
11
12
# File 'lib/runapi/openai_tts/client.rb', line 9

def initialize(api_key: nil, **options)
  super
  @text_to_speech = Resources::TextToSpeech.new(http)
end

Instance Attribute Details

#text_to_speechObject (readonly)

Returns the value of attribute text_to_speech.



7
8
9
# File 'lib/runapi/openai_tts/client.rb', line 7

def text_to_speech
  @text_to_speech
end