Class: RunApi::OpenaiTts::Client
- Inherits:
-
Core::Client
- Object
- Core::Client
- RunApi::OpenaiTts::Client
- Defined in:
- lib/runapi/openai_tts/client.rb
Overview
OpenAI TTS speech generation client.
Instance Attribute Summary collapse
-
#text_to_speech ⇒ Object
readonly
Returns the value of attribute text_to_speech.
Instance Method Summary collapse
-
#initialize(api_key: nil, **options) ⇒ Client
constructor
A new instance of Client.
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, **) super @text_to_speech = Resources::TextToSpeech.new(http) end |
Instance Attribute Details
#text_to_speech ⇒ Object (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 |