Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need extend, negative_tags, cover, upload #50

Open
jochemstoel opened this issue Oct 12, 2024 · 0 comments
Open

Need extend, negative_tags, cover, upload #50

jochemstoel opened this issue Oct 12, 2024 · 0 comments

Comments

@jochemstoel
Copy link

Hi, thanks for creating this repo. I need additional methods for: extend, negative tags, cover and upload.

Implementing negative tags (exclude style) is easy, just add a property negative_tags to your HTTP request payload.
Extend is easy too, all you need to do is provide the ID of the song you want to extend.

I have been investigating the suno.com website but I haven't found the right way yet to "cover" an audio. This is a new feature on their platform. I assume it also required a track id.

Lastly, I haven;t been able to upload my audio files to Suno yet. I have found so far that when you upload a file on the suno website, it sends a request to /audio with a payload of:

{
    "extension": "wav"
}

This will respond with:

{
    "id": "11b10f4c-6bf9-499b-8d49-f7bc4661bfcb",
    "url": "https://suno-uploads.s3.amazonaws.com/",
    "fields": {
        "Content-Type": "audio/wav",
        "key": "raw_uploads/11b10f4c-6bf9-499b-8d49-f7bc4661bfcb.wav",
        "AWSAccessKeyId": "...",
        "policy": "...",
        "signature": "..."
    },
    "is_file_uploaded": false
}

Then you need to request https://suno-uploads.s3.amazonaws.com/raw_uploads%2F11b10f4c-6bf9-499b-8d49-f7bc4661bfcb.wav (response.url + fields.key) and provide the file as payload.

Then a response comes from /upload-finish from Suno, followed by responses with progress indicators of the audio processing. For example:

{
    "id": "11b10f4c-6bf9-499b-8d49-f7bc4661bfca",
    "status": "processing",
    "title": ""
}

But I get stuck on the uploading file to amazon. Authentication errors etcetera. Can you implement these features?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant