Class: RunApi::FishAudio::Client

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

Overview

Fish Audio reusable voice and 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
13
14
15
# File 'lib/runapi/fish_audio/client.rb', line 9

def initialize(api_key: nil, **options)
  super
  @text_to_speech = Resources::TextToSpeech.new(http)
  @create_voice = Resources::CreateVoice.new(http)
  @list_voices = Resources::ListVoices.new(http)
  @get_voice = Resources::GetVoice.new(http)
end

Instance Attribute Details

#create_voiceObject (readonly)

Returns the value of attribute create_voice.



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

def create_voice
  @create_voice
end

#get_voiceObject (readonly)

Returns the value of attribute get_voice.



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

def get_voice
  @get_voice
end

#list_voicesObject (readonly)

Returns the value of attribute list_voices.



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

def list_voices
  @list_voices
end

#text_to_speechObject (readonly)

Returns the value of attribute text_to_speech.



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

def text_to_speech
  @text_to_speech
end