Dadangdut33 / Speech-Translate

A realtime speech transcription and translation application using Whisper OpenAI and free translation API. Interface made using Tkinter. Code written fully in Python.
MIT License
423 stars 55 forks source link

[REQ] Add option for no max sentences limit #57

Closed sherkhan30452 closed 7 months ago

sherkhan30452 commented 7 months ago

Describe the bug When I am live transcribing audio from speaker when recording, the first transcribe sentence disappears after some duration, therefore unable to export all transcribed text (into .txt) from the software. In short, main window acting as subtitle window which should not happen when recording as transcribed text from live audio should be kept from start to end in the main video for exporting into (.txt).

To Reproduce Steps to reproduce the behavior:

  1. (For this setup) Open this youtube video in your browser https://www.youtube.com/watch?v=02E2WgRcHpo (Note: video duration 1 min 20 sec)
  2. Pause the youtube video
  3. Set task to transcribe, Input to speaker and then Start recording.
  4. Play the Youtube video till the end. (You will see that the CPU speech-translator has perfectly transcribed the video from starting, however when you reach the end of the youtube video, previous first line is deleted.

Expected behavior All transcribed text must remain from the start till end in the main window, (until the user manually press the 'Clear' button.)

Desktop (please complete the following information):

Dadangdut33 commented 7 months ago

That is the intended behaviour actually. There is a limit that you can set per session as to how many sentences there are shown and stored in the memory when recording.

This setting is located in setting -> Device - Record under the mic or speaker recording options

image

I set the limit to 100 in the app. I suppose you want an option for it to be limitless?

sherkhan30452 commented 7 months ago

I suppose you want an option for it to be limitless?

Yes. (Like Windows Dictate or Google Doc dictate.) Keep the text, let the user decides what to do with the transcribed text. Best to transcribe live lectures (if using microphone) [or online video live sessions] and save as notes later.

Dadangdut33 commented 7 months ago

I see, alright i'll get to it, thanks for suggestion/request

sherkhan30452 commented 7 months ago

Thank you so much 😀!

Dadangdut33 commented 7 months ago

i have added it in the 1.3.7 release, thanks for the request/suggestion 👍