bartman081523
commited on
Commit
·
11d3126
1
Parent(s):
9e479ab
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def convert_to_wav(data, sample_rate):
|
|
62 |
|
63 |
return temp_file
|
64 |
|
65 |
-
|
66 |
data, sample_rate = generate_vinyl_sound(noise_ratio, lowcut, highcut, duration, pop_rate)
|
67 |
temp_file = convert_to_wav(data, sample_rate)
|
68 |
return temp_file, temp_file
|
|
|
62 |
|
63 |
return temp_file
|
64 |
|
65 |
+
def play_and_download_sound(noise_ratio, lowcut, highcut, duration, pop_rate):
|
66 |
data, sample_rate = generate_vinyl_sound(noise_ratio, lowcut, highcut, duration, pop_rate)
|
67 |
temp_file = convert_to_wav(data, sample_rate)
|
68 |
return temp_file, temp_file
|