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

Is it possible to add transcribed text to a file in real time? #71

Closed
MargaShilo opened this issue Dec 3, 2023 · 3 comments
Closed
Labels
Feature Request New feature or request

Comments

@MargaShilo
Copy link

No description provided.

@makaveli10
Copy link
Collaborator

With the python client? Yes. The server sends a list of last 10 segments to the client which has the timestamps for each segment. That can be used in python client to write the transcriptions in the required format to a file.

@makaveli10 makaveli10 added the Feature Request New feature or request label Jan 19, 2024
@JJJHolscher
Copy link

JJJHolscher commented Jan 19, 2024

Doing python your_client.py > transcription.txt does get your transcription to a file, though you can only view the transcription after you've exited the client (and there are a bunch of ugly symbols at the start of your file).
python your_client.py | tee -i transcription.txt sadly does not get you the transcriptions live. This has probably to do with flushing working differently for piped programs. For now I just set that print(element) to print(element, flush=True) and then tee does bring use. The transcription file does get all the half-formed sentences (and ugly clear-terminal symbols) though, so there is a lot of duplication.

It does not seem straightforward to remove that duplication since the code is not keeping track of the last message received so that can be written down when the sentence is no longer being edited. This seems possible, but I have now exhausted the amount of time I can spend on this.

@makaveli10
Copy link
Collaborator

#121 adds transcript to SRT file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Development

No branches or pull requests

3 participants