From cfa4cc9878d890164eaf62a8b0d3f2295fb65f88 Mon Sep 17 00:00:00 2001 From: Plachta Date: Thu, 23 Feb 2023 17:15:14 +0800 Subject: [PATCH] upload files --- whisper_transcribe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whisper_transcribe.py b/whisper_transcribe.py index b401c49..3bd1f1d 100644 --- a/whisper_transcribe.py +++ b/whisper_transcribe.py @@ -2,7 +2,7 @@ import whisper import os import torchaudio import json -import text + lang2token = { 'zh': "[ZH]", 'ja': "[JA]", @@ -63,6 +63,7 @@ if __name__ == "__main__": continue # clean annotation + import text cleaned_speaker_annos = [] for i, line in enumerate(speaker_annos): path, sid, txt = line.split("|")