Skip to content

Commit

Permalink
insert debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
Jemoka committed May 21, 2024
1 parent 0a29c0c commit 80b57c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
15 changes: 9 additions & 6 deletions batchalign/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,22 @@ def transcribe(ctx, in_dir, out_dir, lang, num_speakers, **kwargs):
def loader(file):
return file

asr = "rev"
if kwargs["whisper"]:
asr = "whisper"
if kwargs["whisperx"]:
asr = "whisperx"


def writer(doc, output):
doc.content.insert(0, CustomLine(id="Comment", type=CustomLineType.INDEPENDENT,
content=f"Batchalign {VERSION_NUMBER.strip()}, ASR Engine {asr}"))
CHATFile(doc=doc, special_mor_=True).write(output
.replace(".wav", ".cha")
.replace(".mp4", ".cha")
.replace(".mp3", ".cha"),
write_wor=kwargs.get("wor", False))

asr = "rev"
if kwargs["whisper"]:
asr = "whisper"
if kwargs["whisperx"]:
asr = "whisperx"

if kwargs.get("diarize"):
_dispatch("transcribe_s",
lang, num_speakers, ["mp3", "mp4", "wav"], ctx,
Expand Down
6 changes: 3 additions & 3 deletions batchalign/version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
0.7.1-beta.6
May 17th, 2024
remove Hebrew for UD
0.7.1-beta.7
May 21st, 2024
insert debug info to transcribe file

0 comments on commit 80b57c3

Please sign in to comment.