Spaces:
Running
Running
Commit
·
7b6b2a3
1
Parent(s):
83de68d
minor fixes
Browse files
app.py
CHANGED
@@ -147,8 +147,9 @@ def process(
|
|
147 |
threshold=input_threshold,
|
148 |
)
|
149 |
|
150 |
-
audio = read_wave(filename)[0]
|
151 |
-
|
|
|
152 |
segments = sd.process(audio).sort_by_start_time()
|
153 |
s = ""
|
154 |
for seg in segments:
|
|
|
147 |
threshold=input_threshold,
|
148 |
)
|
149 |
|
150 |
+
audio, sample_rate = read_wave(filename)[0]
|
151 |
+
|
152 |
+
print("audio", audio.shape, audio.shape / sd.sample_rate, sample_rate)
|
153 |
segments = sd.process(audio).sort_by_start_time()
|
154 |
s = ""
|
155 |
for seg in segments:
|