runapi-suno 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/lib/runapi/suno/contract_gen.rb +744 -0
- data/lib/runapi/suno/resources/add_instrumental.rb +7 -7
- data/lib/runapi/suno/resources/add_vocals.rb +7 -7
- data/lib/runapi/suno/resources/boost_style.rb +2 -2
- data/lib/runapi/suno/resources/check_voice.rb +2 -2
- data/lib/runapi/suno/resources/convert_audio.rb +7 -7
- data/lib/runapi/suno/resources/cover_audio.rb +7 -7
- data/lib/runapi/suno/resources/create_mashup.rb +7 -7
- data/lib/runapi/suno/resources/extend_music.rb +7 -7
- data/lib/runapi/suno/resources/generate_artwork.rb +7 -7
- data/lib/runapi/suno/resources/generate_lyrics.rb +7 -7
- data/lib/runapi/suno/resources/generate_midi.rb +7 -7
- data/lib/runapi/suno/resources/generate_persona.rb +2 -2
- data/lib/runapi/suno/resources/generate_voice.rb +7 -7
- data/lib/runapi/suno/resources/get_timestamped_lyrics.rb +2 -2
- data/lib/runapi/suno/resources/regenerate_validation_phrase.rb +7 -7
- data/lib/runapi/suno/resources/replace_section.rb +7 -7
- data/lib/runapi/suno/resources/separate_audio_stems.rb +7 -7
- data/lib/runapi/suno/resources/text_to_music.rb +7 -7
- data/lib/runapi/suno/resources/text_to_sound.rb +7 -7
- data/lib/runapi/suno/resources/visualize_music.rb +7 -7
- data/lib/runapi/suno/resources/voice_to_validation_phrase.rb +7 -7
- data/lib/runapi/suno/validators.rb +37 -45
- data/lib/runapi/suno.rb +1 -0
- metadata +11 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 124108c4cd23a7de517f3ab0f0eac3b38b898c43774965bb4819c946e8f62a28
|
|
4
|
+
data.tar.gz: 35d6431cf52fb7159d390a45adfd5899220b72862e5282e2f56053ad64870997
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93841c24e1ba681727532961006a2ea959dece477c1b7419d09acfc322893e25eab178efe282bc1c250363c7e001fcd8af337ec0ce36b7a106be459b48c498bd
|
|
7
|
+
data.tar.gz: 1aeb7d43eea7c6d2aac1e08a28ac2cc6aacc6f82c6cd57929c240a4880f3ae4fd25cd2b87eef65dc51169949858c5696926b2d71d698db44952946e141ae4ac6
|
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Suno
|
|
1
|
+
# Suno API Ruby SDK for RunAPI
|
|
2
2
|
|
|
3
|
-
The
|
|
3
|
+
The Suno Ruby SDK is the language-specific package for Suno on RunAPI. Use this package for song generation, lyrics, vocals, extension, and audio transformation workflows when your application needs request bodies, task status lookup, and consistent RunAPI errors in Ruby.
|
|
4
4
|
|
|
5
|
-
This
|
|
5
|
+
This README is the Ruby package guide inside the public `suno-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/suno; for API reference, use https://runapi.ai/docs#suno; for SDK docs, use https://runapi.ai/docs#sdk-suno.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -13,13 +13,13 @@ gem install runapi-suno
|
|
|
13
13
|
## Quick start
|
|
14
14
|
|
|
15
15
|
```ruby
|
|
16
|
-
require "runapi
|
|
16
|
+
require "runapi/suno"
|
|
17
17
|
|
|
18
18
|
client = RunApi::Suno::Client.new
|
|
19
|
-
task = client.
|
|
19
|
+
task = client.text_to_music.create(
|
|
20
20
|
# Pass the Suno JSON request body from https://runapi.ai/docs#suno.
|
|
21
21
|
)
|
|
22
|
-
status = client.
|
|
22
|
+
status = client.text_to_music.get(task.id)
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Use `create` when you want to submit a task and return quickly, `get` when you need the latest task state, and `run` when a script should create and poll until completion. In web request handlers, prefer `create` plus webhook or later `get` polling so a worker is not held open.
|
|
@@ -28,7 +28,7 @@ RunAPI-generated file URLs are temporary. Download and store generated images, v
|
|
|
28
28
|
|
|
29
29
|
## Language notes
|
|
30
30
|
|
|
31
|
-
Use Ruby keyword arguments and the `RunApi::Suno` error classes when building music jobs, Rails workers, or scripts. The available resources
|
|
31
|
+
Use Ruby keyword arguments and the `RunApi::Suno` error classes when building music jobs, Rails workers, or scripts. The available resources are `text_to_music`, `extend_music`, `generate_artwork`, `cover_audio`, `add_instrumental`, `add_vocals`, `separate_audio_stems`, `generate_midi`, `convert_audio`, `visualize_music`, `generate_lyrics`, `get_timestamped_lyrics`, `replace_section`, `create_mashup`, `text_to_sound`, `voice_to_validation_phrase`, `regenerate_validation_phrase`, `generate_voice`, `check_voice`, `generate_persona`, and `boost_style`. Keep `RUNAPI_API_KEY` in the environment or your secret manager; never commit API keys or callback secrets.
|
|
32
32
|
|
|
33
33
|
## Links
|
|
34
34
|
|