Class: RunApi::FishAudio::Resources::TextToSpeech
- Inherits:
-
Object
- Object
- RunApi::FishAudio::Resources::TextToSpeech
- Includes:
- Core::ResourceHelpers
- Defined in:
- lib/runapi/fish_audio/resources/text_to_speech.rb
Overview
Generates RunAPI-managed MP3 speech from text.
Constant Summary collapse
- ENDPOINT =
"/api/v1/fish_audio/text_to_speech"- RESPONSE_CLASS =
Types::TextToSpeechResponse
Instance Method Summary collapse
-
#initialize(http) ⇒ TextToSpeech
constructor
A new instance of TextToSpeech.
- #run(options: nil, **params) ⇒ Object
Constructor Details
#initialize(http) ⇒ TextToSpeech
Returns a new instance of TextToSpeech.
13 14 15 |
# File 'lib/runapi/fish_audio/resources/text_to_speech.rb', line 13 def initialize(http) @http = http end |