Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from scipy.io.wavfile import write
|
|
10 |
|
11 |
|
12 |
@st.cache_data
|
13 |
-
def np_to_wav(waveform: np.
|
14 |
bytes_wav = bytes()
|
15 |
byte_io = io.BytesIO(bytes_wav)
|
16 |
write(byte_io, sample_rate, waveform.T)
|
|
|
10 |
|
11 |
|
12 |
@st.cache_data
|
13 |
+
def np_to_wav(waveform: np.ndarray, sample_rate: int) -> bytes:
|
14 |
bytes_wav = bytes()
|
15 |
byte_io = io.BytesIO(bytes_wav)
|
16 |
write(byte_io, sample_rate, waveform.T)
|