Knight-coderr commited on
Commit
1188ffd
·
verified ·
1 Parent(s): 335eff1

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 detect_speech_segments
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 = detect_speech_segments(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")
 
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")