Skip to content

Commit de3b4d0

Browse files
author
Zenflow
committed
refactor: save ep{N}_stripped.mp3 in whisper_cache alongside w files
1 parent 3513f48 commit de3b4d0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/podcast_to_moshi_dataset.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,8 @@ def step3_cut(ep_num: int, mp3_path: str, aligned: list) -> None:
692692
and makes step 3 independently reproducible from the w2uncut cache.
693693
694694
Saves:
695-
ep{N}_stripped.mp3 — raw MP3 with intro/ads removed
696-
whisper_cache/ep{N}_w2.json — in-transcript words at stripped-MP3 timestamps
695+
whisper_cache/ep{N}_stripped.mp3 — raw MP3 with intro/ads removed
696+
whisper_cache/ep{N}_w2.json — in-transcript words at stripped-MP3 timestamps
697697
"""
698698
MIN_AD_GAP = 8.0 # seconds — same threshold as step 2
699699

@@ -747,7 +747,7 @@ def step3_cut(ep_num: int, mp3_path: str, aligned: list) -> None:
747747
f"{total_keep:.0f}s total content", flush=True)
748748

749749
# ── Build stripped MP3 ────────────────────────────────────────────────────
750-
stripped_path = os.path.join(AUDIO_DIR, f"ep{ep_num}_stripped.mp3")
750+
stripped_path = os.path.join(WHISPER_CACHE, f"ep{ep_num}_stripped.mp3")
751751
_build_stripped_mp3(mp3_path, keep_regions, stripped_path)
752752
print(f" step3: stripped MP3 saved → {stripped_path}", flush=True)
753753

@@ -830,7 +830,7 @@ def step4_verify(ep_num: int) -> None:
830830
300 ms, mean < 50 ms). Any systematic deviation points to a bug in the
831831
gap-cut boundaries or the timestamp-adjustment logic in step 3.
832832
"""
833-
stripped_path = os.path.join(AUDIO_DIR, f"ep{ep_num}_stripped.mp3")
833+
stripped_path = os.path.join(WHISPER_CACHE, f"ep{ep_num}_stripped.mp3")
834834
w2_path = os.path.join(WHISPER_CACHE, f"ep{ep_num}_w2.json")
835835
w3_path = os.path.join(WHISPER_CACHE, f"ep{ep_num}_w3.json")
836836

0 commit comments

Comments
 (0)