Class: RunApi::FishAudio::Client
- Inherits:
-
Core::Client
- Object
- Core::Client
- RunApi::FishAudio::Client
- Defined in:
- lib/runapi/fish_audio/client.rb
Overview
Fish Audio reusable voice and speech generation client.
Instance Attribute Summary collapse
-
#create_voice ⇒ Object
readonly
Returns the value of attribute create_voice.
-
#get_voice ⇒ Object
readonly
Returns the value of attribute get_voice.
-
#list_voices ⇒ Object
readonly
Returns the value of attribute list_voices.
-
#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 13 14 15 |
# File 'lib/runapi/fish_audio/client.rb', line 9 def initialize(api_key: nil, **) 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_voice ⇒ Object (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_voice ⇒ Object (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_voices ⇒ Object (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_speech ⇒ Object (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 |