end of lyricks and misic generation

This commit is contained in:
Thomas Demirdjian
2025-08-26 13:45:50 +02:00
parent 2a34e9d547
commit 0ca7544005
14 changed files with 641 additions and 375 deletions
+18 -4
View File
@@ -119,8 +119,15 @@ const CreatingSong = ({ active, config }) => {
{
sunoTaskId: taskId,
musicStatus: "GENERATING",
generationStartAt:
firebase.firestore.FieldValue.serverTimestamp(),
musicConfig: {
title: config?.title || "",
lyrics: config?.lyrics || [],
genres: config?.genres || [],
voice: config?.voice || "",
instruments: config?.instruments || [],
tempo: config?.tempo || "",
},
generationStartAt: firebase.firestore.FieldValue.serverTimestamp(),
updatedAt: firebase.firestore.FieldValue.serverTimestamp(),
},
{ merge: true }
@@ -221,12 +228,19 @@ const CreatingSong = ({ active, config }) => {
</Text>
</View>
<GradientButton
title="Découvrir ma musique"
title={
musicStatus === "GENERATING"
? "Création en cours..."
: "Découvrir ma musique"
}
disabled={musicStatus === "GENERATING"}
containerStyle={{
width: "80%",
alignSelf: "center",
}}
onPress={() => navigate(Routes.SongReady, { result })}
onPress={() =>
navigate(Routes.SongReady, { projectId: config?.projectId })
}
/>
</View>
</BlurView>