Module: RunApi::FishAudio

Defined in:
lib/runapi/fish_audio.rb,
lib/runapi/fish_audio/types.rb,
lib/runapi/fish_audio/client.rb,
lib/runapi/fish_audio/contract_gen.rb,
lib/runapi/fish_audio/resources/text_to_speech.rb

Defined Under Namespace

Modules: Resources, Types Classes: Client

Constant Summary collapse

AuthenticationError =
RunApi::Core::AuthenticationError
RateLimitError =
RunApi::Core::RateLimitError
InsufficientCreditsError =
RunApi::Core::InsufficientCreditsError
NotFoundError =
RunApi::Core::NotFoundError
ValidationError =
RunApi::Core::ValidationError
CONTRACT =
{
  "text-to-speech" => {
    "models" => ["s1", "s2-pro"],
    "fields_by_model" => {
      "s1" => {
        "text" => {
          "required" => true
        }
      },
      "s2-pro" => {
        "text" => {
          "required" => true
        }
      }
    }
  }
}.freeze