Upload app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import soundfile as sf
|
|
| 4 |
import tempfile
|
| 5 |
import os
|
| 6 |
from utils.noise_removal import remove_noise
|
| 7 |
-
from utils.vad_segmentation import
|
| 8 |
from utils.speaker_diarization import diarize_speakers
|
| 9 |
from utils.noise_classification import classify_noise
|
| 10 |
|
|
@@ -26,7 +26,7 @@ if uploaded_file:
|
|
| 26 |
st.audio(denoised_path, format="audio/wav")
|
| 27 |
|
| 28 |
st.subheader("2️⃣ Speech Segmentation")
|
| 29 |
-
speech_segments =
|
| 30 |
st.write(f"Detected {len(speech_segments)} speech segments.")
|
| 31 |
for i, (start, end) in enumerate(speech_segments[:5]):
|
| 32 |
st.write(f"Segment {i+1}: {start:.2f}s to {end:.2f}s")
|
|
|
|
| 4 |
import tempfile
|
| 5 |
import os
|
| 6 |
from utils.noise_removal import remove_noise
|
| 7 |
+
from utils.vad_segmentation import vad_segmentation
|
| 8 |
from utils.speaker_diarization import diarize_speakers
|
| 9 |
from utils.noise_classification import classify_noise
|
| 10 |
|
|
|
|
| 26 |
st.audio(denoised_path, format="audio/wav")
|
| 27 |
|
| 28 |
st.subheader("2️⃣ Speech Segmentation")
|
| 29 |
+
speech_segments = vad_segmentation(denoised_path)
|
| 30 |
st.write(f"Detected {len(speech_segments)} speech segments.")
|
| 31 |
for i, (start, end) in enumerate(speech_segments[:5]):
|
| 32 |
st.write(f"Segment {i+1}: {start:.2f}s to {end:.2f}s")
|