Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def segment_audio(audio, sr, segment_duration):
|
|
51 |
# if the segment is shorter than 0.7s, skip it to avoid complications inside wav2vec2
|
52 |
if len(seg) > 0.7 * sr:
|
53 |
segments_check.append(seg)
|
54 |
-
|
55 |
|
56 |
def process_audio(input_data, segment_duration=10):
|
57 |
audio, sr = librosa.load(input_data, sr=16000)
|
|
|
51 |
# if the segment is shorter than 0.7s, skip it to avoid complications inside wav2vec2
|
52 |
if len(seg) > 0.7 * sr:
|
53 |
segments_check.append(seg)
|
54 |
+
return segments_check
|
55 |
|
56 |
def process_audio(input_data, segment_duration=10):
|
57 |
audio, sr = librosa.load(input_data, sr=16000)
|