Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files- infertest.py +0 -8
infertest.py
CHANGED
|
@@ -21,15 +21,7 @@ import os
|
|
| 21 |
import werkzeug
|
| 22 |
from pydub import AudioSegment
|
| 23 |
|
| 24 |
-
# Load the audio files
|
| 25 |
-
vocal = AudioSegment.from_file("vocal_path.wav")
|
| 26 |
-
instrumental = AudioSegment.from_file("inst_path.wav")
|
| 27 |
|
| 28 |
-
# Overlay the vocal track on top of the instrumental track
|
| 29 |
-
combined = vocal.overlay(instrumental)
|
| 30 |
-
|
| 31 |
-
# Export the result
|
| 32 |
-
combined.export("output/result/combine.mp3", format="mp3")
|
| 33 |
|
| 34 |
app = Flask(__name__)
|
| 35 |
|
|
|
|
| 21 |
import werkzeug
|
| 22 |
from pydub import AudioSegment
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
app = Flask(__name__)
|
| 27 |
|