Coder Social home page Coder Social logo

stable-audio-api's Introduction

Stable Audio 2 API

Access Stable Audio 2 for absolutely free using this reverse engineered API!

How to use?

In order to use this API, you need to first make sure you have Node.JS installed on your machine. Alternatively, you may use an online IDE like Repl.it to run the code.

Then, follow the steps below:

  1. Obtaining your Stable Audio token. Scroll down to view how

  2. Once you have your token, set it in the token.json file accordingly.

  3. The stable_audio.js file contains the core functionality in the form of a function which has been exported. You may access it like this:

    const { generateAudio } = require('./stable_audio');
    
    const main = async () => {
        await generateAudio('electronic dance music', 180, 123); // Prompt (required) | Length (optional) | Seed (optional)
    };
    
    main();
  4. Run the file using node index.js.

  5. There you have it! Once you run the file, it will download to audio_file.mp3 in the same directory for you to listen to. You may adjust the function if you would like to download it in another location.

How to get my Stable Audio Token?

  1. Visit https://stableaudio.com/generate and register for an account.
  2. Open up your browser developer tools (Chrome - Ctrl + Shift + I)
  3. Navigate to the "Application" tab.
  4. Under Local Storage -> https://stableaudio.com there should be something that looks like this: @@auth0spajs@@::XxXxX12345::@@user@@.
  5. Copy the value under id_token.
  6. Then set it in the token.json file accordingly.

alt text

stable-audio-api's People

Contributors

skzhengkai avatar

Stargazers

hax avatar Jeff Robel avatar Cyclotomic Fields avatar  avatar hhhaiai avatar

Watchers

hhhaiai avatar  avatar

Forkers

openchatgpts

stable-audio-api's Issues

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.