Spaces:
Sleeping
Sleeping
NonameSsSs
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -10,6 +10,8 @@ def generate_tone(note, octave, duration):
|
|
10 |
duration = int(duration)
|
11 |
audio = np.linspace(0, duration, duration * sr)
|
12 |
audio = (20000 * np.sin(audio * (2 * np.pi * frequency))).astype(np.int16)
|
|
|
|
|
13 |
|
14 |
demo = gr.Interface(
|
15 |
generate_tone,
|
|
|
10 |
duration = int(duration)
|
11 |
audio = np.linspace(0, duration, duration * sr)
|
12 |
audio = (20000 * np.sin(audio * (2 * np.pi * frequency))).astype(np.int16)
|
13 |
+
return sr, audio
|
14 |
+
|
15 |
|
16 |
demo = gr.Interface(
|
17 |
generate_tone,
|