Coder Social home page Coder Social logo

guquandaju012 / sunosongscreator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yihong0618/sunosongscreator

0.0 0.0 0.0 6.19 MB

About High quality songs generation by https://www.suno.ai/. Reverse engineered API.

License: GNU General Public License v3.0

Python 100.00%

sunosongscreator's Introduction

SunoSongsCreator

About High quality songs generation by https://www.suno.ai/. Reverse engineered API.

How to

  • Login to https://app.suno.ai/ and generate some songs.
  • Use Chrome or other browsers to inspect the network requests (F12 -> XHR).
  • Clone this REPO -> git clone https://github.com/yihong0618/SunoSongsCreator.git
  • XHR find cookie in this url -> https://clerk.suno.ai/v1/client?_clerk_js_version=4.70.5
  • Copy the cookie.
  • You can import the cookie using export SUNO_COOKIE='<your-suno-cookie>' or rename .env.example to .env and fill in SUNO_COOKIE.

Usage

python -m suno --prompt 'a big red dream song'

or

pip install -U suno_songs
from suno import SongsGen
i = SongsGen('cookie') # Replace 'cookie'
print(i.get_limit_left())
i.save_songs("a blue cyber dream song", './output')

Custom mode

#you can use custom mode
from suno import SongsGen
i = SongsGen('cookie') # Replace 'cookie'
print(i.get_limit_left())
i.save_songs("大江东去,浪淘尽,千古风流人物。故垒西边,人道是、三国周郎赤壁。乱石穿空,惊涛拍岸,卷起千堆雪。江山如画,一时多少豪杰。遥想公瑾当年,小乔初嫁了,雄姿英发。", is_custom=True, title="custom", tags="轻松的R&B, BPM60, 小调, 电吉他、贝斯、键盘和轻鼓, 男性歌手") 

Get song library

from suno import SongsGen
i = SongsGen('cookie') # Replace 'cookie'
print(i.get_song_library())

Thanks

sunosongscreator's People

Contributors

yihong0618 avatar idkwhatimd0ing avatar wengchaoxi avatar andy963 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.