Class: RunApi::Suno::Resources::CheckVoice

Inherits:
Object
  • Object
show all
Includes:
Core::ResourceHelpers
Defined in:
lib/runapi/suno/resources/check_voice.rb

Overview

Step 4 of voice cloning: checks whether a custom voice is ready for use. Synchronous (run only).

Constant Summary collapse

ENDPOINT =
"/api/v1/suno/check_voice"
RESPONSE_CLASS =
Types::CheckVoiceResponse

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ CheckVoice

Returns a new instance of CheckVoice.



13
14
15
# File 'lib/runapi/suno/resources/check_voice.rb', line 13

def initialize(http)
  @http = http
end

Instance Method Details

#run(**params) ⇒ Object



17
18
19
20
21
# File 'lib/runapi/suno/resources/check_voice.rb', line 17

def run(**params)
  params = compact_params(params)
  validate_params!(params)
  request(:post, ENDPOINT, body: params)
end