Skip to content

Commit

Permalink
Update test-my-ai-music.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizwar authored May 26, 2024
1 parent a71ffa0 commit 24a5480
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions test-my-ai-music.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@

//import SunoDeno from "./src/SunoDeno.js";
import SunoDeno from "./src/SunoDeno.js";

import SunoDeno from 'suno-deno';
//nodejs npm
//import SunoDeno from 'suno-deno';
//if deno land
//import SunoDeno from 'https://unpkg.com/suno-deno';
//or
//import SunoDeno from 'npm:suno-deno';

async function main(sid, cookie) {
try {
Expand Down Expand Up @@ -69,17 +74,15 @@ async function main(sid, cookie) {
const ids = ["7cfa03c5-56bb-4eaa-b5e8-84cf0592da9b"];
const specificSongs = await suno.getMetadata(ids);

// const allSongs = await suno.getAllSongs();

// const lyrics = await suno.generateLyrics("حول مدينة مراكش");
// console.log(lyrics);
const allSongs = await suno.getAllSongs();
console.log({allSongs});
const lyrics = await suno.generateLyrics("حول مدينة مراكش");
console.log(lyrics);
} catch (error) {
console.error("Error:", error);
}
}

const cookie =
"__client=eyJhbbEg";
const sid = "sess_2gyfPonaEsXq";

const cookie = '__client=j2s-******3qDO5-';
const sid = 'sess_2*****sXq';
main(sid, cookie);

0 comments on commit 24a5480

Please sign in to comment.