Class: RunApi::Elevenlabs::Client
- Inherits:
-
Object
- Object
- RunApi::Elevenlabs::Client
- Defined in:
- lib/runapi/elevenlabs/client.rb
Instance Attribute Summary collapse
-
#isolate_audio ⇒ Object
readonly
Returns the value of attribute isolate_audio.
-
#speech_to_text ⇒ Object
readonly
Returns the value of attribute speech_to_text.
-
#text_to_dialogue ⇒ Object
readonly
Returns the value of attribute text_to_dialogue.
-
#text_to_sound ⇒ Object
readonly
Returns the value of attribute text_to_sound.
-
#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.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/runapi/elevenlabs/client.rb', line 8 def initialize(api_key: nil, **) @api_key = Core::Auth.resolve_api_key(api_key) = Core::ClientOptions.new(api_key: @api_key, **) http = .http_client || Core::HttpClient.new() @text_to_speech = Resources::TextToSpeech.new(http) @text_to_dialogue = Resources::TextToDialogue.new(http) @text_to_sound = Resources::TextToSound.new(http) @speech_to_text = Resources::SpeechToText.new(http) @isolate_audio = Resources::IsolateAudio.new(http) end |
Instance Attribute Details
#isolate_audio ⇒ Object (readonly)
Returns the value of attribute isolate_audio.
6 7 8 |
# File 'lib/runapi/elevenlabs/client.rb', line 6 def isolate_audio @isolate_audio end |
#speech_to_text ⇒ Object (readonly)
Returns the value of attribute speech_to_text.
6 7 8 |
# File 'lib/runapi/elevenlabs/client.rb', line 6 def speech_to_text @speech_to_text end |
#text_to_dialogue ⇒ Object (readonly)
Returns the value of attribute text_to_dialogue.
6 7 8 |
# File 'lib/runapi/elevenlabs/client.rb', line 6 def text_to_dialogue @text_to_dialogue end |
#text_to_sound ⇒ Object (readonly)
Returns the value of attribute text_to_sound.
6 7 8 |
# File 'lib/runapi/elevenlabs/client.rb', line 6 def text_to_sound @text_to_sound end |
#text_to_speech ⇒ Object (readonly)
Returns the value of attribute text_to_speech.
6 7 8 |
# File 'lib/runapi/elevenlabs/client.rb', line 6 def text_to_speech @text_to_speech end |