Class: RunApi::Suno::Resources::GetTimestampedLyrics
- Inherits:
-
Object
- Object
- RunApi::Suno::Resources::GetTimestampedLyrics
- Includes:
- Core::ResourceHelpers
- Defined in:
- lib/runapi/suno/resources/get_timestamped_lyrics.rb
Overview
Retrieves word-level timing alignment for a track. Synchronous (run only, no create/get polling).
Constant Summary collapse
- ENDPOINT =
"/api/v1/suno/get_timestamped_lyrics"- RESPONSE_CLASS =
Types::GetTimestampedLyricsResponse
Instance Method Summary collapse
-
#initialize(http) ⇒ GetTimestampedLyrics
constructor
A new instance of GetTimestampedLyrics.
- #run(**params) ⇒ Object
Constructor Details
#initialize(http) ⇒ GetTimestampedLyrics
Returns a new instance of GetTimestampedLyrics.
13 14 15 |
# File 'lib/runapi/suno/resources/get_timestamped_lyrics.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/get_timestamped_lyrics.rb', line 17 def run(**params) params = compact_params(params) validate_params!(params) request(:post, ENDPOINT, body: params) end |