collabora / WhisperLive

A nearly-live implementation of OpenAI's Whisper.
MIT License
2.03k stars 277 forks source link

Incomplete Transcriptions #203

Open Nerdward opened 7 months ago

Nerdward commented 7 months ago

While using the medium model on a GPU system, I get this error message:

ERROR:root:[ERROR]: Sending data to client: sent 1000 (OK); then received 1000 (OK) This mean the client disconnected before the server could send some segments My code:

client = TranscriptionClient(
        "localhost",
        9090,
        lang="en",
        translate=False,
        model='medium',
        use_vad=False
    )
client()
alpcansoydas commented 6 months ago

Same error with large-v2 model. Any solution?

alpcansoydas commented 6 months ago

I think we need to change the default max_connection_time=600 to higher in server.py

makaveli10 commented 6 months ago

@alpcansoydas by incomplete you mean the transcriptions are incomplete or does it mean that it terminates after 10 minutes?

alpcansoydas commented 6 months ago

It terminates after 10 minutes, but it is not an error. I got it. Sorry for confusion.

Nerdward commented 6 months ago

@alpcansoydas by incomplete you mean the transcriptions are incomplete or does it mean that it terminates after 10 minutes?

The transcriptions are not complete during live recording. When I stop the live recording, all the transcription is not sent. I think it is a bug.