Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ notes = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]
|
|
5 |
|
6 |
def generate_tone(note, octave, duration):
|
7 |
wav_file_path = "14763.wav"
|
8 |
-
|
9 |
|
10 |
-
return
|
11 |
|
12 |
demo = gr.Interface(
|
13 |
generate_tone,
|
|
|
5 |
|
6 |
def generate_tone(note, octave, duration):
|
7 |
wav_file_path = "14763.wav"
|
8 |
+
sr, audio_data = wavfile.read(wav_file_path)
|
9 |
|
10 |
+
return sr, audio_data
|
11 |
|
12 |
demo = gr.Interface(
|
13 |
generate_tone,
|