Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get transcription in a text file #46

Open
brookesrook opened this issue Dec 28, 2023 · 3 comments
Open

How to get transcription in a text file #46

brookesrook opened this issue Dec 28, 2023 · 3 comments

Comments

@brookesrook
Copy link

Maybe I'm missing the obvious, is there a way to export the transcription into a text file/log? Also are there other arguments that can be inserted to date/time stamp each entry?

@davabase
Copy link
Owner

If you look at transcribe_demo.py, you can see that we append each transcribed line to a list, and then print each line from the list to the terminal. If you want to write it out to a file instead, you will have to do something like:

with open('file.txt', 'w+') as f:
    f.write('\n'.join(transcription))

This simple project does not support timestamps, it's just an example for others to learn from. If you want timestamps you are going to have to try WhisperX or similar.

@brookesrook
Copy link
Author

Thank you~ I'll give that a try.

@tisaconundrum2
Copy link

You could additionally do a timestamp like implementation by measuring the time since the start of the script and at each interval it prints out the time diff since start of the script. It's kind of hacky doing it this way, but it's a possible direction you could go with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants