Tweak log messages

This commit is contained in:
ChaoticByte 2024-08-13 21:37:11 +02:00
parent 27ee9a7d8b
commit d610db1dd4
No known key found for this signature in database

View file

@ -84,15 +84,15 @@ if __name__ == "__main__":
converted_audio_path = (Path(d) / "audio.wav").__str__() converted_audio_path = (Path(d) / "audio.wav").__str__()
transcript_path = (Path(d) / "transcript.txt").__str__() transcript_path = (Path(d) / "transcript.txt").__str__()
# convert using ffmpeg # convert using ffmpeg
print("* Converting media to 16kHz 16bit mono WAV") print("* Converting media to the correct format ...")
convert_audio(args.i.__str__(), converted_audio_path) convert_audio(args.i.__str__(), converted_audio_path)
# transcribe # transcribe
print("* Transcribing audio") print("* Transcribing audio ...")
transcribe(args.m.__str__(), converted_audio_path, transcript_path) transcribe(args.m.__str__(), converted_audio_path, transcript_path)
# read transcript # read transcript
text = Path(transcript_path).read_text() text = Path(transcript_path).read_text()
# cleanup text & summarize # cleanup text & summarize
print("* Summarizing transcript") print("* Summarizing transcript ...")
text = cleanup_text(text) text = cleanup_text(text)
chunks = split_text(text, args.segmax) chunks = split_text(text, args.segmax)
summary = summarize(chunks, args.summin, args.summax) summary = summarize(chunks, args.summin, args.summax)