-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
Extend, Cover, Negative Tags and Upload (with progress) #184
Comments
Hey, are the cookies working for you, Joch? Can't seem to make it work, having the "Internal server error. Error: Failed to get session id, you may need to update the SUNO_COOKIE". |
@uisato It works fine for me. I think what you are doing wrong is you're using the value stored in your document.cookie. The best way is to grab it in the way demonstrated in the network tab. If you do not get any results in sources when you type "clerk" into search or look for it, refresh the page with the devtools already open. My issue however was about adding features, if you have cookie problems then ask your question where it is relevant please. |
Hey Jochem. Thank you for the replay. I know this is completely OT, but can't seem to get any response outside.
I'm using the apparently correct value, as shown in the GIF. Nevertheless, it has a different structure now, and I've tested several ways to extract the cookie, with no success.
Would you be so kind to show me what value are you succesfully using as a cookie? Here's a screenshot of mine.
PS: Thanks again, and sorry for the brief OT.
…________________________________
De: Jochem Stoel ***@***.***>
Enviado: domingo, 10 de noviembre de 2024 16:05
Para: gcui-art/suno-api ***@***.***>
Cc: uisato ***@***.***>; Mention ***@***.***>
Asunto: Re: [gcui-art/suno-api] Extend, Cover, Negative Tags and Upload (with progress) (Issue #184)
@uisato<https://github.com/uisato> It works fine for me. I think what you are doing wrong is you're using the value stored in your document.cookie. The best way is to grab it in the way demonstrated in the network tab. If you do not get any results in sources when you type "clerk" into search or look for it, refresh the page with the devtools already open.
My issue however was about adding features, if you have cookie problems then ask your question where it is relevant please.
—
Reply to this email directly, view it on GitHub<#184 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJCRRG6BKOA6S65LM33WRDZ75YZ5AVCNFSM6AAAAABRG32HP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRWG43DSNJZHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sorry, here's the screenshot.
…________________________________
De: Jochem Stoel ***@***.***>
Enviado: domingo, 10 de noviembre de 2024 16:05
Para: gcui-art/suno-api ***@***.***>
Cc: uisato ***@***.***>; Mention ***@***.***>
Asunto: Re: [gcui-art/suno-api] Extend, Cover, Negative Tags and Upload (with progress) (Issue #184)
@uisato<https://github.com/uisato> It works fine for me. I think what you are doing wrong is you're using the value stored in your document.cookie. The best way is to grab it in the way demonstrated in the network tab. If you do not get any results in sources when you type "clerk" into search or look for it, refresh the page with the devtools already open.
My issue however was about adding features, if you have cookie problems then ask your question where it is relevant please.
—
Reply to this email directly, view it on GitHub<#184 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJCRRG6BKOA6S65LM33WRDZ75YZ5AVCNFSM6AAAAABRG32HP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRWG43DSNJZHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@ajayarora1235 As far as I know, this package suno-api does not work anymore and is not going to be fixed either. Suno is also actively trying to stop third party wrapper APIs. If you want an API for Suno, best thing you can probably do is use something like puppeteer or some other headless browser to create your own API like I did. Either by reverse engineering the HTTP traffic being done in the page, or automating user interaction. |
@jochemstoel It works. I have implemented browser automation. Please check it again and re-open this issue, as this is still not implemented. |
@gohoski My sincere apologies. I used to check this repository often and the last times I checked it didn't work anymore and everybody was explaining it was for the reasons I mentioned. I have reopened the issue. (Also, I am looking for someone who can do the same thing for Udio. Is that you?) |
I'm looking for the exact same thing. Tried Selenium and a few other tools for automation purposes, with no success so far.
…________________________________
De: Jochem Stoel ***@***.***>
Enviado: lunes, 10 de febrero de 2025 13:20
Para: gcui-art/suno-api ***@***.***>
Cc: uisato ***@***.***>; Mention ***@***.***>
Asunto: Re: [gcui-art/suno-api] Extend, Cover, Negative Tags and Upload (with progress) (Issue #184)
@gohoski<https://github.com/gohoski> My sincere apologies. I used to check this repository often and the last times I checked it didn't work anymore and everybody was explaining it was for the reasons I mentioned. I have reopened the issue.
(Also, I am looking for someone who can do the same thing for Udio. Is that you?)
—
Reply to this email directly, view it on GitHub<#184 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJCRRECUWHYUPKU4DONL4T2PDGV5AVCNFSM6AAAAABRG32HP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBYGU3DQNJQGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@uisato With udio? I have made some progress using puppeteer. I am not nearly finished implementing all the settings and parameters for song generation, or any of the remix/extend features but it successfully generates a track based on a prompt, starts a start at least. |
That's great. I tried puppeteer with no success aswell. Would you be able to share the code with me? It's for an AV experiment I'm trying to run. You can reach me through https://www.instagram.com/uisato_
Enviado desde Outlook para Android<https://aka.ms/AAb9ysg>
…________________________________
From: Jochem Stoel ***@***.***>
Sent: Saturday, February 15, 2025 4:48:20 AM
To: gcui-art/suno-api ***@***.***>
Cc: uisato ***@***.***>; Mention ***@***.***>
Subject: Re: [gcui-art/suno-api] Extend, Cover, Negative Tags and Upload (with progress) (Issue #184)
@uisato<https://github.com/uisato> With udio? I have made some progress using puppeteer. I am not nearly finished implementing all the settings and parameters for song generation, or any of the remix/extend features but it successfully generates a track based on a prompt, starts a start at least.
—
Reply to this email directly, view it on GitHub<#184 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJCRRABECTDZZPQ6JXOZL32P3WMJAVCNFSM6AAAAABRG32HP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRQG44TOMZZGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
[jochemstoel]jochemstoel left a comment (gcui-art/suno-api#184)<#184 (comment)>
@uisato<https://github.com/uisato> With udio? I have made some progress using puppeteer. I am not nearly finished implementing all the settings and parameters for song generation, or any of the remix/extend features but it successfully generates a track based on a prompt, starts a start at least.
—
Reply to this email directly, view it on GitHub<#184 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJCRRABECTDZZPQ6JXOZL32P3WMJAVCNFSM6AAAAABRG32HP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRQG44TOMZZGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@uisato Sorry I don't use Instagram. Discord perhaps? jochemstoel (351027727584985088) |
Hi, thanks for creating this repo. I need additional methods for: cover and upload, and parameter: negative_tags.
I have already done some research.
Implementing negative tags (exclude style) is easy, just add a property negative_tags to your HTTP request payload. This will work.
Extend is easy too, all you need to do is provide the ID of the song you want to extend.Update: you have already implemented extend function, it will work the same with uploads (provide audio ID) but no uploads are supported yet.
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, trying to update your repository, 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:
This will respond with:
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:
But I get stuck on the uploading file to amazon. Authentication errors etcetera. Can you implement these features? I hope some of my findings are useful.
Update: there exists now the option to save the profile of a voice as a "persona". This is a very easy to implement endpoint too.
The text was updated successfully, but these errors were encountered: