Spaces:
Running
Running
Commit
·
1ce1efd
1
Parent(s):
961a3d4
minor fixes
Browse files
app.py
CHANGED
@@ -140,16 +140,18 @@ def process(
|
|
140 |
|
141 |
start = time.time()
|
142 |
|
|
|
|
|
|
|
|
|
143 |
sd = get_speaker_diarization(
|
144 |
segmentation_model=speaker_segmentation_model,
|
145 |
embedding_model=embedding_model,
|
146 |
num_clusters=input_num_speakers,
|
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:
|
|
|
140 |
|
141 |
start = time.time()
|
142 |
|
143 |
+
audio, sample_rate = read_wave(filename)[0]
|
144 |
+
|
145 |
+
MyPrint("audio", audio.shape)
|
146 |
+
|
147 |
sd = get_speaker_diarization(
|
148 |
segmentation_model=speaker_segmentation_model,
|
149 |
embedding_model=embedding_model,
|
150 |
num_clusters=input_num_speakers,
|
151 |
threshold=input_threshold,
|
152 |
)
|
153 |
+
MyPrint(audio.shape / sd.sample_rate, sample_rate)
|
154 |
|
|
|
|
|
|
|
155 |
segments = sd.process(audio).sort_by_start_time()
|
156 |
s = ""
|
157 |
for seg in segments:
|