Update app.py
Browse files
app.py
CHANGED
|
@@ -92,6 +92,14 @@ def process_text_to_singing(text, voice_type="neutral", tempo=100, pitch_shift=0
|
|
| 92 |
# Step 5: Generate musical accompaniment based on mood
|
| 93 |
accompaniment_path = "temp_accompaniment.wav"
|
| 94 |
generate_accompaniment(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
emotion=dominant_emotion,
|
| 96 |
sentiment_score=sentiment_score,
|
| 97 |
tempo=tempo,
|
|
|
|
| 92 |
# Step 5: Generate musical accompaniment based on mood
|
| 93 |
accompaniment_path = "temp_accompaniment.wav"
|
| 94 |
generate_accompaniment(
|
| 95 |
+
lyrics,
|
| 96 |
+
melody_path,
|
| 97 |
+
output_path="output_accompaniment.mid",
|
| 98 |
+
tempo_value=120,
|
| 99 |
+
key="C",
|
| 100 |
+
time_signature="4/4",
|
| 101 |
+
style="pop",
|
| 102 |
+
emotion=None
|
| 103 |
emotion=dominant_emotion,
|
| 104 |
sentiment_score=sentiment_score,
|
| 105 |
tempo=tempo,
|