Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
from nemo.collections.asr.parts.utils.speaker_utils import (
audio_rttm_map,
get_uniqname_from_filepath,
timestamps_to_pyannote_object,
timestamps_to_supervisions,
)
from nemo.collections.asr.parts.utils.transcribe_utils import read_and_maybe_sort_manifest
from nemo.collections.asr.parts.utils.vad_utils import (
Expand Down Expand Up @@ -274,9 +274,9 @@ def convert_pred_mat_to_segments(
bypass_postprocessing (bool, optional): if True, postprocessing will be bypassed. Defaults to False.

Returns:
all_hypothesis (list): list of pyannote objects for each audio file.
all_reference (list): list of pyannote objects for each audio file.
all_uems (list): list of pyannote objects for each audio file.
all_hypothesis (list): list of (uniq_id, list[SupervisionSegment]) per audio file.
all_reference (list): list of (uniq_id, list[SupervisionSegment]) per audio file.
all_uems (list): list of (uniq_id, list[SupervisionSegment]) per audio file.
"""
all_hypothesis, all_reference, all_uems = [], [], []
cfg_vad_params = OmegaConf.structured(postprocessing_cfg)
Expand All @@ -294,7 +294,7 @@ def convert_pred_mat_to_segments(
uniq_id = audio_rttm_values["uniq_id"]
else:
uniq_id = get_uniqname_from_filepath(audio_rttm_values["audio_filepath"])
all_hypothesis, all_reference, all_uems = timestamps_to_pyannote_object(
all_hypothesis, all_reference, all_uems = timestamps_to_supervisions(
speaker_timestamps,
uniq_id,
audio_rttm_values,
Expand Down
3 changes: 0 additions & 3 deletions examples/voice_agent/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ dependencies:
- pulp==3.3.0
- pure-eval==0.2.3
- py-cpuinfo==9.0.0
- pyannote-core==5.0.0
- pyannote-database==5.1.3
- pyannote-metrics==3.2.1
- pyarrow==21.0.0
- pybase64==1.4.2
- pybind11==3.0.1
Expand Down
Loading
Loading