yazinsai / srt-ai

Translate SRT files to any language, using AI magic ✨
https://translatesrt.com/
193 stars 50 forks source link

Bounty award for a working version! #5

Closed ibitzor closed 8 months ago

ibitzor commented 10 months ago

Hi,

Clearly, I'm not the only one NOT getting this script to work properly and the creator doesn't seem too frequently visit here.

I'm also getting the same error message as other reported users:

[Error: OpenAI API returned an error]

This would have been such a tremendous contribute the cinema world, across the globe, if it would work accordingly.

To the original creator; yazinsai or anyone else with the knowledge of how to get it to work accordingly.

I personally pledge you'll be compensated for your time to get a properly working script, with proper layman guidelines accompanying it.

Considering the recent developments with OpenAI & ChatGPT, a requirement would be to not there being an input/output restriction of tokens/characters so you can input a regular movie SRT and it translating all in one go, if your account funds allow it.

For it to being able to detect any input language and you can select the specific output language would be the cherry on the top.

Hoping anyone else out there with the coding knowledge can see the global impact this script can have for cinema lovers across the globe, cheers!

jppaolim commented 9 months ago

yep, became crazy myself the other day trying to split a long file into subfiles manually, then modifying the code with the help of GPT ... ended up spending 3h .. .and finally discovered there is a free tool online, on the google translate basis which works perfectly and is free. Have a look :)

yazinsai commented 9 months ago

hey @ibitzor, sorry didn't notice this issue earlier. I'm digging into this to see why folks are reporting that it's not working.

ibitzor commented 9 months ago

Hi @yazinsai

Appreciate it, but after all this time, I've now moved on to other working AI translation solutions.

Would still be good if you fixed your script as others seem to have had the same issue with it, cheers!

yazinsai commented 9 months ago

Thanks, curious which you ended up using?I'd love to compare output to some others

On Wed, Dec 20, 2023, 12:26 AM ibitzor @.***> wrote:

Hi @yazinsai https://github.com/yazinsai

Appreciate it, but after all this time, I've now moved on to other working AI translation solutions.

Would still be good if you fixed your script as others seem to have had the same issue with it, cheers!

— Reply to this email directly, view it on GitHub https://github.com/yazinsai/srt-ai/issues/5#issuecomment-1863494215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOCWEQZ4LTW3N7GFLUCLTDYKIA63AVCNFSM6AAAAAA7QP4F4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRTGQ4TIMRRGU . You are receiving this because you were mentioned.Message ID: @.***>

solova commented 9 months ago

I got the same error and did some digging. The tool sends all subtitles together and gets an error "This model's maximum context length is 4097 tokens. However, your messages resulted in {SOMEBIGNUMBER} tokens." It works well for small SRT files, but fails with real ones. The gpt-3.5-turbo model has this small context window and possible solutions are to split subtitles into small parts (and lose context) or pay more for new OpenAI models with larger context windows.

yazinsai commented 8 months ago

Currently working on a new version that'll fix this!

seghier commented 8 months ago

the same error here Error during translation: [Error: OpenAI API returned an error]