upload files
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import whisper
|
import whisper
|
||||||
import os
|
import os
|
||||||
import torchaudio
|
import torchaudio
|
||||||
|
import text
|
||||||
lang2token = {
|
lang2token = {
|
||||||
'zh': "[ZH]",
|
'zh': "[ZH]",
|
||||||
'ja': "[JA]",
|
'ja': "[JA]",
|
||||||
@@ -63,9 +63,6 @@ if __name__ == "__main__":
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# clean annotation
|
# clean annotation
|
||||||
import argparse
|
|
||||||
import text
|
|
||||||
from utils import load_filepaths_and_text
|
|
||||||
for i, line in enumerate(speaker_annos):
|
for i, line in enumerate(speaker_annos):
|
||||||
path, sid, txt = line.split("|")
|
path, sid, txt = line.split("|")
|
||||||
cleaned_text = text._clean_text(txt, ["cjke_cleaners2"])
|
cleaned_text = text._clean_text(txt, ["cjke_cleaners2"])
|
||||||
|
|||||||
Reference in New Issue
Block a user