Spaces:
Sleeping
Sleeping
satish99017
commited on
Commit
•
8c469ef
1
Parent(s):
daba0a1
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,11 @@ audio = audiorecorder("Click to record", "Click to stop recording")
|
|
16 |
|
17 |
if len(audio) > 0:
|
18 |
temp_dir = tempfile.mkdtemp()
|
19 |
-
temp_file_path = os.path.join(temp_dir, 'temp_audio.
|
20 |
-
audio.export(temp_file_path, format="
|
|
|
|
|
|
|
21 |
|
22 |
|
23 |
|
|
|
16 |
|
17 |
if len(audio) > 0:
|
18 |
temp_dir = tempfile.mkdtemp()
|
19 |
+
temp_file_path = os.path.join(temp_dir, 'temp_audio.wav')
|
20 |
+
audio.export(temp_file_path, format=".wav")
|
21 |
+
|
22 |
+
song = AudioSegment.from_wav("temp_audio.wav")
|
23 |
+
song.export("temp_audio", format = "flac")
|
24 |
|
25 |
|
26 |
|