From 66d4920e69e613d6f2f1e281fbed60986a3a8d79 Mon Sep 17 00:00:00 2001 From: Plachta Date: Thu, 23 Feb 2023 14:31:34 +0800 Subject: [PATCH] upload files --- whisper_transcribe.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/whisper_transcribe.py b/whisper_transcribe.py index 582ea7a..6356734 100644 --- a/whisper_transcribe.py +++ b/whisper_transcribe.py @@ -1,7 +1,7 @@ import whisper import os import torchaudio - +import text lang2token = { 'zh': "[ZH]", 'ja': "[JA]", @@ -63,9 +63,6 @@ if __name__ == "__main__": continue # clean annotation - import argparse - import text - from utils import load_filepaths_and_text for i, line in enumerate(speaker_annos): path, sid, txt = line.split("|") cleaned_text = text._clean_text(txt, ["cjke_cleaners2"])