This commit is contained in:
litagin02
2024-01-04 20:25:45 +09:00
parent c7571a7c39
commit ffe69f0da3
11 changed files with 144 additions and 198 deletions

View File

@@ -1,5 +1,6 @@
import argparse
import os
import sys
from faster_whisper import WhisperModel
from tqdm import tqdm
@@ -79,3 +80,4 @@ if __name__ == "__main__":
text = transcribe(wav_file, initial_prompt=initial_prompt)
f.write(f"{file_name}|{speaker_name}|{language}|{text}\n")
f.flush()
sys.exit(0)