From d28b036e773df822cb0139789fb4b024a0f47eaa Mon Sep 17 00:00:00 2001 From: Kuang Ru Date: Tue, 31 Oct 2023 10:09:24 +0800 Subject: [PATCH] fix speaker error --- lhotse/recipes/stcmds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lhotse/recipes/stcmds.py b/lhotse/recipes/stcmds.py index 3d1903729..ae46fc905 100644 --- a/lhotse/recipes/stcmds.py +++ b/lhotse/recipes/stcmds.py @@ -104,7 +104,7 @@ def prepare_stcmds( supervisions = [] for audio_path in path.rglob("**/*.wav"): idx = audio_path.stem - speaker = "".join(list(idx)[8:14]) + speaker = "".join(list(idx)[8:15]) if idx not in transcript_dict: logging.warning(f"No transcript: {idx}") logging.warning(f"{audio_path} has no transcript")