runapi-suno 0.4.3 → 0.4.4
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/lib/runapi/suno/client.rb +21 -0
- data/lib/runapi/suno/contract_gen.rb +786 -70
- data/lib/runapi/suno/resources/add_samples.rb +3 -0
- data/lib/runapi/suno/resources/audio_exports.rb +41 -0
- data/lib/runapi/suno/resources/boost_style.rb +2 -0
- data/lib/runapi/suno/resources/check_voice.rb +3 -0
- data/lib/runapi/suno/resources/convert_audio.rb +2 -0
- data/lib/runapi/suno/resources/generate_persona.rb +3 -0
- data/lib/runapi/suno/resources/generate_voice.rb +3 -0
- data/lib/runapi/suno/resources/get_timestamped_lyrics.rb +2 -0
- data/lib/runapi/suno/resources/music_from_sample.rb +41 -0
- data/lib/runapi/suno/resources/music_visualizations.rb +41 -0
- data/lib/runapi/suno/resources/personas.rb +58 -0
- data/lib/runapi/suno/resources/style_expansions.rb +32 -0
- data/lib/runapi/suno/resources/timestamped_lyrics.rb +32 -0
- data/lib/runapi/suno/resources/visualize_music.rb +2 -0
- data/lib/runapi/suno/resources/voices.rb +41 -0
- data/lib/runapi/suno/types/completed_responses.rb +75 -0
- data/lib/runapi/suno/types/resource_responses.rb +88 -0
- data/lib/runapi/suno/types.rb +1 -69
- data/lib/runapi/suno/validators.rb +28 -0
- data/lib/runapi/suno.rb +9 -0
- metadata +11 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1fbe17f168ddf978051af3be4d49a7ad1ce0ae95b6903f92cf40277d8771f4f
|
|
4
|
+
data.tar.gz: 80f08f5a1d296513b84bce42c29781e0efb44ec2de235b708b919365682435ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 938a240e1dbad0c4e911e85e5a3a4db19e14c77a2b4a2157204b12135b96a66c2fbd9986b3c3d202569df4a9dffc5f3b84c299511f1a2b0d6500731577ec8fcd
|
|
7
|
+
data.tar.gz: e5ada7c00932a3bc81d06ee0a4f9602a5cc3fd9a758422d2661480d75d1fb9a44c630b446ab6bd7b702467ba177d3797fa1c12acc5e5477fb84359fdc4b612dd
|
data/lib/runapi/suno/client.rb
CHANGED
|
@@ -57,6 +57,20 @@ module RunApi
|
|
|
57
57
|
attr_reader :generate_persona
|
|
58
58
|
# @return [Resources::BoostStyle] generates style/genre tags from a text description (synchronous)
|
|
59
59
|
attr_reader :boost_style
|
|
60
|
+
# @return [Resources::Personas] creates personas and retrieves them by their account-owned ID
|
|
61
|
+
attr_reader :personas
|
|
62
|
+
# @return [Resources::Voices] creates voices and retrieves them by their account-owned ID
|
|
63
|
+
attr_reader :voices
|
|
64
|
+
# @return [Resources::StyleExpansions] expands a style description into genre tags (synchronous)
|
|
65
|
+
attr_reader :style_expansions
|
|
66
|
+
# @return [Resources::TimestampedLyrics] retrieves word-level timing alignment for a track (synchronous)
|
|
67
|
+
attr_reader :timestamped_lyrics
|
|
68
|
+
# @return [Resources::AudioExports] exports an existing track to a downloadable audio file
|
|
69
|
+
attr_reader :audio_exports
|
|
70
|
+
# @return [Resources::MusicVisualizations] renders a visualization video for an existing track
|
|
71
|
+
attr_reader :music_visualizations
|
|
72
|
+
# @return [Resources::MusicFromSample] creates music guided by a sample of an uploaded audio file
|
|
73
|
+
attr_reader :music_from_sample
|
|
60
74
|
|
|
61
75
|
def initialize(api_key: nil, **options)
|
|
62
76
|
super
|
|
@@ -87,6 +101,13 @@ module RunApi
|
|
|
87
101
|
@check_voice = Resources::CheckVoice.new(http)
|
|
88
102
|
@generate_persona = Resources::GeneratePersona.new(http)
|
|
89
103
|
@boost_style = Resources::BoostStyle.new(http)
|
|
104
|
+
@personas = Resources::Personas.new(http)
|
|
105
|
+
@voices = Resources::Voices.new(http)
|
|
106
|
+
@style_expansions = Resources::StyleExpansions.new(http)
|
|
107
|
+
@timestamped_lyrics = Resources::TimestampedLyrics.new(http)
|
|
108
|
+
@audio_exports = Resources::AudioExports.new(http)
|
|
109
|
+
@music_visualizations = Resources::MusicVisualizations.new(http)
|
|
110
|
+
@music_from_sample = Resources::MusicFromSample.new(http)
|
|
90
111
|
end
|
|
91
112
|
end
|
|
92
113
|
end
|