whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Option to store output in the same format that gets logged to console

Open stevennyman opened this issue 1 year ago • 2 comments

I like the timestamp/transcription format that is used when logging transcriptions to the console, would it be possible to add an option to save that output format to a file (aside from simply redirecting the command output to a file)?

Also, I like the accuracy colors but that wouldn't be possible to save in a text file. Perhaps HTML could be an option, but I imagine storing the formatting data would be somewhat inefficient in terms of space usage.

stevennyman avatar Feb 16 '23 22:02 stevennyman

@stevennyman

Try appending " | tee outfilename " to your "main" command. You'll get a file with the console output (stdout) without all the technical output (stderr) from "main".

indokid9999 avatar Feb 22 '23 04:02 indokid9999

Works on Windows using PowerShell, thanks for the tip @indokid9999 !

I can view the colors using VSCode with the ANSI Colors extension.

stevennyman avatar Feb 23 '23 06:02 stevennyman

Transcription Log

[TIMESTAMP] [TRANSCRIPTION]

Replace [TIMESTAMP] and [TRANSCRIPTION] with your actual timestamp and transcription data. You can expand this structure to include multiple entries.

tigerwagh avatar Nov 29 '23 06:11 tigerwagh