Class: RunApi::Suno::Client
- Inherits:
-
Object
- Object
- RunApi::Suno::Client
- Defined in:
- lib/runapi/suno/client.rb
Instance Attribute Summary collapse
-
#add_instrumental ⇒ Object
readonly
Returns the value of attribute add_instrumental.
-
#add_vocals ⇒ Object
readonly
Returns the value of attribute add_vocals.
-
#boost_style ⇒ Object
readonly
Returns the value of attribute boost_style.
-
#convert_audio ⇒ Object
readonly
Returns the value of attribute convert_audio.
-
#cover_audio ⇒ Object
readonly
Returns the value of attribute cover_audio.
-
#create_mashup ⇒ Object
readonly
Returns the value of attribute create_mashup.
-
#extend_music ⇒ Object
readonly
Returns the value of attribute extend_music.
-
#generate_artwork ⇒ Object
readonly
Returns the value of attribute generate_artwork.
-
#generate_lyrics ⇒ Object
readonly
Returns the value of attribute generate_lyrics.
-
#generate_midi ⇒ Object
readonly
Returns the value of attribute generate_midi.
-
#generate_persona ⇒ Object
readonly
Returns the value of attribute generate_persona.
-
#get_timestamped_lyrics ⇒ Object
readonly
Returns the value of attribute get_timestamped_lyrics.
-
#replace_section ⇒ Object
readonly
Returns the value of attribute replace_section.
-
#separate_audio_stems ⇒ Object
readonly
Returns the value of attribute separate_audio_stems.
-
#text_to_music ⇒ Object
readonly
Returns the value of attribute text_to_music.
-
#text_to_sound ⇒ Object
readonly
Returns the value of attribute text_to_sound.
-
#visualize_music ⇒ Object
readonly
Returns the value of attribute visualize_music.
Instance Method Summary collapse
-
#initialize(api_key: nil, **options) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key: nil, **options) ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/runapi/suno/client.rb', line 11 def initialize(api_key: nil, **) @api_key = Core::Auth.resolve_api_key(api_key) = Core::ClientOptions.new(api_key: @api_key, **) http = .http_client || Core::HttpClient.new() @text_to_music = Resources::TextToMusic.new(http) @extend_music = Resources::ExtendMusic.new(http) @generate_artwork = Resources::GenerateArtwork.new(http) @cover_audio = Resources::CoverAudio.new(http) @add_instrumental = Resources::AddInstrumental.new(http) @add_vocals = Resources::AddVocals.new(http) @separate_audio_stems = Resources::SeparateAudioStems.new(http) @generate_midi = Resources::GenerateMidi.new(http) @convert_audio = Resources::ConvertAudio.new(http) @visualize_music = Resources::VisualizeMusic.new(http) @generate_lyrics = Resources::GenerateLyrics.new(http) @get_timestamped_lyrics = Resources::GetTimestampedLyrics.new(http) @replace_section = Resources::ReplaceSection.new(http) @create_mashup = Resources::CreateMashup.new(http) @text_to_sound = Resources::TextToSound.new(http) @generate_persona = Resources::GeneratePersona.new(http) @boost_style = Resources::BoostStyle.new(http) end |
Instance Attribute Details
#add_instrumental ⇒ Object (readonly)
Returns the value of attribute add_instrumental.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def add_instrumental @add_instrumental end |
#add_vocals ⇒ Object (readonly)
Returns the value of attribute add_vocals.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def add_vocals @add_vocals end |
#boost_style ⇒ Object (readonly)
Returns the value of attribute boost_style.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def boost_style @boost_style end |
#convert_audio ⇒ Object (readonly)
Returns the value of attribute convert_audio.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def convert_audio @convert_audio end |
#cover_audio ⇒ Object (readonly)
Returns the value of attribute cover_audio.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def cover_audio @cover_audio end |
#create_mashup ⇒ Object (readonly)
Returns the value of attribute create_mashup.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def create_mashup @create_mashup end |
#extend_music ⇒ Object (readonly)
Returns the value of attribute extend_music.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def extend_music @extend_music end |
#generate_artwork ⇒ Object (readonly)
Returns the value of attribute generate_artwork.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def generate_artwork @generate_artwork end |
#generate_lyrics ⇒ Object (readonly)
Returns the value of attribute generate_lyrics.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def generate_lyrics @generate_lyrics end |
#generate_midi ⇒ Object (readonly)
Returns the value of attribute generate_midi.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def generate_midi @generate_midi end |
#generate_persona ⇒ Object (readonly)
Returns the value of attribute generate_persona.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def generate_persona @generate_persona end |
#get_timestamped_lyrics ⇒ Object (readonly)
Returns the value of attribute get_timestamped_lyrics.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def @get_timestamped_lyrics end |
#replace_section ⇒ Object (readonly)
Returns the value of attribute replace_section.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def replace_section @replace_section end |
#separate_audio_stems ⇒ Object (readonly)
Returns the value of attribute separate_audio_stems.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def separate_audio_stems @separate_audio_stems end |
#text_to_music ⇒ Object (readonly)
Returns the value of attribute text_to_music.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def text_to_music @text_to_music end |
#text_to_sound ⇒ Object (readonly)
Returns the value of attribute text_to_sound.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def text_to_sound @text_to_sound end |
#visualize_music ⇒ Object (readonly)
Returns the value of attribute visualize_music.
6 7 8 |
# File 'lib/runapi/suno/client.rb', line 6 def visualize_music @visualize_music end |