gcui-art / suno-api

Use API to call the music generation AI of suno.ai, and easily integrate it into agents like GPTs.
https://suno.gcui.ai
GNU Lesser General Public License v3.0
886 stars 197 forks source link

Suno API + VoiceFlow #37

Closed The-Digital-TeeJay closed 2 months ago

The-Digital-TeeJay commented 2 months ago

I'm trying to implement this API in a chatbot I made with voiceflow. The idea is that after the user provides information about him, a prompt is sent to the suno API to create a song with this information, specific to each user. My problem is being in the answer, how to get the url of the user-generated song to be placed directly as a chatbot response to the user - i think i'm having parameters problem here, but i really can't understand what - bc it isn't showing any error, but the response is always "0" when it was to be the url for the music.

Captura de tela_15-4-2024_123939_creator voiceflow com

Captura de tela_15-4-2024_124045_creator voiceflow com

PS: And i'm having error when setting true "waiting_audio" :

"error": { "code": "504", "message": "An error occurred with your deployment" } } Response headers cache-control: public,max-age=0,must-revalidate content-length: 79 content-type: application/json date: Mon,15 Apr 2024 14:39:30 GMT server: Vercel strict-transport-security: max-age=63072000; includeSubDomains; preload x-matched-path: /api/generate x-vercel-error: FUNCTION_INVOCATION_TIMEOUT x-vercel-id: gru1::5qh7t-1713191959378-e60f698c9961 "