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

Fix Character limit per line #44

Closed LearningJer closed 7 months ago

LearningJer commented 10 months ago

It's entirely possible I overlooked it but, is there a way to set a custom character limit per line? I am trying to have just a single line with a max of 18 characters per sentence.

Edit* This is for the audio transcriptions

Dadangdut33 commented 10 months ago

there is no setting for that. But i'll add it now, thanks for the suggestion 👍

LearningJer commented 8 months ago

Thanks for updating this! Though I am not sure it is what I meant that was updated. I was hoping for something similar to this? https://youtu.be/GIh9imtq-fI?si=x0XQhHYWHevsUTg0&t=98

Where the user would be able to set the max character limit per line on a transcribed audios subtitle track. Unless I missed something again in this latest patch. Thanks again!

Dadangdut33 commented 8 months ago

whoops, it seems that at some point the whole character limit was broken.

I added it for the record session and it should have worked like this image

I also noticed that it is possible to limit it for the file import using split_by_length(), i guess i will add it too in the next release alongside the bug fix.

Thanks for letting me know of this bug