Spaces:
Sleeping
Sleeping
Update app/app.py
Browse filesadd sample_rate to board()
- app/app.py +1 -1
app/app.py
CHANGED
@@ -134,7 +134,7 @@ st.audio(audio_bytes, format='audio/ogg')
|
|
134 |
audio, sample_rate = sf.read('./example.wav')
|
135 |
# board = Pedalboard(get_transforms(), sample_rate=sample_rate)
|
136 |
board = Pedalboard(get_transforms())
|
137 |
-
effected = board(audio)
|
138 |
|
139 |
# Write the audio back as a wav file:
|
140 |
with sf.SoundFile('./outputs.wav', 'w', samplerate=sample_rate, channels=len(effected.shape)) as f:
|
|
|
134 |
audio, sample_rate = sf.read('./example.wav')
|
135 |
# board = Pedalboard(get_transforms(), sample_rate=sample_rate)
|
136 |
board = Pedalboard(get_transforms())
|
137 |
+
effected = board(audio,sample_rate)
|
138 |
|
139 |
# Write the audio back as a wav file:
|
140 |
with sf.SoundFile('./outputs.wav', 'w', samplerate=sample_rate, channels=len(effected.shape)) as f:
|